diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index aef2a851f4ae00c55229dd88adc952beb1853d53..cef55f394d27d1dfc4b3dd6b69754d2b3b83b155 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -66,7 +66,7 @@ function(params) { kind: 'PrometheusRule', metadata: { labels: p.config.commonLabels + p.config.mixin.ruleLabels, - name: p.config.name + '-rules', + name: 'prometheus-' + p.config.name + '-prometheus-rules', namespace: p.config.namespace, }, spec: { diff --git a/manifests/prometheus-prometheusRule.yaml b/manifests/prometheus-prometheusRule.yaml index d4d2ed68965cbbf21cb39be84f5cf9ee2f9755f9..7329eab4c96ea19fcac06ca7da144e98a439061e 100644 --- a/manifests/prometheus-prometheusRule.yaml +++ b/manifests/prometheus-prometheusRule.yaml @@ -8,7 +8,7 @@ metadata: app.kubernetes.io/version: 2.24.0 prometheus: k8s role: alert-rules - name: k8s-rules + name: prometheus-k8s-prometheus-rules namespace: monitoring spec: groups: