March 2020
Intermediate to advanced
626 pages
14h 45m
English
Using the StatsD protocol, a plugin called Telegraf enables monitoring and metrics collection in Consul. StatsD (https://github.com/statsd/statsd) is a daemon that summarizes and aggregates key application metrics.
Telegraf collects metrics about the specific host where the Consul agent is deployed and running. The key attributes to collect are: CPU, memory, disk I/O, networking, and process status.
To enable Telegraf's metrics collection, within the Consul agent configuration file the following code needs to be added and enabled:
{ "telemetry": { "dogstatsd_addr": "localhost:8125", "disable_hostname": true }}
Note that, when Consul is deployed using a Helm chart in a Kubernetes environment, the same feature can be enabled in values.yaml ...
Read now
Unlock full access