16 lines
413 B
Plaintext
16 lines
413 B
Plaintext
meta {
|
|
[[- if conv.ToBool .prometheus.enabled ]]
|
|
[[- if not (has .consul.meta "metrics-port") ]]
|
|
metrics-port = "${NOMAD_HOST_PORT_metrics}"
|
|
[[- end ]]
|
|
[[- if not (has .consul.meta "alloc") ]]
|
|
alloc = "${NOMAD_ALLOC_INDEX}"
|
|
[[- end ]]
|
|
[[- end ]]
|
|
[[- if has .consul "meta" ]]
|
|
[[- range $k, $v := .consul.meta ]]
|
|
[[ $k ]] = "[[ $v ]]"
|
|
[[- end ]]
|
|
[[- end ]]
|
|
}
|