You haven't shown any of your queries, and I am not inclined to guess. But
"node_network_up" will show interfaces across all devices. You probably
want something like:
node_network_up{instance="$instance",device!="lo"}
As I said, it's up to you to explore the wmi_xxx or windows_xxx metrics, as
I don't do Windows. As far as I know, Windows doesn't have systemd.
As for your problem with systemd metrics on Linux: it's a good idea to
explore these in the Prometheus web UI (x.x.x.x:9090) or the Grafana
"explore" panel. If you do, you'll see that the systemd metrics have a
separate metric for each state, with value 1 for the current one and 0 for
the others. e.g.
node_systemd_unit_state{name="ssh.service",state="activating",type="notify"}
0
node_systemd_unit_state{name="ssh.service",state="active",type="notify"} 1
node_systemd_unit_state{name="ssh.service",state="deactivating",type="notify"}
0
node_systemd_unit_state{name="ssh.service",state="failed",type="notify"} 0
node_systemd_unit_state{name="ssh.service",state="inactive",type="notify"} 0
So your grafana / PromQL query needs to take this into account. The query
"node_systemd_unit_state == 1" will filter this to just the one which
represents the current state.
--
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/4f94b7dd-6d65-4893-a413-e653c5fa4df2o%40googlegroups.com.