code.halowerk.com/v1/promtool-rules
Check Prometheus alerting and recording rules with the real promtool 3.15.1, run rule unit tests, and report convention gaps. Runs "promtool check rules --lint=all" on your rule file (syntax, PromQL parsing, template rendering, duplicate rules) and, if you send unit tests in promtool format, "promtool test rules" against it. Results are reported per message.
POST
https://code.halowerk.com/v1/promtool-rulesUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://code.halowerk.com/v1/promtool-rules", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"rules":"groups:\n - name: api\n rules:\n - alert: HighErrorRate\n expr: sum(rate(http_requests_total{status=~\"5..\"}[5m])) / sum(rate(http_requests_total[5m])) > 0.05\n for: 10m\n labels: { severity: page }\n annotations: { summary: High error rate }\n"}),
});
console.log(await res.json());Example input
{
"rules": "groups:\n - name: api\n rules:\n - alert: HighErrorRate\n expr: sum(rate(http_requests_total{status=~\"5..\"}[5m])) / sum(rate(http_requests_total[5m])) > 0.05\n for: 10m\n labels: { severity: page }\n annotations: { summary: High error rate }\n"
}