Commit 0138472
committed
fix(metrics): include additional check metric labels in canary_check_invalid_count
When --metric-labels-allowlist is configured, OpsInvalidCount was registered
with only the base 8 labels while Record() called it with checkMetricLabels
that include the additional labels. This caused Prometheus label mismatch
panics which were silently swallowed by recover(), resulting in invalid
check metrics not being recorded.
Fix: use checkLabels (which appends AdditionalCheckMetricLabels) for
OpsInvalidCount, matching all other counters that already use it.1 parent a27b397 commit 0138472
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments