-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix host tagging for external Elasticsearch clusters.
When using an external Elasticsearch cluster, we should tag the hostname by the node's given hostname in the stats output. Otherwise we end up using only the last node's values because each subsequent gauge metric will stomp on the one before it. The test is updated to make sure the hostname given in the stats (which should be the FQDN) matches what we output at the end. Finally, this change also splits the cluster health metrics into a seperate dict. This has two benefits: (a) it will clean up a lot of debugging logging and extra work for `_process_health_data` and (b) makes it easy to check against just the stats metrics for tests.
- Loading branch information
1 parent
4c367b5
commit 677417f
Showing
2 changed files
with
47 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters