Playground
Paste your alertmanager.yml, or the Kubernetes Secret, Helm values, Mimir config or
AlertmanagerConfig resources that hold it, and amlint checks it as you
type. You see the findings and the lines they point at, the route tree, where an alert is
delivered, and how a change affects routing. Add Prometheus alerting rules to check routes
against the alerts that exist.
Your config stays in your browser. amlint runs in this page as Python compiled to WebAssembly. Nothing you paste or type is uploaded, and once the page has loaded it needs no network.
How it works, and limits
- The page downloads Pyodide (Python for the browser) from the jsDelivr CDN, plus the amlint wheel built from this site's sources. Your browser caches them, so later visits start faster. None of the page's requests contains your config.
- Checks run in a Web Worker (a background thread of the page) and call amlint's own
--format jsonoutput, so the results matchamlint check,amlint routeandamlint diff. - Share link puts the config, compressed, into the URL after
#. Browsers don't send that part to any server, including this one. But anyone you give the link to can read the config, so remove secrets first; the page lists the lines that may hold them. - The page doesn't keep your config anywhere. Reload it and your edits are gone.
template-file-missingisn't checked for a plainalertmanager.yml, because its template files aren't in the browser. Runamlint checkon your machine or in CI for that. Template files that ship in a Secret or in Helm values are checked under Findings, but not in the Diff tab.
alertmanager.yml
Findings appear here once Python has loaded.
The route tree appears once Python has loaded.
Which receivers get an alert with these labels, through which routes, and with which grouping and timings. Like amlint route.
Paste the config as it was before, e.g. from your main branch. The editor on the left is the new version. Like amlint diff: findings that are new or fixed, and the alerts that are now routed differently.
before.yml
Optional: paste Prometheus alerting rules (a rule file with groups:, or a PrometheusRule manifest). amlint then also checks that routes and inhibit rules match alert names the rules produce, and which alerts end up at the root receiver. Like amlint check --rules; the findings show up under Findings.