Skip to content

Commit

Permalink
fix: notification variable is encoded as a string, fix alert thresh…
Browse files Browse the repository at this point in the history
…olds (#231)
  • Loading branch information
geekbrother authored Oct 18, 2023
1 parent 0339004 commit 8028744
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions terraform/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ resource "grafana_dashboard" "at_a_glance" {
{
"evaluator" : {
"params" : [
5
1
],
"type" : "gt"
},
Expand All @@ -570,7 +570,7 @@ resource "grafana_dashboard" "at_a_glance" {
{
"evaluator" : {
"params" : [
5
1
],
"type" : "gt"
},
Expand All @@ -592,12 +592,11 @@ resource "grafana_dashboard" "at_a_glance" {
}
],
"executionErrorState" : "alerting",
"for" : "5m",
"frequency" : "1m",
"handler" : 1,
"name" : "${var.environment} Echo Server 5XX alert",
"noDataState" : "no_data",
"notifications" : jsonencode(local.notifications)
"noDataState" : "keep_state",
"notifications" : local.notifications
},
"datasource" : {
"type" : "cloudwatch",
Expand Down

0 comments on commit 8028744

Please sign in to comment.