Commit 6f7c3aa
Fix Prometheus metric naming: use WithoutUnits, WithoutCounterSuffixes, WithoutScopeInfo
OpenTelemetry's Prometheus exporter adds suffixes by default:
- "_ratio" suffix for gauges with unit "1"
- "_total" suffix for counters
- "otel_scope_*" labels to all metrics
These changes broke backward compatibility with existing metric names.
Adding these options preserves the original metric names:
- problem_gauge (not problem_gauge_ratio)
- problem_counter (not problem_counter_total)
Co-authored-by: MartinForReal <[email protected]>1 parent 4a5e215 commit 6f7c3aa
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
0 commit comments