Implement breakers stats.

This commit is contained in:
Orne Brocaar
2015-07-09 20:43:52 +02:00
parent 0faa1c886a
commit d799011039
3 changed files with 48 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ type node struct {
FS interface{} `json:"fs"`
Transport interface{} `json:"transport"`
HTTP interface{} `json:"http"`
Breakers interface{} `json:"breakers"`
}
const sampleConfig = `
@@ -131,6 +132,9 @@ func (e *Elasticsearch) gatherUrl(url string, acc plugins.Accumulator) error {
if err := e.parseInterface(acc, "http", tags, n.HTTP); err != nil {
return err
}
if err := e.parseInterface(acc, "breakers", tags, n.Breakers); err != nil {
return err
}
}
return nil