More conv.ToBool for prometheus.enabled

And remove obsolete prometheus_meta template
This commit is contained in:
Daniel Berteaud 2024-03-27 11:56:21 +01:00
parent 3f9a0060ca
commit 67fc71fbca
3 changed files with 2 additions and 10 deletions

View File

@ -1,4 +1,4 @@
[[- if .prometheus.enabled ]]
[[- if conv.ToBool .prometheus.enabled ]]
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${NOMAD_ALLOC_INDEX}"

View File

@ -1,8 +0,0 @@
[[- if .prometheus.enabled ]]
# Publish metrics endpoint
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${NOMAD_ALLOC_INDEX}"
namespace = "${NOMAD_NAMESPACE}"
}
[[- end ]]

View File

@ -1,4 +1,4 @@
[[- if .prometheus.enabled ]]
[[- if conv.ToBool .prometheus.enabled ]]
[[- /*
vim: syntax=hcl
*/]]