← Back to directory

Generate runbook skeletons from Prometheus alert rules: trigger, threshold, invo...

https://code.halowerk.com/v1/runbook-draft

Overview

Generate runbook skeletons from Prometheus alert rules: trigger, threshold, involved metrics, diagnosis queries and labels, with marked sections for your team to fill.

Protocol x402 (POST)
Price $0.0040
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 14:09:44

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "alert": "HighErrorRate", "rules": "groups:\n - name: api\n rules:\n - alert: HighErrorRate\n expr: sum by (job) (rate(http_requests_total{status=~\"5..\"}[5m])) / sum by (job) (rate(http_requests_total[5m])) > 0.05\n for: 10m\n labels: { severity: page }\n" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "alerts_total": 1, "runbooks": [ { "alert": "HighErrorRate", "diagnosis_queries": [ { "purpose": "current value of the alert expression", "query": "sum by (job) (rate(http_requests_total{status=~\"5..\"}[5m])) / sum by (job) (rate(http_requests_total[5m]))" }, { "purpose": "series of http_requests_total", "query": "sum by (job) (rate(http_requests_total[5m]))" } ], "expr": "sum by (job) (rate(http_requests_total{status=~\"5..\"}[5m])) / sum by (job) (rate(http_requests_total[5m])) > 0.05", "for": "10m", "group": "api", "group_by": [ "job" ], "markdown": "# Runbook: HighErrorRate\n\n- Group: api\n- Severity: page\n- Fires when: `sum by (job) (rate(http_requests_total{status=~\"5..\"}[5m])) / sum by (job) (rate(http_requests_total[5m])) > 0.05` for 10m\n- Threshold: > 0.05\n\n## Metrics involved\n- `http_requests_total`\n\n## Diagnosis queries\n- current value of the alert expression: `sum by (job) (rate(http_requests_total{status=~\"5..\"}[5m])) / sum by (job) (rate(http_requests_total[5m]))`\n- series of http_requests_total: `sum by (job) (rate(http_requests_total[5m]))`\n\nGrouped by: job – check which job is affected first.\n\n## Impact\nTODO: who or what is affected when this fires.\n\n## Mitigation\nTODO: verified steps to reduce impact.\n\n## Escalation\nTODO: owner, on-call rotation, when to escalate.", "metrics": [ "http_requests_total" ], "severity": "page", "threshold": { "operator": ">", "value": 0.05 } } ] }, "service": "runbook-draft", "status": "success" }, "type": "json" }