diff --git a/manifests/integrations/consul.pp b/manifests/integrations/consul.pp index 355db29b..081d9129 100644 --- a/manifests/integrations/consul.pp +++ b/manifests/integrations/consul.pp @@ -27,10 +27,11 @@ # } # class datadog_agent::integrations::consul( - $url = 'http://localhost:8500', - $catalog_checks = true, - $new_leader_checks = true, - $service_whitelist = [] + $url = 'http://localhost:8500', + $catalog_checks = true, + $network_latency_checks = true, + $new_leader_checks = true, + $service_whitelist = [] ) inherits datadog_agent::params { include datadog_agent diff --git a/templates/agent-conf.d/consul.yaml.erb b/templates/agent-conf.d/consul.yaml.erb index dae1ab3a..56333806 100644 --- a/templates/agent-conf.d/consul.yaml.erb +++ b/templates/agent-conf.d/consul.yaml.erb @@ -29,6 +29,12 @@ instances: # you will receive one event per leader change per agent new_leader_checks: <%= @new_leader_checks ? 'yes' : 'no' %> + # Whether to enable network latency metrics collection. When enabled + # consul network coordinates will be retrieved and latency calculated for + # each node and between data centers. + # See https://www.consul.io/docs/internals/coordinates.html + network_latency_checks: <%= @network_latency_checks ? 'yes' : 'no' %> + # Services to restrict catalog querying to # The default settings query up to 50 services. So if you have more than # this many in your Consul service catalog, you will want to fill in the