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

Add elasticsearch module with stats metricset #3903

Merged
merged 1 commit into from
Apr 11, 2017

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Apr 4, 2017

This adds the stats metricset for the elasticsearch module. The stats metricset gives and overview over the current state of the cluster.

"successful": 11,
"total": 22
},
"store": {
Copy link

Choose a reason for hiding this comment

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

Is this store.size.bytes the total disk space used by indices? If so, that's awesome, if not then I'm not sure we want it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will add it in a follow up PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

@joegallo The es docs state: The size of the index. So I think it is what we assumed above.

"failed": 0,
"successful": 11,
"total": 22
},
Copy link

Choose a reason for hiding this comment

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

I think docs, segments, shards all look fine. I'd like to have an indices section here as well, though, with a total count (or maybe closed and total)? Whatever you think makes sense on that.

Copy link
Member Author

Choose a reason for hiding this comment

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

will add it in a follow up PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

added in #4077


import "os"

func GetEnvHost() string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported function GetEnvHost should have comment or be unexported

return host
}

func GetEnvPort() string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported function GetEnvPort should have comment or be unexported

return port
}

func GetConfig(metricset string) map[string]interface{} {
Copy link
Collaborator

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported function GetConfig should have comment or be unexported

This adds the stats metricset for the elasticsearch module. The stats metricset gives and overview over the current state of the cluster.
@ruflin
Copy link
Member Author

ruflin commented Apr 10, 2017

jenkins, retest it

@@ -0,0 +1,4 @@
== elasticsearch Module

This is the elasticsearch Module. The elasticsearch module contains a minimal set of metrics to enable monitoring of elasticsearch across multiple versions.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we link to xpack monitoring here, as a more complete alternative? Can come in a different PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

+1. Will also add it in Kibana.

@tsg
Copy link
Contributor

tsg commented Apr 11, 2017

Changelog?

@tsg tsg merged commit 0ed6641 into elastic:master Apr 11, 2017
@ruflin ruflin deleted the mb-elasticsearch-module branch April 18, 2017 13:01
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.

4 participants