Files
Dinesh KumarandGitHub b623ff8a70 fix(metrics): use sanitized labels for executor/application metric vecs (#2931)
SparkExecutorMetrics stored the unsanitized label list while registering
the Prometheus vecs with the sanitized list, so any user label containing
'-' resolved to an unknown key in getMetricLabels and silently failed
GetMetricWith — the data point was dropped instead of recorded.

SparkApplicationMetrics had the symmetric bug in getMetricLabels: it
re-applied the metric prefix when sanitizing pod label keys while the
constructor sanitized with an empty prefix, so when prefix was non-empty
every label collapsed to "Unknown".

Align both paths so labels are sanitized once with an empty prefix and
the stored label set matches the keys produced at observation time.

Signed-off-by: dineshkumar181094 <[email protected]>
2026-05-19 00:16:25 +00:00
..