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

Elasticsearch index summary metricset #6918

Merged
merged 1 commit into from
May 9, 2018

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Apr 23, 2018

This provides stats for the summary across all Elasticsearch indicies. Starts are fetched from the _stats endpoint.

@@ -0,0 +1,75 @@
// +build integration

package index_summary

Choose a reason for hiding this comment

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

don't use an underscore in package name

@@ -0,0 +1,78 @@
package index_summary

Choose a reason for hiding this comment

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

don't use an underscore in package name

@@ -0,0 +1,46 @@
// +build !integration

package index_summary

Choose a reason for hiding this comment

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

don't use an underscore in package name

@@ -0,0 +1,77 @@
package index_summary

Choose a reason for hiding this comment

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

don't use an underscore in package name

@ruflin ruflin added the in progress Pull request is currently in progress. label Apr 23, 2018
@ruflin ruflin force-pushed the es-index-summary branch 3 times, most recently from 48615a5 to dbedd70 Compare April 30, 2018 13:23
@ruflin ruflin removed the in progress Pull request is currently in progress. label Apr 30, 2018
@ruflin ruflin force-pushed the es-index-summary branch 2 times, most recently from e4cd2c1 to 0213dc3 Compare May 3, 2018 14:03
@ruflin
Copy link
Member Author

ruflin commented May 4, 2018

jenkins, test this

@ruflin ruflin force-pushed the es-index-summary branch 3 times, most recently from f5fa8e4 to 3cdc538 Compare May 8, 2018 06:36
@ruflin ruflin force-pushed the es-index-summary branch 3 times, most recently from 65a88dd to 721c268 Compare May 9, 2018 12:26
@@ -141,17 +142,17 @@ func StandardizeEvent(ms mb.MetricSet, e mb.Event, modifiers ...mb.EventModifier
// WriteEventToDataJSON writes the given event as "pretty" JSON to
// a ./_meta/data.json file. If the -data CLI flag is unset or false then the
// method is a no-op.
func WriteEventToDataJSON(t testing.TB, fullEvent beat.Event, pathPostfix string) {
func WriteEventToDataJSON(t testing.TB, fullEvent beat.Event, postfixPath string) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@jsoriano Does that look like discussed?

Copy link
Member

Choose a reason for hiding this comment

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

Yes :)

Copy link
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

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

LGTM, left 2 nitpick comments


// Fetch gathers stats for each index from the _stats API
func (m *MetricSet) Fetch(r mb.ReporterV2) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please remove this empty line?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

)

func eventMapping(r mb.ReporterV2, info elasticsearch.Info, content []byte) {

Copy link
Contributor

Choose a reason for hiding this comment

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

empty first line

Copy link
Member Author

Choose a reason for hiding this comment

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

done ;-) One day I will get used to it ...

This provides stats for the summary across all Elasticsearch indicies. Starts are fetched from the _stats endpoint.
@exekias exekias merged commit 9306c09 into elastic:master May 9, 2018
stevea78 pushed a commit to stevea78/beats that referenced this pull request May 20, 2018
This provides stats for the summary across all Elasticsearch indicies. Starts are fetched from the _stats endpoint.
stevea78 pushed a commit to stevea78/beats that referenced this pull request May 20, 2018
This provides stats for the summary across all Elasticsearch indicies. Starts are fetched from the _stats endpoint.
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.

None yet

4 participants