ИИ-инструменты и скрипты
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.
Что вы получите: 1 файл · 3.19 KB · ZIP
Варианты покупкиОписание товара
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.
Что вы получите
1 файл · 3.19 KB
- sla-coverage.zipZIP · 3.19 KB
ИИ-инструменты и скрипты
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.
Теги
Частые вопросы
Доступ открывается сразу?
Да. Это цифровой товар - скачать его можно сразу после оплаты, прямо из своей библиотеки.
Можно ли использовать в коммерческих проектах?
Да. Коммерческое использование разрешено: в своём бизнесе и в том, что вы продаёте. Перепродавать и распространять сам файл нельзя.
Какие условия возврата?
Запросить возврат можно в течение 30 дней. Если что-то не так, оформите заявку в своём заказе - её рассмотрит команда Getly.
Какие форматы и размеры файлов я получу?
Вы скачаете 1 файл - ZIP - всего 3.19 KB.
Обновления бесплатны?
Да - когда продавец выпускает новую версию, вы можете бесплатно скачать актуальные файлы из своей библиотеки. Последние изменения смотрите в истории версий.
Цена
$5.00



