Problem/Motivation
This is an amazing module, thank you for making it available. I do have a proposal for your documentation, though:
Assume, you have 20 active sensors in your Drupal site, and you want to setup Uptime Kuma with just 1 monitor that goes red if at least 1 sensor is not OK.
Proposed resolution
This can be done with the following settings:

The JSON Query Expression is $keys($sift($, function($v) { $v != 'OK' and $v != 'INFO' })) and that should be equal to count_failures. That gives you a green status. For anything else, it turns red.
What that JSON Query Expression does is to determine all keys in the received JSON array that have value not equal to OK. When all sensors are OK, this returns just count_failures which contains a number.
| Comment | File | Size | Author |
|---|---|---|---|
| 2025-11-06_10-49.jpg | 25.1 KB | jurgenhaas |
Issue fork monitoring_endpoint-3556381
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jurgenhaasUpdated the query expression top also allow INFO as something that shouldn't raise an alert.
Comment #6
guillaumeg commentedHi @jurgenhaas and thanks for proposing this doc update!
I’ve updated the README file and the main module page description to include it.
Comment #7
guillaumeg commentedComment #9
guillaumeg commented