From c182756ef2df2c00987e369b507b02c6dc49499b Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Wed, 23 Oct 2024 16:44:22 +0100 Subject: [PATCH] Fixed interval for online checks --- deployment/modules/monitoring/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/modules/monitoring/main.tf b/deployment/modules/monitoring/main.tf index 68d84a8..b856c62 100644 --- a/deployment/modules/monitoring/main.tf +++ b/deployment/modules/monitoring/main.tf @@ -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" }], @@ -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" }],