From 02922f91ad817034aeca9702a0493cd5b0159fa7 Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez Date: Mon, 12 Jun 2023 18:04:10 +0200 Subject: [PATCH] Filter out user label added in https://github.com/cortexproject/cortex/pull/4918 (#27) Signed-off-by: Friedrich Gonzalez --- CHANGELOG.md | 1 + cortex-mixin/dashboards/queries.libsonnet | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c0f6e8..3143990 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * [CHANGE] Use faster disks for compactor * [CHANGE] Enables query-scheduler by default * [CHANGE] Enables bucket-index by default +* [BUGFIX] Fix `Blocks currently loaded` in Queries ## 1.13.2 / 2023-04-29 diff --git a/cortex-mixin/dashboards/queries.libsonnet b/cortex-mixin/dashboards/queries.libsonnet index f18cdee..853d0f8 100644 --- a/cortex-mixin/dashboards/queries.libsonnet +++ b/cortex-mixin/dashboards/queries.libsonnet @@ -254,7 +254,7 @@ local utils = import 'mixin-utils/utils.libsonnet'; $.row('') .addPanel( $.panel('Blocks currently loaded') + - $.queryPanel('cortex_bucket_store_blocks_loaded{component="store-gateway",%s}' % $.jobMatcher($._config.job_names.store_gateway), '{{%s}}' % $._config.per_instance_label) + $.queryPanel('sum(cortex_bucket_store_blocks_loaded{component="store-gateway",%s}) without (user)' % $.jobMatcher($._config.job_names.store_gateway), '{{%s}}' % $._config.per_instance_label) ) .addPanel( $.successFailurePanel(