@@ -18,7 +18,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
1818      )
1919      .addPanel(
2020        $.panel('Queue Length' ) +
21-         $.queryPanel('cortex_query_frontend_queue_length{%s}'  % $.jobMatcher($._config.job_names.query_frontend), '{{cluster}} / {{namespace}} / {{instance }}' ),
21+         $.queryPanel('cortex_query_frontend_queue_length{%s}'  % $.jobMatcher($._config.job_names.query_frontend), '{{cluster}} / {{namespace}} / {{%s }}'  % $._config.per_instance_label ),
2222      )
2323    )
2424    .addRow(
@@ -29,7 +29,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
2929      )
3030      .addPanel(
3131        $.panel('Queue Length' ) +
32-         $.queryPanel('cortex_query_scheduler_queue_length{%s}'  % $.jobMatcher($._config.job_names.query_scheduler), '{{cluster}} / {{namespace}} / {{instance }}' ),
32+         $.queryPanel('cortex_query_scheduler_queue_length{%s}'  % $.jobMatcher($._config.job_names.query_scheduler), '{{cluster}} / {{namespace}} / {{%s }}'  % $._config.per_instance_label ),
3333      )
3434    )
3535    .addRow(
@@ -196,7 +196,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
196196      $.row('' )
197197      .addPanel(
198198        $.panel('Blocks currently loaded' ) +
199-         $.queryPanel('cortex_bucket_store_blocks_loaded{component="store-gateway",%s}'  % $.jobMatcher($._config.job_names.store_gateway), '{{instance }}' )
199+         $.queryPanel('cortex_bucket_store_blocks_loaded{component="store-gateway",%s}'  % $.jobMatcher($._config.job_names.store_gateway), '{{%s }}'  % $._config.per_instance_label )
200200      )
201201      .addPanel(
202202        $.successFailurePanel(
@@ -218,7 +218,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
218218      $.row('' )
219219      .addPanel(
220220        $.panel('Lazy loaded index-headers' ) +
221-         $.queryPanel('cortex_bucket_store_indexheader_lazy_load_total{%s} - cortex_bucket_store_indexheader_lazy_unload_total{%s}'  % [$.jobMatcher($._config.job_names.store_gateway), $.jobMatcher($._config.job_names.store_gateway)], '{{instance }}' )
221+         $.queryPanel('cortex_bucket_store_indexheader_lazy_load_total{%s} - cortex_bucket_store_indexheader_lazy_unload_total{%s}'  % [$.jobMatcher($._config.job_names.store_gateway), $.jobMatcher($._config.job_names.store_gateway)], '{{%s }}'  % $._config.per_instance_label )
222222      )
223223      .addPanel(
224224        $.panel('Index-header lazy load duration' ) +
0 commit comments