Add constraints in job start and add .prometheus.available hint

This commit is contained in:
Daniel Berteaud 2024-03-27 11:24:57 +01:00
parent bb8a2a5d17
commit a7aba5105a
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@
[[- if has .nomad "priority" ]]
priority = [[ .nomad.priority ]]
[[- end ]]
[[ template "common/constraints" . ]]
[[- if has .nomad "update" ]]

View File

@ -194,8 +194,11 @@ mail:
smtp_service_name: smtp
prometheus:
# Set to true if prometheus is available so jobs can use it as a hint to
# turn metrics support on
available: false
# Controls if prometheus metrics should be enabled on all tasks supporting it
enabled: False
enabled: false
# Path of the vault PKI used for monitoring
vault_pki: '[[ .vault.root ]]pki/monitoring'