otel collector self monitoring

This commit is contained in:
royalcat 2024-05-06 10:46:38 +03:00
parent 9ecead9899
commit 8a026f0055

View file

@ -10,6 +10,13 @@ receivers:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
prometheus/self:
config:
scrape_configs:
- job_name: otel-collector-metrics
scrape_interval: 10s
static_configs:
- targets: ["localhost:8888"]
processors:
batch:
@ -36,7 +43,7 @@ service:
exporters:
- otlp/tempo
metrics:
receivers: [otlp]
receivers: [otlp, prometheus/self]
processors: [batch]
exporters:
- prometheusremotewrite