I am not sure if this is a bug or if we are missing something here, but this seems like it should work as it works for other prometheus scrapers. Equally, if you check https://relabeler.promlabs.com/ this should add the cluster label in. If anyone has any ideas that'd be greatly appreciated!
Component(s)
collector
Describe the issue you're reporting
We have a small EKS cluster that runs
kube-state-metrics
for reporting the metrics from it.The metrics are scraped by adot collector which has the following scrape config (the rest of the config is omitted):
This should add
cluter="cluster-name"
label to every metric scraped fromkube-state-metrics
job alas, it's completely ignored for some reason.Other things we've tried:
I am not sure if this is a bug or if we are missing something here, but this seems like it should work as it works for other prometheus scrapers. Equally, if you check https://relabeler.promlabs.com/ this should add the cluster label in. If anyone has any ideas that'd be greatly appreciated!