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.
This commit is contained in:
Wojtek Bednarzak 2023-03-22 23:40:30 +00:00
parent 5d75e7287e
commit ec497ff457
No known key found for this signature in database
GPG key ID: 0A3DE4DE31605343

View file

@ -8,3 +8,11 @@ advertise {
rpc = "{{ ansible_host }}" rpc = "{{ ansible_host }}"
serf = "{{ ansible_host }}" serf = "{{ ansible_host }}"
} }
telemetry {
collection_interval = "1s"
disable_hostname = true
prometheus_metrics = true
publish_allocation_metrics = true
publish_node_metrics = true
}