-
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
Add elasticsearch module with stats metricset #3903
Conversation
"successful": 11, | ||
"total": 22 | ||
}, | ||
"store": { |
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.
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.
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.
I will add it in a follow up PR.
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.
@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 | ||
}, |
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.
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.
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.
will add it in a follow up PR.
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.
added in #4077
9623128
to
2987987
Compare
|
||
import "os" | ||
|
||
func GetEnvHost() 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.
[golint] reported by reviewdog 🐶
exported function GetEnvHost should have comment or be unexported
return host | ||
} | ||
|
||
func GetEnvPort() 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.
[golint] reported by reviewdog 🐶
exported function GetEnvPort should have comment or be unexported
return port | ||
} | ||
|
||
func GetConfig(metricset string) map[string]interface{} { |
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.
[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.
2987987
to
a6cc12f
Compare
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. |
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.
Should we link to xpack monitoring here, as a more complete alternative? Can come in a different PR.
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.
+1. Will also add it in Kibana.
Changelog? |
This adds the stats metricset for the elasticsearch module. The stats metricset gives and overview over the current state of the cluster.