Skip to content

Commit

Permalink
fix: remove for from evaluation and adding a threshold line (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Oct 23, 2023
1 parent 190a1ed commit a070782
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions terraform/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ resource "grafana_dashboard" "at_a_glance" {
],
"executionErrorState" : "alerting",
"frequency" : "1m",
"for" : "5m",
"for" : "",
"handler" : 1,
"name" : "${var.environment} Echo Server 5XX alert",
"noDataState" : "no_data",
Expand All @@ -619,7 +619,8 @@ resource "grafana_dashboard" "at_a_glance" {
"hideFrom" : {
"legend" : false,
"tooltip" : false,
"viz" : false
"viz" : false,
"mode" : "dashed",
},
"lineInterpolation" : "linear",
"lineWidth" : 1,
Expand Down Expand Up @@ -720,6 +721,14 @@ resource "grafana_dashboard" "at_a_glance" {
"statistic" : "Sum"
}
],
"thresholds" : [
{
"colorMode" : "critical",
"op" : "gt",
"value" : 1,
"visible" : true
}
],
"title" : "5XX",
"type" : "timeseries"
},
Expand Down

0 comments on commit a070782

Please sign in to comment.