Graphing target status

13 views
Skip to first unread message

Erik Lilja

unread,
Jun 9, 2020, 11:59:14 AM6/9/20
to Prometheus Users
I'm wondering if it's possible to graph the targets in Prometheus. I've tried searching for this but have come up empty handed.

I'm trying to achieve the following:

Target | status
node
-exporter | Online
node
-exporter 2 | Offline
s
Does anyone know if this is possible to extract from Prometheus?

Christian Hoffmann

unread,
Jun 9, 2020, 12:09:21 PM6/9/20
to Erik Lilja, Prometheus Users
Hi,

shouldn't this just be the data from the simple query for the "up" metric?

It would include the job name (e.g. job="node") as well as the
availability status (0 vs. 1). You can handle the translation of the
value 0/1 to Offline/Online within Grafana, I think.

Kind regards,
Christian
> --
> 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
> <mailto:prometheus-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/08f58d0c-2ac3-482d-9903-616d50008277o%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/08f58d0c-2ac3-482d-9903-616d50008277o%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages