Octri

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>stringrequired

The rule's name.

Flags

--webhook <url>string

Posts alerts to this address.

--slack <url>string

Posts alerts to a Slack incoming webhook.

--kind <kind>stringdefault: threshold

What fires it.

ValueMeaning
thresholdMore errors than --threshold within --window
new_issueAn issue seen for the first time
regressionA resolved issue happening again
--threshold <n>numberdefault: 10

For a threshold rule, how many errors fire it.

--window <minutes>numberdefault: 15

For a threshold rule, the period they're counted over.

--q <query>string

Only 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>stringrequired

The 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 15
Output
✔ Creating alert rule
✔ Alert rule Checkout errors created da28d806-5a98-48ab-be35-97bcf2beb725

Test every rule now

bash
octri monitoring alerts evaluate
Output
✔ Evaluating alert rules
✔ Evaluated 0 rule(s), 0 triggered.