Common tag on metrics

Skip to first unread message

ritesh patel

Jan 21, 2022, 5:38:32 AMJan 21
Hello Team, 

How I can add common tags on metrics? 
Any idea how this can be achievable? 

Thanks and regards
Ritesh Patel 

Stuart Clark

Jan 21, 2022, 6:09:37 AMJan 21
to ritesh patel,
On 2022-01-21 10:35, ritesh patel wrote:
> Hello Team,
> How I can add common tags on metrics?
> Any idea how this can be achievable?

You can add labels via relabling, but in general that is not advised.
What are you trying to achieve?

Stuart Clark

ritesh patel

Jan 25, 2022, 4:08:01 AMJan 25
to Stuart Clark,
I want to add tag to metrics polled from telegraf to Prometheus.  Like cpu_usage_system cpu_usage_guest  are original name of metrics but want to add some tag so using that tag can setup alerts.

Ben Kochie

Jan 25, 2022, 4:13:38 AMJan 25
to ritesh patel, Stuart Clark, Prometheus Users
This is meant to happen at discovery time in the prometheus.yml.

You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages