Address incorrect table metric value for local mounts (#14755)

* Address incorrect table metric value for local mounts

 - Reported within issue #14750 as a panic, it was identified that
   we were using the wrong value for local mounts within the table metrics.

* Add changelog
This commit is contained in:
Steven Clark 2022-03-30 13:06:49 -04:00 committed by GitHub
parent c3f7bf6940
commit 77feaad6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
changelog/14755.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
core/metrics: Fix incorrect table size metric for local mounts
```

View File

@ -1035,7 +1035,7 @@ func (c *Core) loadMounts(ctx context.Context) error {
return err
}
if localMountTable != nil && len(localMountTable.Entries) > 0 {
c.tableMetrics(len(localMountTable.Entries), true, false, raw.Value)
c.tableMetrics(len(localMountTable.Entries), true, false, rawLocal.Value)
c.mounts.Entries = append(c.mounts.Entries, localMountTable.Entries...)
}
}