Skip to content

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)
"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