An alert you write as a sentence: when error rate is above 2% for at least 5 minutes, only for checkout in production, page the on-call. A 30-day timeline shows which past incidents it would have caught, and warns you before it gets noisy.
akaalert rules·alerting·monitoring
Powered by Qnot · the rules, matching and serialisation are Qnot; this is the UI on top.
Run this in any project set up for the shadcn CLI. It copies the Alert Rules source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/alert-rules.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { AlertRules } from "@/components/alert-rules";
export default function Page() {
return <AlertRules />;
}A free React component in the Filters collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Alert Rules source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| fieldsrequired | Fields | — |
| metricsrequired | string[] | — |
| durationFieldrequired | string | — |
| incidentsrequired | readonly PastIncident[] | — |
| actionsrequired | AlertAction[] | — |
| defaultName | string | "Checkout errors" |
| defaultTriggerrequired | AlertTrigger | — |
| defaultScope | Query | { kind: "group", combinator: "and", children: [] } |
| defaultAction | string | — |
| days | number | 30 |
| className | string | — |