Add a generic Plugin for polling of JSON status APIs

140 votes

Many applications provide an HTTP API that can be used to query the health status, as is common with Docker containers.

It is about time for a rule-based check with which the JSON output can be evaluated:


* create for each key matching regex R a own Service with Label L as prefix (LABEL_KEY) or use only one Service with Name "LABEL"
* Verify that the key X exists
* Verify that the key X has a value less, equal or grater then N
* Verify that the key X has a value that matches/not matches one or more strings/regex
* Report value y of the key X as performance data

If any of these criteria are not met, report the worst state.

Under consideration Checks&Agents Suggested by: Lars Sörensen Upvoted: 13 May Comments: 7

Comments: 7