properly strip path.rootfs from mountpoint labels (#1421)
Change-type: patch Connects-to: #1418 Signed-off-by: dt-rush <nickp@balena.io>
This commit is contained in:
parent
d8e47a9f9f
commit
5d3e2ce2ef
7 changed files with 44 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ func (c *filesystemCollector) GetStats() ([]filesystemStats, error) {
|
|||
stats = append(stats, filesystemStats{
|
||||
labels: filesystemLabels{
|
||||
device: device,
|
||||
mountPoint: mountpoint,
|
||||
mountPoint: rootfsStripPrefix(mountpoint),
|
||||
fsType: fstype,
|
||||
},
|
||||
size: float64(fs.Blocks) * float64(fs.Bsize),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue