Linter Flags Vague Prometheus Alert Annotations Before They Reach On-Call
A developer describes an alert at 3 a.m. during Black Friday week whose summary gave no pod names, severity, or runbook link, prompting a CI check. The author built a single TypeScript file run with Deno that lints the summary and description annotations in Prometheus alerting rules. It enforces rules such as required fields, length limits, template variables, and banned filler phrases. A draft mode asks a Kimi model from Moonshot AI to write annotations and then lints the output. The tool exits with distinct codes for passing, findings, and usage or API errors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in