to filter by filesystem type, we need to pass that up the chain
This commit is contained in:
committed by
Cameron Sparr
parent
c1dc77c69c
commit
1d8c7a74d6
@@ -24,9 +24,9 @@ func (s *DiskStats) Gather(acc plugins.Accumulator) error {
|
||||
|
||||
for _, du := range disks {
|
||||
tags := map[string]string{
|
||||
"path": du.Path,
|
||||
"path": du.Path,
|
||||
"fstype": du.Fstype,
|
||||
}
|
||||
|
||||
acc.Add("total", du.Total, tags)
|
||||
acc.Add("free", du.Free, tags)
|
||||
acc.Add("used", du.Total-du.Free, tags)
|
||||
|
||||
Reference in New Issue
Block a user