Logstreem
logstreem monitors

logstreem monitors

Manage alerting rules, and apply them from CI.

$logstreem monitors ls

Every monitor with its current state and last value.

Usage
logstreem monitors ls [--state alert]
FlagTypeDescription
--state <state>enumok, alert or no_data.
--dataset <name>stringOnly monitors on this dataset.
$logstreem monitors apply

Create or update monitors from JSON files, matched by name. Idempotent — safe to run on every deploy.

Usage
logstreem monitors apply <file...>
FlagTypeDescription
--prunebooleanDelete monitors not present in the files. Use with care.
--dry-runbooleanPrint the diff without applying.
$logstreem monitors mute

Suppress notifications while still evaluating — the honest way to silence something during planned work.

Usage
logstreem monitors mute <id> --for <duration>
FlagTypeDescription
--for <duration>stringe.g. 2h, 30m. Required.
--reason <text>stringRecorded 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/*.json

Mute, do not delete

Deleting a monitor for a maintenance window is how monitors permanently disappear. mute --for 2h expires by itself.