From 8222783461d6cc0fe0d4fcd27ad1f0b2a838ab5e Mon Sep 17 00:00:00 2001 From: Steve Clark Date: Tue, 29 Mar 2022 11:14:15 -0400 Subject: [PATCH 1/2] 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. --- vault/mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...) } } From 014faa2c5124889e75fe3d69b6be24d8e48b7466 Mon Sep 17 00:00:00 2001 From: Steve Clark Date: Tue, 29 Mar 2022 12:21:14 -0400 Subject: [PATCH 2/2] Add changelog --- changelog/14755.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/14755.txt 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 +```