I have a task which seems very simple, so there should be an easy solution for this in Grafana, but I cannot find it.
So we have bunch of microservices and want to have a site like http://status.myservice.com which will show me green on red for several components.
Since we already use Prometheus+Grafana for host machines monitoring, I’d like to reuse them for my task too, but cannot find anywhere any similar cases, so decided to ask community.
My idea was to just export some boolean (True-up, False-down) value from /metrics API in all my services, let Prometheus collect it, and Grafana draw me a dashboard like https://status.github.com
Unfortunately I can’t find such data type in Prometheus (I don’t need counters and gauges), and I also cannot see anything for this in Grafana.
If this is possible, may be u could give me some hints?
Thanks a lot!
I was surprised there is not something specific for this kind of thing in Grafana. I wanted to monitor the (up/down) status of network devices. In then end I ended up using the Bar gauge panel which works well for me - it shows a number of devices and a bar/status against each one. A green bar and green “UP” text or red empty bar and red “DOWN” text.
See here for an example/details:
I combine those sorts of panels with a single larger red/green Stat panel showing total alerts so when I look at my dashboard I can easily see for example 3 things are down and the bar guages show me exactly what those things are.