Manages Grafana Alerting mute timings.
This resource requires Grafana 9.1.0 or later.
resource "grafana_mute_timing" "my_mute_timing" {
name = "My Mute Timing"
intervals {
times {
start = "04:56"
end = "14:17"
}
weekdays = ["monday", "tuesday:thursday"]
days_of_month = ["1:7", "-1"]
months = ["1:3", "december"]
years = ["2030", "2025:2026"]
location = "America/New_York"
}
}
name
(String) The name of the mute timing.disable_provenance
(Boolean) Allow modifying the mute timing from other sources than Terraform or the Grafana API. Defaults to false
.intervals
(Block List) The time intervals at which to mute notifications. Use an empty block to mute all the time. (see below for nested schema)org_id
(String) The Organization ID. If not set, the Org ID defined in the provider block will be used.id
(String) The ID of this resource.intervals
Optional:
days_of_month
(List of String) An inclusive range of days, 1-31, within a month, e.g. "1" or "14:16". Negative values can be used to represent days counting from the end of a month, e.g. "-1".location
(String) Provides the time zone for the time interval. Must be a location in the IANA time zone database, e.g "America/New_York"months
(List of String) An inclusive range of months, either numerical or full calendar month, e.g. "1:3", "december", or "may:august".times
(Block List) The time ranges, represented in minutes, during which to mute in a given day. (see below for nested schema)weekdays
(List of String) An inclusive range of weekdays, e.g. "monday" or "tuesday:thursday".years
(List of String) A positive inclusive range of years, e.g. "2030" or "2025:2026".intervals.times
Required:
end
(String) The time, in hh:mm format, of when the interval should end exclusively.start
(String) The time, in hh:mm format, of when the interval should begin inclusively.Import is supported using the following syntax:
terraform import grafana_mute_timing.name "{{ name }}"
terraform import grafana_mute_timing.name "{{ orgID }}:{{ name }}"