diff --git a/jsonnet/kube-prometheus/components/alertmanager.libsonnet b/jsonnet/kube-prometheus/components/alertmanager.libsonnet index 5e992176db4c1912edb1bdfbbdfc7645203ecc3f..27f4ff1bc4e19df2804cce5335770e27d98ee9fe 100644 --- a/jsonnet/kube-prometheus/components/alertmanager.libsonnet +++ b/jsonnet/kube-prometheus/components/alertmanager.libsonnet @@ -82,7 +82,7 @@ function(params) { kind: 'PrometheusRule', metadata: { labels: am.config.commonLabels + am.config.mixin.ruleLabels, - name: am.config.name + '-rules', + name: 'alertmanager-' + am.config.name + '-rules', namespace: am.config.namespace, }, spec: { diff --git a/manifests/alertmanager-prometheusRule.yaml b/manifests/alertmanager-prometheusRule.yaml index 1fa9c22315d4894fb87f075b8a8fb1daea0c66e7..52799d3c16b71ac18f6c02cce84c42f62f2420a3 100644 --- a/manifests/alertmanager-prometheusRule.yaml +++ b/manifests/alertmanager-prometheusRule.yaml @@ -8,7 +8,7 @@ metadata: app.kubernetes.io/version: 0.21.0 prometheus: k8s role: alert-rules - name: main-rules + name: alertmanager-main-rules namespace: monitoring spec: groups: