Allow setting of global defaults for some values
This helps with reducing redundant config. Note: There is no default for `alert_every` because the zero value has a meaning and cannot be interpreted as an omission.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
check_interval: 1
|
||||
default_alert_down: ["log_command"]
|
||||
default_alert_after: 1
|
||||
|
||||
monitors:
|
||||
- name: Command
|
||||
command: ["echo", "$PATH"]
|
||||
|
||||
alerts:
|
||||
log_command:
|
||||
command: ["echo", "regular", '"command!!!"', "{{.MonitorName}}"]
|
||||
Reference in New Issue
Block a user