Skip to content
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

Cherry-pick #8260 to 6.x: Adding x-pack code for elasticsearch/index metricset #8337

Merged
merged 1 commit into from
Sep 19, 2018
Merged

Cherry-pick #8260 to 6.x: Adding x-pack code for elasticsearch/index metricset #8337

merged 1 commit into from
Sep 19, 2018

Conversation

ycombinator
Copy link
Contributor

Cherry-pick of PR #8260 to 6.x branch. Original message:

This PR teaches metricbeat to index index_stats documents into .monitoring-es-6-mb-* indices.

* Updating test fixture

* Extract indicesStruct for reuse within package

* Only request specific stats

* Add X-Pack switch

* Adding explanatory comment

* Fleshing it out some more

* Remove empty TODO

* Adding reference comment for fields + refactoring into helper funcs

* Re-formatting

* Extract stats API metrics into own const

* Using errors.Wrap

* Adding logger to elasticsearch metricset

* Log errors

* Sharing the type not the variable 🤦

(cherry picked from commit cfee760)
@@ -29,6 +29,10 @@ import (
"github.com/elastic/beats/metricbeat/module/elasticsearch"
)

type IndicesStruct struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type IndicesStruct should have comment or be unexported

@ycombinator
Copy link
Contributor Author

Depends on elastic/elasticsearch#33790 to be merged first.

@ycombinator ycombinator merged commit 238ef42 into elastic:6.x Sep 19, 2018
@ycombinator ycombinator deleted the backport_8260_6.x branch September 19, 2018 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants