Create or remove alert silences for hosts in Prometheus.
Supports noop? true
Parameters
targets(Variant[String[1], Array[String[1]]])
— List of hostnames for targets in Prometheus that will have monitoring alerts either enabled or disabled.
action(Enum['enable', 'disable'])
— Action to perform on monitored targets. 'enable' will enable monitoring alerts. 'disable' will disable monitoring alerts on targets.
prometheus_server(String[1])
— FQDN of the Prometheus server to create an alert silence for
silence_duration(Optional[Integer])
— How long the alert silence will be alive for
silence_units(Optional[Enum['minutes', 'hours', 'days', 'weeks']])
— Goes with the silence duration to determine how long the alert silence will be alive for