uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Quick Stats Link for Embedding in Site

Open spower1966 opened this issue 1 year ago • 2 comments

⚠️ 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

spower1966 avatar Jul 20 '22 09:07 spower1966

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.

kristiandg avatar Jul 20 '22 12:07 kristiandg

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

sacarino avatar Sep 09 '22 01:09 sacarino

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
}

ianpogi5 avatar Aug 04 '23 11:08 ianpogi5

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.

CommanderStorm avatar Aug 04 '23 11:08 CommanderStorm

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.

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.

Subbeh avatar Aug 06 '23 15:08 Subbeh

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.

RK62 avatar Sep 03 '23 15:09 RK62