Skip to content

Commit

Permalink
Improve num_online graphs (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter authored Sep 30, 2024
1 parent ec2cb5d commit be21f6f
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": "count by (witness_id) (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}'}[$${__interval}])) > bool 0"
},
"plotType": "STACKED_AREA"
}],
Expand All @@ -111,7 +111,7 @@ resource "google_monitoring_dashboard" "witness_dashboard" {
"xyChart": {
"dataSets": [{
"timeSeriesQuery": {
"prometheusQuery": "count by (instance_id) (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}'}[$${__interval}])) > bool 0) * 100 / ${var.num_expected_devices}"
},
"plotType": "STACKED_AREA"
}],
Expand Down

0 comments on commit be21f6f

Please sign in to comment.