Skip to content

Commit 027cc29

Browse files
committed
Add SM Alert and bump Grafana provider
1 parent b9d94e5 commit 027cc29

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

terraform/sm.alerts.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Configure alerts for the synthetic monitoring checks
2+
3+
# NOTE: In VSCode Terraform extension... the linting seems to be broken for this resource.
4+
resource "grafana_synthetic_monitoring_check_alerts" "http_check_alerts" {
5+
check_id = grafana_synthetic_monitoring_check.http.id
6+
7+
alerts = [
8+
{
9+
name = "ProbeFailedExecutionsTooHigh"
10+
threshold = 1
11+
period = "15m"
12+
},
13+
{
14+
name = "TLSTargetCertificateCloseToExpiring"
15+
threshold = 14
16+
period = ""
17+
},
18+
{
19+
name = "HTTPRequestDurationTooHighAvg"
20+
threshold = 5000
21+
period = "10m"
22+
}
23+
]
24+
}

terraform/stack.setup.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
grafana = {
44
source = "grafana/grafana"
5-
version = ">= 2.9.0"
5+
version = ">= 4.8.0"
66
}
77
}
88
}

0 commit comments

Comments
 (0)