Skip to content

Commit

Permalink
Fixed interval for online checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Oct 23, 2024
1 parent 50e58b7 commit 85c6af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/modules/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ resource "google_monitoring_dashboard" "witness_dashboard" {
"xyChart": {
"dataSets": [{
"timeSeriesQuery": {
"prometheusQuery": "max by (instance_id, witness_id) (rate(distributor_update_checkpoint_request{configuration_name='distributor-service-${var.env}'}[$${__interval}])) > bool 0"
"prometheusQuery": "max by (instance_id, witness_id) (rate(distributor_update_checkpoint_request{configuration_name='distributor-service-${var.env}'}[5m}])) > bool 0"
},
"plotType": "STACKED_AREA"
}],
Expand All @@ -111,7 +111,7 @@ resource "google_monitoring_dashboard" "witness_dashboard" {
"xyChart": {
"dataSets": [{
"timeSeriesQuery": {
"prometheusQuery": "sum (max by (instance_id, witness_id) (rate(distributor_update_checkpoint_request{configuration_name='distributor-service-${var.env}'}[$${__interval}])) > bool 0) * 100 / ${var.num_expected_devices}"
"prometheusQuery": "sum (max by (instance_id, witness_id) (rate(distributor_update_checkpoint_request{configuration_name='distributor-service-${var.env}'}[5m])) > bool 0) * 100 / ${var.num_expected_devices}"
},
"plotType": "STACKED_AREA"
}],
Expand Down

0 comments on commit 85c6af2

Please sign in to comment.