Yes, it's good practice and you can read about it here: https://www.robustperception.io/how-to-have-labels-for-machine-roles https://www.robustperception.io/exposing-the-software-version-to-prometheus
You may also find these relevant: https://www.robustperception.io/left-joins-in-promql https://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matches On Monday 4 March 2024 at 07:10:18 UTC Rajat Jindal wrote: > hello community folks, > > what do people think about publishing *_info* metrics with static labels. > > e.g. xxxxxx_info{"foo"=bar, "foo2"=bar2} with constant value of 1 as gauge > metrics (where foo and foo2 are some static metadata associated with a > single instance). > > is there any documented best practices around having (or not having) such > metrics published? > > Thank you > Rajat Jindal > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/0b8ddef7-6ffb-405b-bb41-5b6aa77be65dn%40googlegroups.com.

