I’m using grafana 4.6.3 over graphite over icinga2 and have a problem with displaying singlestat for null value.
I’m monitoring the time it takes to connect to our MongoDB using an icinga plugin. When I shut down the MongoDB daemon, Icinga starts alerting as expected. The plugin doesn’t return a value because there is no numerical value for no connection time, it’s just null.
When I’m trying to show this info in Grafana, I have a problem presenting it coloured red in the SingleStat pane (I don’t really care about the time it takes to connect, only if it’s successful), because null value isn’t something the numerical threshold can take as an input.
How can I display the information about the icinga service’s status? Using non-graphite database is possible although not a solution I’d like to take.