I'm trying to create a metric that monitors NIC status of the various 
interfaces on a given host. I've read the naming and label rules, and as I 
understand it, I should have a single Emum metric, such as, 
"NIC_operstates" and then add a label for each of the different interfaces, 
"eth0", "eth1"... Does that sound right? I started with creating a metric 
for each interface, so "eth0_operstate", but I believe this is incorrect 
based on the naming and label conventions.

So my question is. In a single script, how can I create a single metric, 
that provides multiple network interface status with different labels. I'm 
using the prometheus <https://github.com/prometheus>/client_python 
<https://github.com/prometheus/client_python> library. Is this possible? If 
I create a single metric, how can I give each call of state() - to update 
the metric - a different label? Or have I got this completely wrong?

Many thanks

-- 
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/767bbc1f-07f2-4b7f-88f2-86e2983d0be4n%40googlegroups.com.

Reply via email to