diff --git a/changelog/14755.txt b/changelog/14755.txt new file mode 100644 index 000000000000..1c94f448d249 --- /dev/null +++ b/changelog/14755.txt @@ -0,0 +1,3 @@ +```release-note:bug +core/metrics: Fix incorrect table size metric for local mounts +``` diff --git a/vault/mount.go b/vault/mount.go index 78ac7218d741..87fbaf036594 100644 --- a/vault/mount.go +++ b/vault/mount.go @@ -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...) } }