-
Notifications
You must be signed in to change notification settings - Fork 5k
Add basic index recovery metricset #7225
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
Changes from all commits
89da914
cc9b504
988b562
f23eb14
e04a187
3b2b331
0f84366
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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-index_recovery]] | ||
| === Elasticsearch index_recovery metricset | ||
|
|
||
| experimental[] | ||
|
|
||
| include::../../../module/elasticsearch/index_recovery/_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/index_recovery/_meta/data.json[] | ||
| ---- |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "@timestamp": "2017-10-12T08:05:34.853Z", | ||
| "beat": { | ||
| "hostname": "host.example.com", | ||
| "name": "host.example.com" | ||
| }, | ||
| "elasticsearch": { | ||
| "index": { | ||
| "name": "test-index", | ||
| "recovery": { | ||
| "id": 0, | ||
| "primary": true, | ||
| "source": {}, | ||
| "stage": "DONE", | ||
| "target": { | ||
| "host": "127.0.0.1", | ||
| "id": "ODWb5m6zT9q0lf8YTPyWWg", | ||
| "name": "ODWb5m6" | ||
| }, | ||
| "type": "EMPTY_STORE" | ||
| } | ||
| } | ||
| }, | ||
| "metricset": { | ||
| "host": "127.0.0.1:9200", | ||
| "module": "elasticsearch", | ||
| "name": "index_recovery", | ||
| "namespace": "elasticsearch.index.recovery", | ||
| "rtt": 115 | ||
| }, | ||
| "service": { | ||
| "name": "elasticsearch" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| This is the index_recovery metricset of the module Elasticsearch. | ||
|
|
||
| By default only data about indices which are under active recovery are fetched. | ||
| To gather data about all indices set `index_recovery.active_only: false`: | ||
|
|
||
| ["source","yaml",subs="attributes"] | ||
| ------------------------------------------------------------------------------------- | ||
| - module: elasticsearch | ||
| metricsets: | ||
| - index_recovery | ||
| hosts: ["localhost:9200"] | ||
| index_recovery.active_only: false | ||
| ------------------------------------------------------------------------------------- | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| - name: index.recovery | ||
| type: group | ||
| description: > | ||
| index | ||
| fields: | ||
| - name: id | ||
| type: long | ||
| description: > | ||
| Shard recovery id. | ||
| - name: type | ||
| type: keyword | ||
| description: > | ||
| Shard recovery type. | ||
| - name: primary | ||
| type: boolean | ||
| description: > | ||
| True if primary shard. | ||
| - name: stage | ||
| type: keyword | ||
| description: > | ||
| Recovery stage. | ||
|
|
||
| - name: target.id | ||
| type: keyword | ||
| description: > | ||
| Target node id. | ||
| - name: target.host | ||
| type: ip | ||
| description: > | ||
| Target node host address. | ||
| - name: target.name | ||
| type: keyword | ||
| description: > | ||
| Target node name. | ||
|
|
||
| - name: source.id | ||
| type: keyword | ||
| description: > | ||
| Source node id. | ||
| - name: source.host | ||
| type: ip | ||
| description: > | ||
| Source node host address. | ||
| - name: source.name | ||
| type: keyword | ||
| description: > | ||
| Source node name. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about other fields such as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add them later.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, later |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
shard_id?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of, see my comment in the code: https://github.com/elastic/beats/pull/7225/files#diff-d198e8deee0000763245926eefe134eaR32
TBH I'm still struggling a bit with what
shard.idis as I would expect it to be a unique identifier but it's a counting integer related to an index as far as I can see.