File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 91
91
||| ,
92
92
},
93
93
},
94
+ {
95
+ alert: 'CortexInconsistentConfig' ,
96
+ expr: |||
97
+ count(count by(%s, sha256) (cortex_config_hash)) without(sha256) > 1
98
+ ||| % $._config.alert_aggregation_labels,
99
+ 'for' : '1h' ,
100
+ labels: {
101
+ severity: 'warning' ,
102
+ },
103
+ annotations: {
104
+ message: |||
105
+ An inconsistent config file hash is used across cluster {{ $labels.job }}.
106
+ ||| ,
107
+ },
108
+ },
94
109
{
95
110
// As of https://github.com/cortexproject/cortex/pull/2092, this metric is
96
111
// only exposed when it is supposed to be non-zero, so we don't need to do
Original file line number Diff line number Diff line change 1
1
{
2
2
grafanaDashboards+:
3
+ (import 'dashboards/config.libsonnet' ) +
3
4
(import 'dashboards/queries.libsonnet' ) +
4
5
(import 'dashboards/reads.libsonnet' ) +
5
6
(import 'dashboards/ruler.libsonnet' ) +
Original file line number Diff line number Diff line change
1
+ local utils = import 'mixin-utils/utils.libsonnet' ;
2
+
3
+ (import 'dashboard-utils.libsonnet' ) {
4
+
5
+ 'cortex-config.json' :
6
+ $.dashboard('Cortex / Config' )
7
+ .addClusterSelectorTemplates()
8
+ .addRow(
9
+ $.row('Startup config file' )
10
+ .addPanel(
11
+ $.panel('Startup config file hashes' ) +
12
+ $.queryPanel('count(cortex_config_hash) by (sha256)' , 'sha256:{{sha256}}' ) +
13
+ $.stack +
14
+ { yaxes: $.yaxes('instances' ) },
15
+ )
16
+ )
17
+ .addRow(
18
+ $.row('Runtime config file' )
19
+ .addPanel(
20
+ $.panel('Runtime config file hashes' ) +
21
+ $.queryPanel('count(cortex_runtime_config_hash) by (sha256)' , 'sha256:{{sha256}}' ) +
22
+ $.stack +
23
+ { yaxes: $.yaxes('instances' ) },
24
+ )
25
+ ),
26
+ }
You can’t perform that action at this time.
0 commit comments