[GH-ISSUE #874] Feature request: SLA availability computation #613

Closed
opened 2026-02-25 23:43:02 +03:00 by kerem · 2 comments
Owner

Originally created by @rudolf-bauer on GitHub (Aug 8, 2023).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/874

According to my SLA with a customer, I need to compute the monthly availability (uptime) of my services. Some of them are monitored by healthchecks on a per-minute basis. Threfore, I used the management API to get all flips of the corresponding checks and compute the downtime in a specified time range. Does it make sense to add such a page (html/pdf) to healthchecks? E.g. in the check's details?

Off-topic: I love healthchecks, great product!

Originally created by @rudolf-bauer on GitHub (Aug 8, 2023). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/874 According to my SLA with a customer, I need to compute the monthly availability (uptime) of my services. Some of them are monitored by healthchecks on a per-minute basis. Threfore, I used the management API to get all flips of the corresponding checks and compute the downtime in a specified time range. Does it make sense to add such a page (html/pdf) to healthchecks? E.g. in the check's details? Off-topic: I love healthchecks, great product!
kerem closed this issue 2026-02-25 23:43:03 +03:00
Author
Owner

@cuu508 commented on GitHub (Aug 10, 2023):

In the check details pages we already display the number of downtimes and the total duration of downtimes for past 3 months:

image

Using the data already there, it would be easy to also calculate uptime as percentage. In the above example, where it says "21 hours total", we could calculate the uptime percentage as 21 / (31 * 24) = 2.8%, and show it as: "2 downtimes, 21 hours total (97.2% uptime)".

Would something like this work?

When calculating SLA, do you calculate it for every month separately, or do you calculate it for a sliding window of last 30 days?

<!-- gh-comment-id:1672689648 --> @cuu508 commented on GitHub (Aug 10, 2023): In the check details pages we already display the number of downtimes and the total duration of downtimes for past 3 months: ![image](https://github.com/healthchecks/healthchecks/assets/661859/7e1d25e8-de94-4a44-a28b-1f48f2c0d450) Using the data already there, it would be easy to also calculate uptime as percentage. In the above example, where it says "21 hours total", we could calculate the uptime percentage as 21 / (31 * 24) = 2.8%, and show it as: "2 downtimes, 21 hours total (97.2% uptime)". Would something like this work? When calculating SLA, do you calculate it for every month separately, or do you calculate it for a sliding window of last 30 days?
Author
Owner

@cuu508 commented on GitHub (Aug 28, 2023):

No reply, closing.

<!-- gh-comment-id:1695303769 --> @cuu508 commented on GitHub (Aug 28, 2023): No reply, closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#613
No description provided.