fix jsonnet error with kube-prometheus >= v0.8 (#5687)

* fix jsonnet error with kube-prometheus > v0.8

kubelet ServiceMonitor moved to kubernetesControlPlane starting from v0.8

Signed-off-by: elvis chan <78713260+elvischan-crypto@users.noreply.github.com>

* Add not in custom-prometheuus.md about jsonnet version

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: elvis chan <78713260+elvischan-crypto@users.noreply.github.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
elvis chanandSebastian Malton authored and GitHub committed 2022-10-19 10:17:07 -04:00
1 parent 4491eb12d7
commit 6c0bcc403b
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@
},
},
},
prometheus+:: {
kubernetesControlPlane+:: {
serviceMonitorKubelet+: {
spec+: {
endpoints: std.map(function(endpoint)