Open Napsty opened 2 months ago
Hi, like you described here #93 the solution could look like this
./check_http_json.py -H api.example.com -s -p "health.json" -q service1.status,True service2.status,True service3.status,True
I'll add some examples to the README.
Hi there and thanks for the plugin,
I am struggling to figure out how to use multiple keys and their value lookups in one plugin call using a wildcard operator. From the documentation description it seems possible:
And in an example:
I have the following JSON output:
I obviously want to monitor the
status
key of each service.But running the plugin against it using a wildcard does not work:
Adding each key manually into the plugin's
-q
parameter seems to work:But this (static definition of keys to be monitored) is obviously prone to error as the number of services can change in the JSON output.
Do you have an idea how to best solve this?