kube-prometheus/docs: Update how to handle existing rules

This commit is contained in:
Frederic Branczyk
2019-03-01 18:13:11 +01:00
parent 1d70464c9f
commit 67b2c29875
4 changed files with 16 additions and 17 deletions

View File

@@ -1,12 +1,5 @@
local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') + {
_config+:: {
namespace: 'monitoring',
prometheus+:: {
renderedRules: {
'example.rules.yaml': (importstr 'example.rules.yaml'),
},
},
},
prometheusAlerts+:: (import 'existingrule.json'),
};
{ ['00namespace-' + name]: kp.kubePrometheus[name] for name in std.objectFields(kp.kubePrometheus) } +