More conv.ToBool for prometheus.enabled
And remove obsolete prometheus_meta template
This commit is contained in:
parent
3f9a0060ca
commit
67fc71fbca
|
@ -1,4 +1,4 @@
|
|||
[[- if .prometheus.enabled ]]
|
||||
[[- if conv.ToBool .prometheus.enabled ]]
|
||||
meta {
|
||||
metrics-port = "${NOMAD_HOST_PORT_metrics}"
|
||||
alloc = "${NOMAD_ALLOC_INDEX}"
|
||||
|
|
|
@ -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 ]]
|
|
@ -1,4 +1,4 @@
|
|||
[[- if .prometheus.enabled ]]
|
||||
[[- if conv.ToBool .prometheus.enabled ]]
|
||||
[[- /*
|
||||
vim: syntax=hcl
|
||||
*/]]
|
||||
|
|
Loading…
Reference in New Issue