Implement network stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:23:04 +02:00
parent ac54b7cdd1
commit 4743c9ab16
3 changed files with 35 additions and 0 deletions

View File

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