We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d40ee72 + c896470 commit 9083a44Copy full SHA for 9083a44
prometheus-ksonnet/lib/prometheus-ha-mixin.libsonnet
@@ -12,6 +12,19 @@ local configMap = k.core.v1.configMap;
12
local _config = self._config,
13
14
// The '__replica__' label is used by Cortex for deduplication.
15
+ // We add a different one to each HA replica but remove it from
16
+ // alerts to not break deduplication of alerts in the Alertmanager.
17
+ prometheus_config+: {
18
+ alerting+: {
19
+ alert_relabel_configs+: [
20
+ {
21
+ regex: '__replica__',
22
+ action: 'labeldrop',
23
+ },
24
+ ],
25
26
27
+
28
prometheus_zero+:: {
29
config+:: root.prometheus_config {
30
global+: {
0 commit comments