-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance node_stats metricset with index stats (#4077)
Most of the index stats were added to the node_stats metricset. This allows to fetch the metric stats from each node instead of globally. The difference between these stats is that these are node specific. That means if there are multiple shards / replicas the sum of all doc counts from all nodes is not the same as the doc count in all indices. Remove stats metricset as not needed anymore.
- Loading branch information
1 parent
796fe56
commit 5b71497
Showing
24 changed files
with
140 additions
and
2,425 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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
- module: elasticsearch | ||
metricsets: ["node", "node_stats", "stats"] | ||
metricsets: ["node", "node_stats"] | ||
enabled: false | ||
period: 10s | ||
hosts: ["localhost:9200"] | ||
|
||
|
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
2 changes: 2 additions & 0 deletions
2
metricbeat/module/elasticsearch/node_stats/_meta/docs.asciidoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
=== elasticsearch node_stats MetricSet | ||
|
||
This is the node_stats metricset of the module elasticsearch. It fetches data from `/_nodes/_local/stats`. The data received is only for the local node so this metricset has to be run on each elasticsearch node. | ||
|
||
Note: The indices stats are node specific. That means for example the total number of docs reported by all nodes together is not the total number of documents in all indices as there can also be replicas. |
Oops, something went wrong.