AI Tools & Scripts
Honest Uptime / SLA Rows from Prometheus
How to put a service, process-manager app or host on a Prometheus-backed uptime page without lying: scrape target, liveness query rules, alert-history episodes, and the pitfalls that distort the percentage.
What you get: 1 file · 3.19 KB · ZIP
See purchase optionsProduct description
An uptime number is only useful if it is honest. A healthy service showing 2 percent, or an alert stuck "ongoing" after its rule was deleted, makes people stop trusting the page. This skill is a focused playbook for adding coverage correctly and for diagnosing a number that looks wrong.
What is inside: - SKILL.md - a single self-contained guide: how to add the scrape target (including a blackbox probe for a public website and a site-down alert), how to write the liveness expression (up-based rules, per-host filters, series that vanish when a process is down), how to derive uptime from alert history episodes, and how to check each row against what really happened. It lists the pitfalls that distort the number: series born on first event, labels that differ between hosts, retention windows shorter than the SLA window, deleted rules leaving ongoing episodes, and rows that are fine in the instant query but wrong over time. - An "Adapt to your setup" section for job names, label names and your uptime page's query format.
For anyone running a small trading or service fleet who maintains an SLA tab or status dashboard backed by Prometheus. It needs only a Prometheus you can edit and basic shell tools; it does not require any other skill. Also part of the Crypto Trading Ops Playbooks pack at a lower per-skill price.
Example request
A service shows as not monitored on our SLA tab, and another row says 2 percent although the service is fine. Fix both and keep the numbers honest.
Example result
Example on a fictional setup (job names app-metrics and web-probe, uptime page reading Prometheus). Following sla-coverage the agent started with the row that is not monitored: no scrape target existed for the service, so it added a job with the right labels and checked on the targets endpoint that the state is up before touching the page.
For the 2 percent row it compared the liveness expression with the data. The rule used up{job="app-metrics"} with no host filter, so a second host that was decommissioned months ago contributed permanent zeros. It rewrote the expression with a per-host filter and, because the series for a stopped process vanishes instead of going to zero, wrapped it so missing counts as down only while the host itself is expected to run. Result over 30 days: 99.4 percent, matching the process manager's restart history (two planned restarts).
It also found an alert shown as ongoing after its rule was deleted and cleared it from the history source instead of editing the rule. Each change came with the query used to check it, and the agent noted the retention window (15 days) limits any 30-day figure.
Requirements
- A Prometheus (and optionally Grafana) setup you control
- Access to edit scrape configs and alert rules
- bash and curl
How to install
Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.
What you get
1 file · 3.19 KB
- sla-coverage.zipZIP · 3.19 KB
AI Tools & Scripts
Honest Uptime / SLA Rows from Prometheus
How to put a service, process-manager app or host on a Prometheus-backed uptime page without lying: scrape target, liveness query rules, alert-history episodes, and the pitfalls that distort the percentage.
Tags
Frequently asked questions
Do I get access instantly?
Yes. This is a digital product - you can download it right after checkout, straight from your library.
Can I use it for commercial projects?
Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.
What's your refund policy?
You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.
What file formats and sizes will I get?
You'll download 1 file - ZIP - 3.19 KB in total.
Do I get free updates?
Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.
Price
$5.00



