louislam / uptime-kuma

A fancy self-hosted monitoring tool

Home Page:https://uptime.kuma.pet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api integration for displaying which monitors do have maintenance and give informations about it

blockiyt opened this issue Β· comments

πŸ“‘ I have found these related issues/pull requests

🏷️ Feature Request Type

API / automation options

πŸ”– Feature description

An endpoint or an section in the metrics api to display informations about maintenance, and which service it has, for how long, etc.

βœ”οΈ Solution

like already said above

❓ Alternatives

web-scraping the status page, and building the informations together for yourself

πŸ“ Additional Context

No response

I think this is covered in #118 as the currently planned solution would essentially offer all current socket.io calls as REST endpoints
=> closed as a duplicate

Ah forgot about the metrics:

We already have this metric

# HELP monitor_status Monitor Status (1 = UP, 0= DOWN, 2= PENDING, 3= MAINTENANCE)
# TYPE monitor_status gauge
monitor_status{monitor_name="online",monitor_type="http",monitor_url="https://google.com",monitor_hostname="null",monitor_port="null"} 1
monitor_status{monitor_name="under maintenacne",monitor_type="http",monitor_url="https://example.com",monitor_hostname="null",monitor_port="null"} 3