From 198c05d20bfeac491e76533dc418901a836c630f Mon Sep 17 00:00:00 2001 From: Joao Marcal Date: Fri, 25 Oct 2024 11:35:49 +0100 Subject: [PATCH] fix: in retention dashboards fix metric name metric was changed in https://github.com/grafana/loki/pull/11604 --- .../loki-mixin-compiled-ssd/dashboards/loki-retention.json | 2 +- production/loki-mixin-compiled/dashboards/loki-retention.json | 2 +- production/loki-mixin/dashboards/loki-retention.libsonnet | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/production/loki-mixin-compiled-ssd/dashboards/loki-retention.json b/production/loki-mixin-compiled-ssd/dashboards/loki-retention.json index cec461bff5117..316a43298b300 100644 --- a/production/loki-mixin-compiled-ssd/dashboards/loki-retention.json +++ b/production/loki-mixin-compiled-ssd/dashboards/loki-retention.json @@ -495,7 +495,7 @@ "span": 6, "targets": [ { - "expr": "sum(increase(loki_compactor_skipped_compacting_locked_table_total{cluster=~\"$cluster\", namespace=~\"$namespace\"}[$__range]))", + "expr": "sum(loki_compactor_locked_table_successive_compaction_skips{cluster=~\"$cluster\", namespace=~\"$namespace\"})", "format": "time_series", "legendFormat": "{{table_name}}", "legendLink": null diff --git a/production/loki-mixin-compiled/dashboards/loki-retention.json b/production/loki-mixin-compiled/dashboards/loki-retention.json index 70c5171d9c391..ac719445d2458 100644 --- a/production/loki-mixin-compiled/dashboards/loki-retention.json +++ b/production/loki-mixin-compiled/dashboards/loki-retention.json @@ -495,7 +495,7 @@ "span": 6, "targets": [ { - "expr": "sum(increase(loki_compactor_skipped_compacting_locked_table_total{cluster=~\"$cluster\", namespace=~\"$namespace\"}[$__range]))", + "expr": "sum(loki_compactor_locked_table_successive_compaction_skips{cluster=~\"$cluster\", namespace=~\"$namespace\"})", "format": "time_series", "legendFormat": "{{table_name}}", "legendLink": null diff --git a/production/loki-mixin/dashboards/loki-retention.libsonnet b/production/loki-mixin/dashboards/loki-retention.libsonnet index 2a1c4777a2930..faee87a52ccc6 100644 --- a/production/loki-mixin/dashboards/loki-retention.libsonnet +++ b/production/loki-mixin/dashboards/loki-retention.libsonnet @@ -40,7 +40,7 @@ $.row('') .addPanel( $.newQueryPanel('Number of times Tables were skipped during Compaction') + - $.queryPanel(['sum(increase(loki_compactor_skipped_compacting_locked_table_total{%s}[$__range]))' % $.namespaceMatcher()], ['{{table_name}}']), + $.queryPanel(['sum(loki_compactor_locked_table_successive_compaction_skips{%s})' % $.namespaceMatcher()], ['{{table_name}}']), ) .addPanel( $.newQueryPanel('Compact Tables Operations Per Status') +