-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
@@ -0,0 +1,75 @@ | |||
// +build integration | |||
|
|||
package index_summary |
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.
don't use an underscore in package name
@@ -0,0 +1,78 @@ | |||
package index_summary |
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.
don't use an underscore in package name
@@ -0,0 +1,46 @@ | |||
// +build !integration | |||
|
|||
package index_summary |
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.
don't use an underscore in package name
@@ -0,0 +1,77 @@ | |||
package index_summary |
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.
don't use an underscore in package name
48615a5
to
dbedd70
Compare
e4cd2c1
to
0213dc3
Compare
jenkins, test this |
f5fa8e4
to
3cdc538
Compare
65a88dd
to
721c268
Compare
@@ -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) { |
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.
@jsoriano Does that look like discussed?
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.
Yes :)
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.
LGTM, left 2 nitpick comments
|
||
// Fetch gathers stats for each index from the _stats API | ||
func (m *MetricSet) Fetch(r mb.ReporterV2) { | ||
|
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.
Could you please remove this empty line?
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.
done
) | ||
|
||
func eventMapping(r mb.ReporterV2, info elasticsearch.Info, content []byte) { | ||
|
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.
empty first line
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.
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.
This provides stats for the summary across all Elasticsearch indicies. Starts are fetched from the _stats endpoint.
This provides stats for the summary across all Elasticsearch indicies. Starts are fetched from the _stats endpoint.
This provides stats for the summary across all Elasticsearch indicies. Starts are fetched from the _stats endpoint.