Skip to content

Commit c3a5275

Browse files
Aramacktruthbk
authored andcommitted
Add network_latency_checks parameter to consul checks (DataDog#393) (DataDog#394)
1 parent 9c10ae7 commit c3a5275

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

manifests/integrations/consul.pp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
# }
2828
#
2929
class datadog_agent::integrations::consul(
30-
$url = 'http://localhost:8500',
31-
$catalog_checks = true,
32-
$new_leader_checks = true,
33-
$service_whitelist = []
30+
$url = 'http://localhost:8500',
31+
$catalog_checks = true,
32+
$network_latency_checks = true,
33+
$new_leader_checks = true,
34+
$service_whitelist = []
3435
) inherits datadog_agent::params {
3536
include datadog_agent
3637

templates/agent-conf.d/consul.yaml.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ instances:
2929
# you will receive one event per leader change per agent
3030
new_leader_checks: <%= @new_leader_checks ? 'yes' : 'no' %>
3131

32+
# Whether to enable network latency metrics collection. When enabled
33+
# consul network coordinates will be retrieved and latency calculated for
34+
# each node and between data centers.
35+
# See https://www.consul.io/docs/internals/coordinates.html
36+
network_latency_checks: <%= @network_latency_checks ? 'yes' : 'no' %>
37+
3238
# Services to restrict catalog querying to
3339
# The default settings query up to 50 services. So if you have more than
3440
# this many in your Consul service catalog, you will want to fill in the

0 commit comments

Comments
 (0)