Common tag on metrics

11 views
Skip to first unread message

ritesh patel

unread,
Jan 21, 2022, 5:38:32 AM1/21/22
to promethe...@googlegroups.com
Hello Team, 

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

Thanks and regards
Ritesh Patel 

Stuart Clark

unread,
Jan 21, 2022, 6:09:37 AM1/21/22
to ritesh patel, promethe...@googlegroups.com
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

unread,
Jan 25, 2022, 4:08:01 AM1/25/22
to Stuart Clark, promethe...@googlegroups.com
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

unread,
Jan 25, 2022, 4:13:38 AM1/25/22
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAPxUNF_7KVxtRJifxekJj2cRYhS2kLT41FnZWjy0VeJLWmZn9A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages