Add disk usage stats

This commit is contained in:
Evan Phoenix
2015-04-06 10:34:55 -07:00
parent 71461e7a49
commit 3d753d721a
4 changed files with 87 additions and 0 deletions

View File

@@ -23,3 +23,19 @@ func (a *Accumulator) CheckValue(name string, val interface{}) bool {
return false
}
func (a *Accumulator) CheckTaggedValue(name string, val interface{}, tags map[string]string) bool {
for _, p := range a.Points {
for k, v := range p.Tags {
if tags[k] != v {
continue
}
}
if p.Name == name {
return p.Value == val
}
}
return false
}