misc: finalized config files

This commit is contained in:
Sheen Capadngan
2024-06-06 00:42:24 +08:00
parent 60895537a7
commit 33b49f4466
9 changed files with 254 additions and 51 deletions

View File

@@ -3,6 +3,16 @@ receivers:
protocols:
http:
endpoint: 0.0.0.0:4318
prometheus:
config:
scrape_configs:
- job_name: otel-collector
scrape_interval: 30s
static_configs:
- targets: [backend:9464]
metric_relabel_configs:
- action: labeldrop
regex: "service_instance_id|service_name"
processors:
batch:
@@ -20,6 +30,6 @@ service:
extensions: [health_check, pprof, zpages]
pipelines:
metrics:
receivers: [otlp]
receivers: [otlp, prometheus]
processors: [batch]
exporters: [prometheus]