Skip to content

ezgh obs alert-rules get

Show an alert rule and its current instances.

Updated View as Markdown
ezgh obs alert-rules get <rule>

Show an alert rule, given by ID, slug (alr_…) or name: its condition, for, labels, contact points and status (any rule error, whether EZGH is evaluating it late, and warnings), then its current instances. -o json prints the rule’s document with its status: save it to a file, edit it, and apply it with ezgh obs alert-rules apply -f.

Part of ezgh obs alert-rules.

Examples

ezgh obs alert-rules get "High API latency"
ezgh obs alert-rules get alr_h1ghl4t3ncy0 -o json > rule.json

Flags

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close