We are doing some queries and the "instance" gets added to every single piece of data that gets ingested.The nodename is more user friendly(for some people) and it actually contains some information that is useful to us.What would be the preferred manner of adding this nodename to the results.I see some people say, just add the label to each and every target, that is doable but I'd like to "not fat finger something" and we are already using the name label for something.I saw this as a sample but this didn't work.node_memory_Active_bytes on(instance) group_left(nodename) (node_uname_info)
Is there an addition I could make to the prometheus.yml file that will just pick up the whole hostname as well without impacting what we currently have.
I hope this makes sense.
--
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 post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/49410c70-d4e9-4099-b122-86549e18359f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, 16 Apr 2019 at 14:22, Chris Bulleri <chris....@gmail.com> wrote:
We are doing some queries and the "instance" gets added to every single piece of data that gets ingested.The nodename is more user friendly(for some people) and it actually contains some information that is useful to us.What would be the preferred manner of adding this nodename to the results.I see some people say, just add the label to each and every target, that is doable but I'd like to "not fat finger something" and we are already using the name label for something.I saw this as a sample but this didn't work.node_memory_Active_bytes on(instance) group_left(nodename) (node_uname_info)That's missing an operator:node_memory_Active_bytes * on(instance) group_left(nodename) (node_uname_info)Is there an addition I could make to the prometheus.yml file that will just pick up the whole hostname as well without impacting what we currently have.If you can provide the desired name to service discovery then you can do what you want, see https://www.robustperception.io/controlling-the-instance-labelBrian
--I hope this makes sense.
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 promethe...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/49410c70-d4e9-4099-b122-86549e18359f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/793bd7d2-dd35-4d2d-9947-b2894ac067a6%40googlegroups.com.