Files
infra/otel-collector/config.yaml
T

46 lines
1.0 KiB
YAML

receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
prometheus:
config:
scrape_configs:
- job_name: reverse_caddy
scrape_interval: 10s
static_configs:
- targets: ['reverse_caddy:2019']
- job_name: cadvisor
scrape_interval: 10s
static_configs:
- targets: ['cadvisor:8080']
- job_name: herald
scrape_interval: 10s
static_configs:
- targets: ['herald:9100']
processors:
memory_limiter:
check_interval: 5s
limit_mib: 200
spike_limit_mib: 50
batch:
timeout: 10s
send_batch_size: 1000
exporters:
prometheusremotewrite:
endpoint: http://prometheus:9090/api/v1/write
otlphttp/tempo:
endpoint: http://tempo:4318
service:
pipelines:
metrics:
receivers: [otlp, prometheus]
processors: [memory_limiter, batch]
exporters: [prometheusremotewrite]
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/tempo]