diff options
Diffstat (limited to 'weed/storage/disk_location.go')
| -rw-r--r-- | weed/storage/disk_location.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index c309b3f92..ed57aa54b 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -305,6 +305,9 @@ func (l *DiskLocation) CheckDiskSpace() { for { if dir, e := filepath.Abs(l.Directory); e == nil { s := stats.NewDiskStatus(dir) + stats.VolumeServerResourceGauge.WithLabelValues(l.Directory, "all").Set(float64(s.All)) + stats.VolumeServerResourceGauge.WithLabelValues(l.Directory, "used").Set(float64(s.Used)) + stats.VolumeServerResourceGauge.WithLabelValues(l.Directory, "free").Set(float64(s.Free)) if (s.PercentFree < l.MinFreeSpacePercent) != l.isDiskSpaceLow { l.isDiskSpaceLow = !l.isDiskSpaceLow } |
