Implement thread-pool stats.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user