-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ElasticSearch agent check should only query the local node. #1181
Merged
Conversation
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
Thanks a lot for the detailed feedback and the PR @jonaf ! We are going to review that. |
Thanks a bunch @jonaf . We're merging it. |
remh
pushed a commit
that referenced
this pull request
Dec 18, 2014
ElasticSearch agent check should only query the local node.
olivielpeau
added a commit
that referenced
this pull request
Jun 4, 2015
The hostname matching is not needed anymore as: - since PR #1181 we only ask the _local node for stats when `is_external` is set to `false` - we don't match the hostname at all when `is_external` is `true` Matching hostnames can also filter out legitimate data when the local elasticsearch node reports a different hostname. See also issue #457
olivielpeau
added a commit
that referenced
this pull request
Jun 4, 2015
The hostname matching is not needed anymore as: - since PR #1181 we only ask the _local node for stats when `is_external` is set to `false` - we don't match the hostname at all when `is_external` is `true` Matching hostnames can also filter out legitimate data when the local elasticsearch node reports a different hostname. See also issue #457
olivielpeau
added a commit
that referenced
this pull request
Jun 5, 2015
The hostname matching is not needed anymore as: - since PR #1181 we only ask the _local node for stats when `is_external` is set to `false` - we don't match the hostname at all when `is_external` is `true` Matching hostnames can also filter out legitimate data when the local elasticsearch node reports a different hostname. See also issue #457
olivielpeau
added a commit
that referenced
this pull request
Jun 9, 2015
The hostname matching is not needed anymore as: - since PR #1181 we only ask the _local node for stats when `is_external` is set to `false` - we don't match the hostname at all when `is_external` is `true` Matching hostnames can also filter out legitimate data when the local elasticsearch node reports a different hostname. See also issue #457
olivielpeau
added a commit
that referenced
this pull request
Jun 9, 2015
The hostname matching is not needed anymore as: - since PR #1181 we only ask the _local node for stats when `is_external` is set to `false` - we don't match the hostname at all when `is_external` is `true` Matching hostnames can also filter out legitimate data when the local elasticsearch node reports a different hostname. See also issue #457
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current ElasticSearch agent check will cause all nodes in an ElasticSearch cluster to cease reporting metrics if one ElasticSearch node fails or is slow to respond to the request. This is because ElasticSearch will query all nodes in the cluster before providing a response. In practice, Bazaarvoice has seen this produce troubling side-effects in Datadog graphs: all the nodes in the cluster suddenly stop reporting metrics. This is particularly problematic when looking at historical data and trying to draw conclusions based on the data -- because the Datadog graphs draw a line between two visible data points, it is rarely obvious that no data was reported during a certain period of time; rather, it just looks like very unusual and sometimes frightening metrics were being sent from the ElasticSearch nodes.
The easy way to fix all of this is, of course, to simply inform ElasticSearch that it should only look at the local node stats, and allow all the other ElasticSearch nodes to do the same.
Tested with ElasticSearch 0.90.13 and later.