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

Commit 5794607

Browse files
fix: resolve review feedback
1 parent 513b096 commit 5794607

File tree

6 files changed

+28
-21
lines changed

6 files changed

+28
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* [BUGFIX] Fixed `CortexIngesterHasNotShippedBlocks` alert false positive in case an ingester instance had ingested samples in the past, then no traffic was received for a long period and then it started receiving samples again. #308
1313
* [CHANGE] Dashboards: added overridable `job_labels` and `cluster_labels` to the configuration object as label lists to uniquely identify jobs and clusters in the metric names and group-by lists in dashboards. #319
1414
* [CHANGE] Dashboards: `alert_aggregation_labels` has been removed from the configuration and overriding this value has been deprecated. Instead the labels are now defined by the `cluster_labels` list, and should be overridden accordingly through that list. #319
15-
* [ENHANCEMENT] Added documentation text panels and descriptions to reads and writes dashboards.
15+
* [ENHANCEMENT] Added documentation text panels and descriptions to reads and writes dashboards. #324
1616

1717
## 1.9.0 / 2021-05-18
1818

cortex-mixin/config.libsonnet

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,11 @@
5858

5959
// The label used to differentiate between different nodes (i.e. servers).
6060
per_node_label: 'instance',
61+
62+
// Whether certain dashboard description headers should be shown
63+
show_dashboard_descriptions: {
64+
writes: true,
65+
reads: true,
66+
},
6167
},
6268
}

cortex-mixin/dashboards/compactor.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
3636
'Tenants compaction progress',
3737
|||
3838
In a multi-tenant cluster, display the progress of tenants that are compacted while compaction is running.
39-
Reset to `0` after the compaction run is completed for all tenants in the shard.
39+
Reset to <tt>0</tt> after the compaction run is completed for all tenants in the shard.
4040
|||
4141
),
4242
)
@@ -50,7 +50,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
5050
$.panelDescription(
5151
'Compacted blocks / sec',
5252
|||
53-
Display the amount of time that it’s taken to generate a single compacted block.
53+
Rate of blocks that are generated as a result of a compaction operation.
5454
|||
5555
),
5656
)
@@ -60,7 +60,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
6060
$.panelDescription(
6161
'Per-block compaction duration',
6262
|||
63-
Rate of blocks that are generated as a result of a compaction operation.
63+
Display the amount of time that it has taken to generate a single compacted block.
6464
|||
6565
),
6666
)

