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

jsonnet: better name for prometheus PrometheusRule object
This commit is contained in:
Sergiusz Urbaniak 2021-02-15 09:41:12 +01:00 committed by GitHub
commit 0c25559b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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: {

View File

@ -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: