In Nagios we have a check, that will show us the sum of error for a special check. In our case the errors of Windows Disk Space.
This I can show with an singlestate in Grafana:
SELECT last(“value”) FROM “metrics” WHERE “host” = ‘’ AND “service” = 'Count_Service_NRPE_Windows_Diskspace_critical’
for example: 4
SELECT last(“value”) FROM “metrics” WHERE “host” = ‘’ AND “service” = 'Count_Service_NRPE_Windows_Diskspace_warning’
for example: 2
Now I want to create a new singlestate where I can see the sum of the two counters.
for example: 6
I want to see the sum of the tow counters.
I have tried in influx but i got the solution of the query?
maybe anyone can help me.