Adding Prometheus support in K8S

This adds an annotation in the back container that will allow the Prometheus to autodetect containers in the cluster.
This commit is contained in:
David Négrier 2020-06-17 22:55:03 +02:00
parent d736673169
commit d2ad20651f

View File

@ -42,6 +42,23 @@
"config": { "config": {
"https": { "https": {
"mail": "d.negrier@thecodingmachine.com" "mail": "d.negrier@thecodingmachine.com"
},
k8sextension(k8sConf)::
k8sConf + {
back+: {
deployment+: {
spec+: {
template+: {
metadata+: {
annotations+: {
"prometheus.io/port": "8080",
"prometheus.io/scrape": "true"
}
}
}
}
}
}
} }
} }
} }