You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you ever find yourself wanting to apply the same label to all of your metrics, stop.
...
Accordingly, these labels belong up in the scrape configs of Prometheus via whatever service discovery you’re using.
I wanted to check if people use const labels or if it's okay to remove them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As explained in https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels we shouldn't add the same label to all the metrics.
I wanted to check if people use const labels or if it's okay to remove them.
Beta Was this translation helpful? Give feedback.
All reactions