Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[elastic] improve hostname resolution
When the `cluster_stats` parameter is enabled in the user configuration, the Datadog Agent's Elasticsearch check attempts to resolve and attach with the corresponding metrics, the hostname of the different nodes. On Amazon Elasticsearch v1.5.2, the node objects returned by the `_cluster/nodes/stats?all=true` endpoint returns the following keys: ``` root@xxxx:~# at node_stats.json| jq '.nodes[] | select(.name == "${hostname}") | keys [ "breakers", "fs", "indices", "jvm", "name", "os", "process", "thread_pool", "timestamp" ] ``` `name` contains the hostname.
- Loading branch information