From 3b744f3c3220d00133770c240816dc6036954f57 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 1 Apr 2020 23:43:09 +0300 Subject: [PATCH] app/vmstorage: typo fix --- app/vmstorage/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmstorage/main.go b/app/vmstorage/main.go index b0449fbb76..fbcea3b07f 100644 --- a/app/vmstorage/main.go +++ b/app/vmstorage/main.go @@ -197,8 +197,8 @@ func registerStorageMetrics(strg *storage.Storage) { return &sm.IndexDBMetrics } - metrics.NewGauge(fmt.Sprintf(`vm_free_disk_space_bytes{path=%q}`, *DataPath), func() float64 { - return float64(fs.MustGetFreeSpace(*DataPath)) + metrics.NewGauge(fmt.Sprintf(`vm_free_disk_space_bytes{path=%q}`, *storageDataPath), func() float64 { + return float64(fs.MustGetFreeSpace(*storageDataPath)) }) metrics.NewGauge(`vm_active_merges{type="storage/big"}`, func() float64 {