docs/reference/metricbeat/metricbeat-metricset-consul-agent.md
% This file is generated! See metricbeat/scripts/mage/docs_collector.go
::::{warning} This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. ::::
The agent metricset fetches information from a Hashicorp Consul agent in Client mode. It fetches information about the health of the autopilot, runtime metrics, and raft data.
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.
For a description of each field in the metricset, see the exported fields section.
Here is an example document generated by this metricset:
{
"@timestamp": "2017-10-12T08:05:34.853Z",
"agent": {
"hostname": "host.example.com",
"name": "host.example.com"
},
"consul": {
"agent": {
"autopilot": {
"healthy": true
},
"raft": {
"commit_time": {
"ms": 0.04560700058937073
}
},
"runtime": {
"alloc": {
"bytes": 6900784
},
"garbage_collector": {
"pause": {
"total": {
"ns": 99490250
}
},
"runs": 287
},
"goroutines": 77,
"heap_objects": 42590,
"malloc_count": 7087169,
"sys": {
"bytes": 74119416
}
}
}
},
"event": {
"dataset": "consul.agent",
"duration": 115000,
"module": "consul"
},
"metricset": {
"name": "agent"
},
"service": {
"address": "localhost:8500",
"type": "consul"
}
}