-
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.
Add elasticsearch node_stats metricset (#4014)
- Loading branch information
1 parent
4840c93
commit a9b5334
Showing
15 changed files
with
1,380 additions
and
3 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 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-elasticsearch-node_stats]] | ||
include::../../../module/elasticsearch/node_stats/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-elasticsearch,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/elasticsearch/node_stats/_meta/data.json[] | ||
---- |
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
67 changes: 67 additions & 0 deletions
67
metricbeat/module/elasticsearch/node_stats/_meta/data.json
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"@timestamp": "2016-05-23T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"elasticsearch": { | ||
"node_stats": { | ||
"jvm": { | ||
"mem": { | ||
"pools": { | ||
"old": { | ||
"max": { | ||
"bytes": 362414080 | ||
}, | ||
"peak": { | ||
"bytes": 212130904 | ||
}, | ||
"peak_max": { | ||
"bytes": 362414080 | ||
}, | ||
"used": { | ||
"bytes": 154487944 | ||
} | ||
}, | ||
"survivor": { | ||
"max": { | ||
"bytes": 17432576 | ||
}, | ||
"peak": { | ||
"bytes": 17432576 | ||
}, | ||
"peak_max": { | ||
"bytes": 17432576 | ||
}, | ||
"used": { | ||
"bytes": 7878680 | ||
} | ||
}, | ||
"young": { | ||
"max": { | ||
"bytes": 139591680 | ||
}, | ||
"peak": { | ||
"bytes": 139591680 | ||
}, | ||
"peak_max": { | ||
"bytes": 139591680 | ||
}, | ||
"used": { | ||
"bytes": 100266128 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"name": "4Il1NmqoQEi-x8a50GNUIw" | ||
} | ||
}, | ||
"metricset": { | ||
"host": "elasticsearch:9200", | ||
"module": "elasticsearch", | ||
"name": "node_stats", | ||
"rtt": 115 | ||
}, | ||
"type": "metricsets" | ||
} |
3 changes: 3 additions & 0 deletions
3
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
=== 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. |
89 changes: 89 additions & 0 deletions
89
metricbeat/module/elasticsearch/node_stats/_meta/fields.yml
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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
- name: node_stats | ||
type: group | ||
description: > | ||
node_stats | ||
fields: | ||
- name: name | ||
type: keyword | ||
description: > | ||
Node name. | ||
- name: jvm.mem.pools | ||
type: group | ||
description: > | ||
JVM memory pool stats | ||
fields: | ||
- name: old | ||
type: group | ||
description: > | ||
Old memory pool stats. | ||
fields: | ||
- name: max.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Max bytes. | ||
- name: peak.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Peak bytes. | ||
- name: peak_max.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Peak max bytes. | ||
- name: used.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Used bytes. | ||
- name: young | ||
type: group | ||
description: > | ||
Young memory pool stats. | ||
fields: | ||
- name: max.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Max bytes. | ||
- name: peak.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Peak bytes. | ||
- name: peak_max.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Peak max bytes. | ||
- name: used.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Used bytes. | ||
- name: survivor | ||
type: group | ||
description: > | ||
Survivor memory pool stats. | ||
fields: | ||
- name: max.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Max bytes. | ||
- name: peak.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Peak bytes. | ||
- name: peak_max.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Peak max bytes. | ||
- name: used.bytes | ||
type: long | ||
format: bytes | ||
description: | ||
Used bytes. |
Oops, something went wrong.