From 7025df027d32d9fbcb704114de670bf247c7a27d Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Thu, 9 Nov 2023 19:20:00 +0100 Subject: [PATCH] fix: total suffix added --- .../monitoring/panels/app/publishing_workers_count.libsonnet | 2 +- .../monitoring/panels/app/publishing_workers_errors.libsonnet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/monitoring/panels/app/publishing_workers_count.libsonnet b/terraform/monitoring/panels/app/publishing_workers_count.libsonnet index d01bae17..ac86537f 100644 --- a/terraform/monitoring/panels/app/publishing_workers_count.libsonnet +++ b/terraform/monitoring/panels/app/publishing_workers_count.libsonnet @@ -13,7 +13,7 @@ local targets = grafana.targets; .configure(defaults.configuration.timeseries) .addTarget(targets.prometheus( datasource = ds.prometheus, - expr = 'sum(rate(spawned_publishing_workers{}[$__rate_interval]))', + expr = 'sum(rate(spawned_publishing_workers_total{}[$__rate_interval]))', refId = "availability", )) } diff --git a/terraform/monitoring/panels/app/publishing_workers_errors.libsonnet b/terraform/monitoring/panels/app/publishing_workers_errors.libsonnet index 914ec8d9..3cc88381 100644 --- a/terraform/monitoring/panels/app/publishing_workers_errors.libsonnet +++ b/terraform/monitoring/panels/app/publishing_workers_errors.libsonnet @@ -13,7 +13,7 @@ local targets = grafana.targets; .configure(defaults.configuration.timeseries) .addTarget(targets.prometheus( datasource = ds.prometheus, - expr = 'sum(rate(publishing_worker_errors{}[$__rate_interval]))', + expr = 'sum(rate(publishing_worker_errors_total{}[$__rate_interval]))', refId = "availability", )) }