Implement process stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:06:30 +02:00
parent 9cd1344740
commit d90026646f
3 changed files with 35 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ type node struct {
Attributes map[string]string `json:"attributes"`
Indices interface{} `json:"indices"`
Os interface{} `json:"os"`
Process interface{} `json:"process"`
}
const sampleConfig = `
@@ -103,6 +104,9 @@ func (e *Elasticsearch) gatherUrl(url string, acc plugins.Accumulator) error {
if err := e.parseInterface(acc, "os", tags, n.Os); err != nil {
return err
}
if err := e.parseInterface(acc, "process", tags, n.Process); err != nil {
return err
}
}
return nil