alert
Read the open alerts, the rules that raise them and the channels they are sent to.
Alerts are raised by rules when a watched value crosses a threshold, and each alert is sent to the channels that accept its severity. These commands are read-only. Use them to see what is firing, why, and whether anything is able to deliver it. Every command also takes --json, --quiet and --help.
| Command | What it does |
|---|---|
stechbd alert ls | Recent alerts, newest first |
stechbd alert rules | Every rule: what it watches and when it fires |
stechbd alert channels | Where alerts are sent, and whether each is delivering |
stechbd alert ls
Lists recent alerts, newest first, with their state, severity, scope, latest value and when they opened. The list shows 50 alerts unless --limit says otherwise. When the list stops at the limit, a line below the table says so, so a short list is not read as the whole history.
stechbd alert ls [--state <state>] [--limit <n>]| Option | Description |
|---|---|
--state <state> | Show only alerts in this state. |
--limit <n> | The most alerts to show, a whole number at least 1. Defaults to 50. |
stechbd alert ls
stechbd alert ls --limit 200 --jsonstechbd alert rules
Lists every rule with the metric it watches, its threshold, how long the value must stay past it before the alert fires, its severity, its scope, and whether it is enabled.
stechbd alert rulesstechbd alert rules --jsonstechbd alert channels
Lists the channels alerts are sent to, with each one's kind, target, the lowest severity it accepts, and whether it is healthy. A failing channel is flagged below the table with the last error it recorded. If there are no channels at all, the command warns that alerts that fire are sent nowhere.
stechbd alert channelsstechbd alert channels --json