Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 0917b3c

Browse files
authored
Merge pull request #247 from grafana/fix-ingester-panels-to-include-blocks
Honor configured job_names in the 'Memory (go heap inuse)' panel
2 parents 50c36f9 + 8f39e67 commit 0917b3c

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* [ENHANCEMENT] The name of the overrides configmap is now customisable via `$._config.overrides_configmap`. #244
1010
* [BUGFIX] Honor configured `per_instance_label` in all panels. #239
1111
* [BUGFIX] `CortexRequestLatency` alert now ignores long-running requests on query-scheduler. #242
12+
* [BUGFIX] Honor configured `job_names` in the "Memory (go heap inuse)" panel. #247
1213

1314
## 1.6.0 / 2021-01-05
1415

cortex-mixin/dashboards/alertmanager-resources.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
1313
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'cortex-gw'),
1414
)
1515
.addPanel(
16-
$.goHeapInUsePanel('Memory (go heap inuse)', 'cortex-gw'),
16+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.gateway),
1717
)
1818
)
1919
.addRow(

cortex-mixin/dashboards/reads-resources.libsonnet

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
1313
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'cortex-gw'),
1414
)
1515
.addPanel(
16-
$.goHeapInUsePanel('Memory (go heap inuse)', 'cortex-gw'),
16+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.gateway),
1717
)
1818
)
1919
.addRow(
@@ -25,7 +25,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
2525
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'query-frontend'),
2626
)
2727
.addPanel(
28-
$.goHeapInUsePanel('Memory (go heap inuse)', 'query-frontend'),
28+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.query_frontend),
2929
)
3030
)
3131
.addRow(
@@ -37,7 +37,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
3737
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'query-scheduler'),
3838
)
3939
.addPanel(
40-
$.goHeapInUsePanel('Memory (go heap inuse)', 'query-scheduler'),
40+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.query_scheduler),
4141
)
4242
)
4343
.addRow(
@@ -49,7 +49,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
4949
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'querier'),
5050
)
5151
.addPanel(
52-
$.goHeapInUsePanel('Memory (go heap inuse)', 'querier'),
52+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.querier),
5353
)
5454
)
5555
.addRow(
@@ -61,7 +61,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
6161
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'ingester'),
6262
)
6363
.addPanel(
64-
$.goHeapInUsePanel('Memory (go heap inuse)', 'ingester'),
64+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.ingester),
6565
)
6666
)
6767
.addRow(
@@ -83,7 +83,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
8383
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'ruler'),
8484
)
8585
.addPanel(
86-
$.goHeapInUsePanel('Memory (go heap inuse)', 'ruler'),
86+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.ruler),
8787
)
8888
)
8989
.addRowIf(
@@ -96,7 +96,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
9696
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'store-gateway'),
9797
)
9898
.addPanel(
99-
$.goHeapInUsePanel('Memory (go heap inuse)', 'store-gateway'),
99+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.store_gateway),
100100
)
101101
)
102102
.addRowIf(

cortex-mixin/dashboards/reads.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
143143
)
144144
.addRowIf(
145145
std.member($._config.storage_engine, 'blocks'),
146-
$.row('Memcached – Blocks Storage – Index header (Store-gateway)')
146+
$.row('Memcached – Blocks Storage – Block Index (Store-gateway)')
147147
.addPanel(
148148
$.panel('QPS') +
149149
$.queryPanel('sum by(operation) (rate(thanos_memcached_operations_total{component="store-gateway",name="index-cache", %s}[$__rate_interval]))' % $.jobMatcher($._config.job_names.store_gateway), '{{operation}}') +

cortex-mixin/dashboards/writes-resources.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
1313
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'cortex-gw'),
1414
)
1515
.addPanel(
16-
$.goHeapInUsePanel('Memory (go heap inuse)', 'cortex-gw'),
16+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.gateway),
1717
)
1818
)
1919
.addRow(
@@ -25,7 +25,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
2525
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'distributor'),
2626
)
2727
.addPanel(
28-
$.goHeapInUsePanel('Memory (go heap inuse)', 'distributor'),
28+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.distributor),
2929
)
3030
)
3131
.addRow(
@@ -47,7 +47,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
4747
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'ingester'),
4848
)
4949
.addPanel(
50-
$.goHeapInUsePanel('Memory (go heap inuse)', 'ingester'),
50+
$.goHeapInUsePanel('Memory (go heap inuse)', $._config.job_names.ingester),
5151
)
5252
)
5353
.addRow(

0 commit comments

Comments
 (0)