-
Notifications
You must be signed in to change notification settings - Fork 272
Open
Description
Terraform Version
1.5.7
Terraform Grafana Provider Version
4.14.0
Grafana Version
v12.0.4 (fd74988a1a)
Affected Resource(s)
- grafana_rule_group
Terraform Configuration Files
not required
Expected Behavior
exec_err_state defaults to Error
Actual Behavior
exec_err_state defaults to Alerting
Steps to Reproduce
not required
Important Factoids
Behaviour on execution error or timeout was changed in Grafana 9.2 from Alerting to Error.
The provider still uses the old default value of Alerting both in docs and code:
- https://github.com/grafana/terraform-provider-grafana/blob/main/docs/resources/rule_group.md?plain=1#L142
- https://github.com/grafana/terraform-provider-grafana/blob/main/internal/resources/grafana/resource_alerting_rule_group.go#L621-L623
References
- https://github.com/grafana/grafana/blob/main/docs/sources/whatsnew/whats-new-in-v9-2.md#grafana-alerting-alert-rules-now-return-an-error-state-by-default-on-execution-error-or-timeout
- https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rule-evaluation/nodata-and-error-states/#modify-the-no-data-or-error-state