logstreem monitors
logstreem monitors
Manage alerting rules, and apply them from CI.
$
logstreem monitors lsEvery monitor with its current state and last value.
Usage
logstreem monitors ls [--state alert]| Flag | Type | Description |
|---|---|---|
| --state <state> | enum | ok, alert or no_data. |
| --dataset <name> | string | Only monitors on this dataset. |
$
logstreem monitors applyCreate or update monitors from JSON files, matched by name. Idempotent — safe to run on every deploy.
Usage
logstreem monitors apply <file...>| Flag | Type | Description |
|---|---|---|
| --prune | boolean | Delete monitors not present in the files. Use with care. |
| --dry-run | boolean | Print the diff without applying. |
$
logstreem monitors muteSuppress notifications while still evaluating — the honest way to silence something during planned work.
Usage
logstreem monitors mute <id> --for <duration>| Flag | Type | Description |
|---|---|---|
| --for <duration> | string | e.g. 2h, 30m. Required. |
| --reason <text> | string | Recorded in the audit log. |
GitOps
- name: Apply monitors
env:
LOGSTREEM_TOKEN: ${{ secrets.LOGSTREEM_TOKEN }}
run: |
logstreem monitors apply monitors/*.json --dry-run
logstreem monitors apply monitors/*.jsonMute, do not delete
Deleting a monitor for a maintenance window is how monitors permanently disappear.
mute --for 2h expires by itself.