Commit 6524673
committed
fix(otel): honor OTEL_METRICS_EXPORTER=none to skip OTLP metric push
When the OTLP backend is traces-only (e.g. Grafana Tempo), the periodic
metric exporter POSTs to /v1/metrics every 30s and gets 404s, spamming
the logs. Since SOAD already exposes Prometheus /metrics for scraping,
OTLP metric export is redundant in that topology.
Follow the OTel spec: when OTEL_METRICS_EXPORTER=none, skip the OTLP
metric reader while leaving trace export and the Prometheus reader
intact.
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>1 parent 04a5867 commit 6524673
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
95 | 106 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| |||
0 commit comments