cortex-mixin/dashboards/dashboard-utils.libsonnet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,10 @@ local utils = import 'mixin-utils/utils.libsonnet';
336336
jobMatcher: $.jobMatcher(jobName),
337337
component: component,
338338
cacheName: cacheName,
339-
cacheNameReadable: std.strReplace(cacheName, '-', ' '),
340339
};
341340
super.row(title)
342341
.addPanel(
343-
$.panel('Requests per second') +
342+
$.panel('Requests / sec') +
344343
$.queryPanel(
345344
|||
346345
sum by(operation) (

cortex-mixin/dashboards/reads.libsonnet

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ local utils = import 'mixin-utils/utils.libsonnet';
44
'cortex-reads.json':
55
($.dashboard('Cortex / Reads') + { uid: '8d6ba60eccc4b6eedfa329b24b1bd339' })
66
.addClusterSelectorTemplates()
7-
.addRow(
7+
.addRowIf(
8+
$._config.show_dashboard_descriptions.reads,
89
($.row('Reads dashboard description') { height: '175px', showTitle: false })
910
.addPanel(
1011
$.textPanel('', |||
1112
<p>
1213
This dashboard shows health metrics for the Cortex read path.
1314
It is broken into sections for each service on the read path, and organized by the order in which the read request flows.
1415
<br/>
15-
Incoming queries travel from the gateway → query frontend → query scheduler → querier → ingester and/or store-gateway (depending on the age of the query).
16+
Incoming queries travel from the gateway → query frontend → query scheduler → querier → ingester and/or store-gateway (depending on the time range of the query).
1617
<br/>
1718
For each service, there are 3 panels showing (1) requests per second to that service, (2) average, median, and p99 latency of requests to that service, and (3) p99 latency of requests to each instance of that service.
1819
</p>
@@ -42,14 +43,14 @@ local utils = import 'mixin-utils/utils.libsonnet';
4243
cortex_request_duration_seconds_count{
4344
%(queryFrontend)s,
4445
route=~"(prometheus|api_prom)_api_v1_query"
45-
}[1h]
46+
}[$__rate_interval]
4647
)
4748
) +
4849
sum(
4950
rate(
5051
cortex_prometheus_rule_evaluations_total{
5152
%(ruler)s
52-
}[1h]
53+
}[$__rate_interval]
5354
)
5455
)
5556
||| % {
@@ -73,7 +74,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
7374
cortex_request_duration_seconds_count{
7475
%(queryFrontend)s,
7576
route=~"(prometheus|api_prom)_api_v1_query_range"
76-
}[1h]
77+
}[$__rate_interval]
7778
)
7879
)
7980
||| % {
@@ -132,7 +133,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
132133
|||
133134
<p>
134135
The query scheduler is an optional service that moves
135-
the internal queue from the query frontend into a
136+
the internal queue from the query-frontend into a
136137
separate component.
137138
If this service is not deployed,
138139
these panels will show "No data."
@@ -241,7 +242,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
241242
)
242243
.addRowIf(
243244
std.member($._config.storage_engine, 'blocks'),
244-
$.row('Memcached – blocks storage – block index cache (store-gateway accesses)') // Resembles thanosMemcachedCache
245+
$.row('Memcached – Blocks storage – Block index cache (store-gateway accesses)') // Resembles thanosMemcachedCache
245246
.addPanel(
246247
$.panel('Requests / sec') +
247248
$.queryPanel(
@@ -314,7 +315,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
314315
.addRowIf(
315316
std.member($._config.storage_engine, 'blocks'),
316317
$.thanosMemcachedCache(
317-
'Memcached – blocks storage – chunks cache (store-gateway accesses)',
318+
'Memcached – Blocks storage – Chunks cache (store-gateway accesses)',
318319
$._config.job_names.store_gateway,
319320
'store-gateway',
320321
'chunks-cache'
@@ -323,7 +324,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
323324
.addRowIf(
324325
std.member($._config.storage_engine, 'blocks'),
325326
$.thanosMemcachedCache(
326-
'Memcached – blocks storage – metadata cache (store-gateway accesses)',
327+
'Memcached – Blocks storage – Metadata cache (store-gateway accesses)',
327328
$._config.job_names.store_gateway,
328329
'store-gateway',
329330
'metadata-cache'
@@ -332,7 +333,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
332333
.addRowIf(
333334
std.member($._config.storage_engine, 'blocks'),
334335
$.thanosMemcachedCache(
335-
'Memcached – blocks storage – metadata cache (querier accesses)',
336+
'Memcached – Blocks storage – Metadata cache (querier accesses)',
336337
$._config.job_names.querier,
337338
'querier',
338339
'metadata-cache'

cortex-mixin/dashboards/writes.libsonnet

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ local utils = import 'mixin-utils/utils.libsonnet';
44
'cortex-writes.json':
55
($.dashboard('Cortex / Writes') + { uid: '0156f6d15aa234d452a33a4f13c838e3' })
66
.addClusterSelectorTemplates()
7-
.addRow(
7+
.addRowIf(
8+
$._config.show_dashboard_descriptions.writes,
89
($.row('Writes dashboard description') { height: '125px', showTitle: false })
910
.addPanel(
1011
$.textPanel('', |||
@@ -129,7 +130,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
129130
)
130131
)
131132
.addRow(
132-
$.row('Key-value store for the ingester ring')
133+
$.row('Key-value store for the ingesters ring')
133134
.addPanel(
134135
$.panel('Requests / sec') +
135136
$.qpsPanel('cortex_kv_request_duration_seconds_count{%s}' % $.jobMatcher($._config.job_names.ingester))
@@ -227,7 +228,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
227228
'Upload latency',
228229
|||
229230
The average, median (50th percentile), and 99th percentile time
230-
the ingester takes to upload blocks to object storage.
231+
the ingesters take to upload blocks to object storage.
231232
|||
232233
),
233234
)
@@ -256,15 +257,15 @@ local utils = import 'mixin-utils/utils.libsonnet';
256257
$.panelDescription(
257258
'Compaction latency',
258259
|||
259-
The average, median (50th percentile), and 99th percentile time ingesters take to compact head blocks
260+
The average, median (50th percentile), and 99th percentile time ingesters take to compact TSDB head blocks
260261
on the local filesystem.
261262
|||
262263
),
263264
)
264265
)
265266
.addRowIf(
266267
std.member($._config.storage_engine, 'blocks'),
267-
$.row('Ingester - blocks storage - TSDB write ahead log (WAL)')
268+
$.row('Ingester - Blocks storage - TSDB write ahead log (WAL)')
268269
.addPanel(
269270
$.successFailurePanel(
270271
'WAL truncations / sec',

0 commit comments

Comments
 (0)