forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic shard metricset to Elasticsearch (elastic#7006)
- Loading branch information
Showing
19 changed files
with
1,020 additions
and
13 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
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-shard]] | ||
=== Elasticsearch shard metricset | ||
|
||
experimental[] | ||
|
||
include::../../../module/elasticsearch/shard/_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/shard/_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
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,8 +1,9 @@ | ||
- module: elasticsearch | ||
metricsets: | ||
#- index | ||
#- index_summary | ||
- node | ||
- node_stats | ||
- node | ||
- node_stats | ||
#- index | ||
#- index_summary | ||
#- shard | ||
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
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
29 changes: 29 additions & 0 deletions
29
metricbeat/module/elasticsearch/shard/_meta/data-xpack.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,29 @@ | ||
{ | ||
"_index": ".monitoring-es-6-2018.04.29", | ||
"_type": "doc", | ||
"_id": "zCHJWMeqT1StL1M28ml_Vw:r4XD9O8eTrCHyN_GJswZ5A:heartbeat-6.0.0-rc1-2018.04.14:0:p", | ||
"_score": 2.0136, | ||
"_source": { | ||
"cluster_uuid": "3zVAmPiRRNK6TYXeqCVbqg", | ||
"timestamp": "2018-04-29T00:00:30.108Z", | ||
"interval_ms": 10000, | ||
"type": "shards", | ||
"source_node": { | ||
"uuid": "r4XD9O8eTrCHyN_GJswZ5A", | ||
"host": "172.25.133.112", | ||
"transport_address": "172.25.133.112:19608", | ||
"ip": "172.25.133.112", | ||
"name": "instance-0000000016", | ||
"timestamp": "2018-04-29T00:00:30.073Z" | ||
}, | ||
"state_uuid": "zCHJWMeqT1StL1M28ml_Vw", | ||
"shard": { | ||
"state": "STARTED", | ||
"primary": true, | ||
"node": "r4XD9O8eTrCHyN_GJswZ5A", | ||
"relocating_node": null, | ||
"shard": 0, | ||
"index": "heartbeat-6.0.0-rc1-2018.04.14" | ||
} | ||
} | ||
} |
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,35 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"elasticsearch": { | ||
"cluster": { | ||
"name": "elasticsearch", | ||
"state": { | ||
"id": "dJaHX6fxSqSVMOsL4QZwwQ" | ||
} | ||
}, | ||
"index": { | ||
"name": "filebeat-7.0.0-alpha1-2018.05.09" | ||
}, | ||
"node": { | ||
"name": "523zXyT6TRWiqXcQItnkyQ" | ||
}, | ||
"shard": { | ||
"primary": true, | ||
"state": "STARTED" | ||
} | ||
}, | ||
"metricset": { | ||
"host": "127.0.0.1:9200", | ||
"module": "elasticsearch", | ||
"name": "shard", | ||
"namespace": "elasticsearch.shard", | ||
"rtt": 115 | ||
}, | ||
"service": { | ||
"name": "elasticsearch" | ||
} | ||
} |
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,2 @@ | ||
The `shard` metricset interrogates the | ||
https://www.elastic.co/guide/en/elasticsearch/reference/6.2/cluster-state.html[Cluster State API endpoint] to fetch information about all shards. |
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,18 @@ | ||
- name: shard | ||
type: group | ||
description: > | ||
shard fields | ||
fields: | ||
- name: primary | ||
type: boolean | ||
description: > | ||
True if this is the primary shard. | ||
- name: number | ||
type: long | ||
description: > | ||
The number of this shard. | ||
- name: state | ||
type: keyword | ||
description: > | ||
The state of this shard. |
Oops, something went wrong.