File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,27 @@ local configMap = k.core.v1.configMap;
10
10
prometheus_config_file: '/etc/$(POD_NAME)/prometheus.yml' ,
11
11
},
12
12
13
+ // The '__replica__' label is used by Cortex for deduplication.
13
14
prometheus_zero+:: {
14
- config+:: root.prometheus_config,
15
+ config+:: root.prometheus_config {
16
+ global+: {
17
+ external_labels+: {
18
+ __replica__: 'zero' ,
19
+ },
20
+ },
21
+ },
15
22
alerts+:: root.prometheusAlerts,
16
23
rules+:: root.prometheusRules,
17
24
},
18
25
19
26
prometheus_one+:: {
20
- config+:: root.prometheus_config,
27
+ config+:: root.prometheus_config {
28
+ global+: {
29
+ external_labels+: {
30
+ __replica__: 'one' ,
31
+ },
32
+ },
33
+ },
21
34
alerts+:: root.prometheusAlerts,
22
35
rules+:: root.prometheusRules,
23
36
},
You can’t perform that action at this time.
0 commit comments