Skip to content

Commit

Permalink
Cortex writes dashboard: add panels for KV activity
Browse files Browse the repository at this point in the history
For HA-tracker, show which tenants are changing election.
For ingester, show how many are active, leaving, etc.
  • Loading branch information
bboreham committed Aug 17, 2021
1 parent c09fed3 commit 58b64a7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cortex-mixin/dashboards/writes.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ local utils = import 'mixin-utils/utils.libsonnet';
$.panel('Latency') +
utils.latencyRecordingRulePanel('cortex_kv_request_duration_seconds', $.jobSelector($._config.job_names.distributor) + [utils.selector.eq('kv_name', 'distributor-hatracker')])
)
.addPanel(
$.panel('Elected replica changes / min') +
$.queryPanel([
'max by(exported_cluster, user)(increase(cortex_ha_tracker_elected_replica_changes_total{%s}[1m])) >0' % $.jobMatcher($._config.job_names.distributor),
], [
'{{user}}/{{exported_cluster}}',
]) +
$.stack + {
yaxes: $.yaxes('cpm'),
},
)
)
.addRow(
Expand Down Expand Up @@ -140,6 +150,13 @@ local utils = import 'mixin-utils/utils.libsonnet';
$.panel('Latency') +
utils.latencyRecordingRulePanel('cortex_kv_request_duration_seconds', $.jobSelector($._config.job_names.ingester)+ [utils.selector.eq('kv_name', 'ingester-lifecycler')])
)
.addPanel(
$.panel('Ingester status') +
$.queryPanel([
'max by (state)(cortex_ring_members{%s}) >0' % $.jobMatcher($._config.job_names.distributor),
], [
'{{state}}',
])
)
)
.addRowIf(
Expand Down

0 comments on commit 58b64a7

Please sign in to comment.