I have the following alarm that’s working:
alarm: vault_sealed
on: statsd_vault.core.unsealed.vault-cluster-abcde123_gauge
lookup: average -5s
units: %
every: 1s
warn: $this > 0
crit: $this > 0
summary: vault is sealed! MANUAL INTERVENTION REQUIRED!
info: contact vault admins to perform the unsealing ceremony
to: sysadmin
(N.B. the vault is unsealed, so this will always trigger, and am just using this to troubleshoot the context)
however, I’d like to use a wildcard in the context statement to make it more generic. something like,
alarm: vault_sealed
on: statsd_vault.core.unsealed.*
lookup: average -5s
units: %
every: 1s
warn: $this > 0
crit: $this > 0
summary: vault is sealed! MANUAL INTERVENTION REQUIRED!
info: contact vault admins to perform the unsealing ceremony
to: sysadmin
I’ve searched the documentation and found the simple patterns, but either I’m not applying it correctly or it’s not supported for alarms/templates?
Any thoughts or ideas?
TIA