Implement fs stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:32:56 +02:00
parent 4743c9ab16
commit ec4079733e
3 changed files with 34 additions and 0 deletions

View File

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