Custom-resource-metrics non label conform annotation names #2123
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
When using the generic include of annotations in config for custom-resource-state , via
with Objects having annotation key which contain characters, which are not allowed in Prometheus Metrics labels.
e.g.
They are just exported as is.
i.e.
This leads to an "expected equal, got "INVALID"" error, when Prometheus tries to parse these metrics.
What you expected to happen:
I would expect the annotation names to be adapted analog to the standard kube_node_labels metrics,
e.g.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
): 1.25.10The text was updated successfully, but these errors were encountered: