monitoring alerts
Lists your alert rules, with each one's kind, threshold, channel and when it last fired. See alerts.
bash
octri monitoring alerts [list | create <name> | evaluate | delete <id>]octri monitoring alerts create <name>
Creates a rule. It needs somewhere to send alerts: --webhook or --slack.
Arguments
<name>stringrequiredThe rule's name.
Flags
--webhook <url>stringPosts alerts to this address.
--slack <url>stringPosts alerts to a Slack incoming webhook.
--kind <kind>stringWhat fires it.
| Value | Meaning |
|---|---|
threshold | More errors than --threshold within --window |
new_issue | An issue seen for the first time |
regression | A resolved issue happening again |
--threshold <n>numberFor a threshold rule, how many errors fire it.
--window <minutes>numberFor a threshold rule, the period they're counted over.
--q <query>stringOnly count events matching this search.
octri monitoring alerts evaluate
Runs every rule once, now, and reports which would fire. Use it to check a rule does what you expect before waiting for real traffic.
octri monitoring alerts delete <id>
Deletes a rule.
Arguments
<id>stringrequiredThe rule, from the list.
Examples
Alert on checkout errors
bash
octri monitoring alerts create "Checkout errors" --webhook https://hooks.acme.com/octri --threshold 25 --window 15Output
✔ Creating alert rule
✔ Alert rule Checkout errors created da28d806-5a98-48ab-be35-97bcf2beb725Test every rule now
bash
octri monitoring alerts evaluateOutput
✔ Evaluating alert rules
✔ Evaluated 0 rule(s), 0 triggered.Related
octri monitoring slos: Set latency and error targets per transaction, and fail CI on a breach.- Alerts