uptime-kuma
uptime-kuma copied to clipboard
Quick Stats Link for Embedding in Site
⚠️ Please verify that this feature request has NOT been suggested before.
- [X] I checked and didn't find similar feature request
🏷️ Feature Request Type
UI Feature
🔖 Feature description
Is it possible to have the Quick States available for embedding in an iFrame ? Would be great to be able to embed into another web site for quick overview
✔️ Solution
iFrame availability of Quick Stats for be embedded in another web site. Anonymous connection
❓ Alternatives
No response
📝 Additional Context
No response
Ooo, that's a good one. I'd love that as well, so you could then create a small (more abridged) panel if you wanted, for a website. Selectable to either show all the data, or just the summary banner (All Systems Operational, Partially Degraded, etc), which clicking on that link then takes you to the detailed dashboard. Nice.
It would be great if this wasn't specifically an iframe. That's a bit limiting.
I'm looking for ways to get that summary data like All Systems Operational
, Partially Degraded
, but I'd like to be able to style it, etc. to match the client that it would be displayed in.
Maybe this could be an GET
endpoint that returns a json payload? Just thinking about the API being discussed in #118
I think a quick stats api would be great so anyone can embed the data to anywhere they like.
An example would be:
GET https://uptime.example.com/api/quick-stats
And then return something like:
{
"up": 143,
"down": 2,
"maintenance": 0,
"unknown": 0,
"pause": 4
}
Look at https://status.yourdomain.xyz/api/status-page/your-status-page-name
. It returns a JSON of all the added status monitors, but if you need heartbeat, look at https://status.yourdomain.xyz/api/status-page/heartbeat/your-status-page-name
.
Look at
https://status.yourdomain.xyz/api/status-page/your-status-page-name
. It returns a JSON of all the added status monitors, but if you need heartbeat, look athttps://status.yourdomain.xyz/api/status-page/heartbeat/your-status-page-name
.
Is there an easy way just to see if the current overall status of the services is degraded/operational? Without having to fetch the entire heartbeat history of all the monitors.
Thanks for the tip. Unfortunately, the links do not give any information about the status of the individual monitors. even if I evaluate the time series, paused monitors continue with the output of the last status.
The suggestion of @ianpogi5 will be a good solution for integrations. Additionally, there is no need to remember to add new monitors to a status page. If this becomes too complex, an output with the last status of all monitors would be good, so that you can easily count and evaluate yourself. This will be my preferred solution.