-
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.
Adding cluster_stats metricset for elasticsearch module
- Loading branch information
1 parent
8771862
commit 766b7f3
Showing
16 changed files
with
761 additions
and
2 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
23 changes: 23 additions & 0 deletions
23
metricbeat/docs/modules/elasticsearch/cluster_stats.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,23 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-elasticsearch-cluster_stats]] | ||
=== Elasticsearch cluster_stats metricset | ||
|
||
beta[] | ||
|
||
include::../../../module/elasticsearch/cluster_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/cluster_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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
metricbeat/module/elasticsearch/cluster_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,43 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"elasticsearch": { | ||
"cluster": { | ||
"id": "6UTQ_iuNSzWP49zv99vxDg", | ||
"name": "elasticsearch", | ||
"stats": { | ||
"indices": { | ||
"fielddata": { | ||
"memory": { | ||
"bytes": 1208 | ||
} | ||
}, | ||
"shards": { | ||
"count": 18, | ||
"primaries": 18 | ||
}, | ||
"total": 18 | ||
}, | ||
"nodes": { | ||
"count": 1, | ||
"data": 1, | ||
"master": 1 | ||
}, | ||
"status": "yellow" | ||
} | ||
} | ||
}, | ||
"metricset": { | ||
"host": "127.0.0.1:9200", | ||
"module": "elasticsearch", | ||
"name": "cluster_stats", | ||
"namespace": "elasticsearch.cluster.stats", | ||
"rtt": 115 | ||
}, | ||
"service": { | ||
"name": "elasticsearch" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
metricbeat/module/elasticsearch/cluster_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 @@ | ||
This is the `cluster_stats` metricset of the Elasticsearch module. It interrogates the | ||
https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html[Cluster Stats API endpoint] | ||
to fetch information about the Elasticsearch cluster. |
53 changes: 53 additions & 0 deletions
53
metricbeat/module/elasticsearch/cluster_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,53 @@ | ||
- name: cluster.stats | ||
type: group | ||
description: > | ||
Cluster stats | ||
release: beta | ||
fields: | ||
- name: status | ||
type: keyword | ||
description: > | ||
Cluster status (green, yellow, red). | ||
- name: nodes | ||
type: group | ||
description: > | ||
Nodes statistics. | ||
fields: | ||
- name: count | ||
type: long | ||
description: > | ||
Total number of nodes in cluster. | ||
- name: master | ||
type: long | ||
description: > | ||
Number of master-eligible nodes in cluster. | ||
- name: data | ||
type: long | ||
description: > | ||
Number of data nodes in cluster. | ||
- name: indices | ||
type: group | ||
description: > | ||
Indices statistics. | ||
fields: | ||
- name: count | ||
type: long | ||
description: > | ||
Total number of indices in cluster. | ||
- name: shards | ||
type: group | ||
description: > | ||
Shard statistics. | ||
fields: | ||
- name: count | ||
type: long | ||
description: > | ||
Total number of shards in cluster. | ||
- name: primaries | ||
type: long | ||
description: > | ||
Total number of primary shards in cluster. | ||
- name: fielddata.memory.bytes | ||
type: long | ||
description: > | ||
Memory used for fielddata. |
Oops, something went wrong.