Skip to content
Snippets Groups Projects
Unverified Commit 0c25559b authored by Sergiusz Urbaniak's avatar Sergiusz Urbaniak Committed by GitHub
Browse files

Merge pull request #940 from paulfantom/prometheus-rule-name

jsonnet: better name for prometheus PrometheusRule object
parents 2a66bb88 0fbf8e03
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ function(params) { ...@@ -66,7 +66,7 @@ function(params) {
kind: 'PrometheusRule', kind: 'PrometheusRule',
metadata: { metadata: {
labels: p.config.commonLabels + p.config.mixin.ruleLabels, labels: p.config.commonLabels + p.config.mixin.ruleLabels,
name: p.config.name + '-rules', name: 'prometheus-' + p.config.name + '-prometheus-rules',
namespace: p.config.namespace, namespace: p.config.namespace,
}, },
spec: { spec: {
......
...@@ -8,7 +8,7 @@ metadata: ...@@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/version: 2.24.0 app.kubernetes.io/version: 2.24.0
prometheus: k8s prometheus: k8s
role: alert-rules role: alert-rules
name: k8s-rules name: prometheus-k8s-prometheus-rules
namespace: monitoring namespace: monitoring
spec: spec:
groups: groups:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment