I am adding a mission-control type dashboard for my project. It’s a microservices architecture so there are quite a lot of floating pieces which need monitoring. It looks like this (small censored snippet):
As you can see, 2 of the servers are showing as DOWN. This isn’t correct - one of the services bounced back so it should be showing green - OK. What I found was that the up function is returning a decimal number, and not a boolean number. Below is how I have set it up
up{job="consul services", instance="dfaasdfsafsadfsafsafd.net:9090"}
And below is how I set the value mappings. Prometheus can show the server UP at up=0.6 so this screws up this logic. Does anybody have any pointers?