What you’ll see
Uptime
- Monitors: every monitor as a named dot, by name, grouped as Services, Jobs and backups, and DNS. Up to 40 show at once, what needs attention first, with Show N more past that. Red when it’s down or its certificate has expired, orange while it’s pending or its certificate is 14 days or less from expiring, grey while it’s in maintenance. A dot that changes sends a notification. Pointing at a dot shows its response time and uptime, or what’s wrong. A click opens its monitor page.
- Web response, average: your web services’ average response time over the last 24 hours, one reading an hour. Kuma doesn’t keep this history, so Legato records it from the day you add the page.
- Uptime: over the last 24 hours, 30 days and 365 days, as Kuma measures them, and the certificate that expires next.
- Explore: Certificates, Response times, and your Uptime Kuma.
Monitor
One page for every monitor, opened from its dot and titled with its name: its state now, a strip of its last 24 hours and a chart of its response time (from samples Legato keeps, below), uptime over 24 hours and its response now, then uptime over 30 and 365 days, its certificate, its average response over 30 days, what it checks and its type.
Certificates
Every HTTPS monitor’s certificate, the soonest to expire first.
Response times
Your web services’ response now, slowest first.
Status
- Watches every monitor.
- Red when one is down or a certificate has expired, orange while one is pending or a certificate is 14 days from expiring.
- Grey for maintenance, which never needs attention.
- Notifies you when it turns orange or red.
How it connects
One request fills each page. Legato reads Uptime Kuma’s Prometheus metrics, groups them by monitor ID and separates the time windows Kuma measures (24 hours, 30 days, 365 days).
Requests it makes on its own 1
- GET
/metricsEach monitor’s status, name, type and address, its response time now and its average and uptime over each window, and its certificate’s days left and validity.
All fourOnce a minute
The pages make the same request, so opening a monitor page or Certificates adds none. They use HTTP Basic authentication with an empty username and your API key as the password. Save just the key in Legato; it constructs the header. This is the API-key format Uptime Kuma documents, not your web-login password.
The pages have no buttons: Uptime Kuma’s API can’t pause a monitor or start maintenance. Requests go from your Mac to your Uptime Kuma, so its address must be reachable from the Mac.
Set it up
- Install Legato and connect your local agent, or use the bundled
legatocommand. See Quickstart. - Download the four pages and change
urlon each to your Uptime Kuma’s address, and the Uptime Kuma row at the bottom of the overview. Keep the/metricsrequest and its grouping as they are. - Add them using the agent prompt, or run
/Applications/Legato.app/Contents/Helpers/legato set uptime-monitor uptime-monitor.json,legato set uptime-certificates uptime-certificates.jsonandlegato set uptime-response uptime-response.json, thenlegato set uptime uptime.json. Keep the IDuptime-monitor: every dot opens it with its monitor’s ID. - In Settings → Secrets, save the key under
kuma, bound to your Uptime Kuma’s host. You can also link a 1Password reference. - Open Uptime. The dots fill within a minute. A missing key or an unreachable address is the usual reason they don’t: the page then notes that Uptime Kuma didn’t answer.
For a local HTTP address, requests and credentials are unencrypted in transit. Use it only on a trusted network; prefer HTTPS when configured. Don’t expose a local service to the internet just to use these pages.
Prompt for your agent
Add 4 Legato pages for Uptime Kuma, starting from https://legatobar.com/examples/uptime.json, https://legatobar.com/examples/uptime-monitor.json, https://legatobar.com/examples/uptime-certificates.json, https://legatobar.com/examples/uptime-response.json. Use the page IDs uptime, uptime-monitor, uptime-certificates, uptime-response if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.
Set sources.kuma.url on all four pages to my Uptime Kuma’s address, and the Uptime Kuma row in Explore on the overview, and keep the /metrics request and its grouping. I’ll save the API key as kuma in Settings → Secrets myself.
Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.Download the pages
Questions
Will it catch every outage?
The dots are a snapshot taken once a minute. A monitor can go down and recover between reads, and Legato stops polling while your Mac sleeps or the app is closed. Keep Uptime Kuma’s own notifications for outages you need to hear about immediately. The uptime figures come from Kuma’s metrics, not from counting Legato’s reads.
Why are the monitors on the page and not in Details?
The dots are the status. Each one notifies when it changes, so a summary line above them would only repeat them.
Why does the response chart say it’s collecting readings?
Uptime Kuma’s metrics give the response time now, not its history, so Legato keeps a reading an hour from the day you add the page. The chart appears once it has two, and shows the last 24 hours. Push jobs and DNS lookups are left out of the average, since they’d skew it.
Where do a monitor’s strip and chart come from?
Uptime Kuma’s metrics say how each monitor is now, not how it was. Every 5 minutes the Uptime page keeps a sample of each monitor’s state and response time in History, on your Mac, for a year, and each monitor’s page draws its own. They start empty and fill from the day you add the pages; Settings → History lists them, with Export and Delete.
Why is a monitor grey?
It’s in maintenance in Uptime Kuma. A monitor in maintenance never needs attention, so it doesn’t count as a problem.
Why do I get an authentication error?
Check the key in Uptime Kuma’s Settings → API Keys: it may be disabled or expired. Keep auth.type set to basic in the pages. If a reverse proxy puts a browser sign-in in front of /metrics, Legato also needs a route that accepts the API request.
Can Legato pause a monitor?
No. Uptime Kuma’s HTTP API only reports metrics. Use Uptime Kuma to pause or edit a monitor, or to start maintenance.