mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-02 03:50:35 +08:00

* chore: 🔧 set dimensions_cache_size in signozspanmetrics processor
- add example usage of limit_percentage and spike_limit_percentage
Signed-off-by: Prashant Shahi <prashant@signoz.io>
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
receivers:
|
|
otlp:
|
|
protocols:
|
|
grpc:
|
|
http:
|
|
|
|
# Data sources: metrics
|
|
prometheus:
|
|
config:
|
|
scrape_configs:
|
|
- job_name: "otel-collector"
|
|
scrape_interval: 30s
|
|
static_configs:
|
|
- targets: ["otel-collector:8889"]
|
|
processors:
|
|
batch:
|
|
send_batch_size: 1000
|
|
timeout: 10s
|
|
# memory_limiter:
|
|
# # 80% of maximum memory up to 2G
|
|
# limit_mib: 1500
|
|
# # 25% of limit up to 2G
|
|
# spike_limit_mib: 512
|
|
# check_interval: 5s
|
|
#
|
|
# # 50% of the maximum memory
|
|
# limit_percentage: 50
|
|
# # 20% of max memory usage spike expected
|
|
# spike_limit_percentage: 20
|
|
# queued_retry:
|
|
# num_workers: 4
|
|
# queue_size: 100
|
|
# retry_on_failure: true
|
|
extensions:
|
|
health_check: {}
|
|
zpages: {}
|
|
exporters:
|
|
clickhousemetricswrite:
|
|
endpoint: tcp://clickhouse:9000/?database=signoz_metrics
|
|
|
|
service:
|
|
extensions: [health_check, zpages]
|
|
pipelines:
|
|
metrics:
|
|
receivers: [otlp, prometheus]
|
|
processors: [batch]
|
|
exporters: [clickhousemetricswrite] |