Implement thread-pool stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:18:24 +02:00
parent 10c4ec74cc
commit ac54b7cdd1
3 changed files with 251 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ type node struct {
Os interface{} `json:"os"`
Process interface{} `json:"process"`
JVM interface{} `json:"jvm"`
ThreadPool interface{} `json:"thread_pool"`
}
const sampleConfig = `
@@ -111,6 +112,9 @@ func (e *Elasticsearch) gatherUrl(url string, acc plugins.Accumulator) error {
if err := e.parseInterface(acc, "jvm", tags, n.JVM); err != nil {
return err
}
if err := e.parseInterface(acc, "thread_pool", tags, n.ThreadPool); err != nil {
return err
}
}
return nil