mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-25 22:21:19 +02:00
Merge pull request #940 from paulfantom/prometheus-rule-name
jsonnet: better name for prometheus PrometheusRule object
This commit is contained in:
commit
0c25559b39
@ -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:
|
|||||||
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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user