get_monitor_status for all monitors #62
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/uptime-kuma-api#62
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Great project, thanks!
I would like to get the status of all monitors (number of up, down, pending, ....)
I am not using any status pages right now.
The uptime kuma main webpage shows 'quick stats'. This is exactly what I want to get via API.
the snippet below takes about 15 seconds for 50 monitors, which is a bit inefficient.
is there a better way to get all stati? I am only interested in the number of monitors that are up. I don't need the IDs.
Hello
same here, want to get the "Quick Stats" overview too.
Maybe using the /metrics end point of uptime-kuma is a workaround.
Passing metrics to other platforms
Find all lines starting with "monitor_status" and have a look to the latest character of the line.
# HELP monitor_status Monitor Status (1 = UP, 0= DOWN, 2= PENDING, 3= MAINTENANCE)
FYI, I am now using a small python snippet to achieve this:
consider
pip install playwright
followed by
playwright install