nomad/ansible/templates/nomad-base.hcl.j2
Wojtek Bednarzak ec497ff457
ansible/templates: Enable Nomad Telemetry
Enable Telemetry with prometheus metrics so that Nomad metrics can be
scraped and alerts can be created if there's an issue.
2023-03-22 23:42:11 +00:00

18 lines
390 B
Django/Jinja

datacenter = "{{ nomad_datacenter_name }}"
data_dir = "/opt/nomad"
bind_addr = "0.0.0.0"
advertise {
http = "{{ ansible_host }}"
rpc = "{{ ansible_host }}"
serf = "{{ ansible_host }}"
}
telemetry {
collection_interval = "1s"
disable_hostname = true
prometheus_metrics = true
publish_allocation_metrics = true
publish_node_metrics = true
}