Implement JVM stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:11:46 +02:00
parent d90026646f
commit 10c4ec74cc
3 changed files with 103 additions and 0 deletions

View File

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