Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions manifests/integrations/consul.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions templates/agent-conf.d/consul.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down