From 11471fd4b0aeeb692df89cf5e78b22a0bcf8785d Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Sat, 28 Feb 2026 20:53:35 +0800 Subject: [PATCH] fix(metrics): add missing GaugeInfo case in GetAll() #33748 (#2041) GetAll did not return GaugeInfo metrics, which affects "chain/info" and "geth/info". Co-authored-by: vickkkkkyy --- metrics/registry.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metrics/registry.go b/metrics/registry.go index b794c96357..f44af4493b 100644 --- a/metrics/registry.go +++ b/metrics/registry.go @@ -143,6 +143,8 @@ func (r *StandardRegistry) GetAll() map[string]map[string]interface{} { values["value"] = metric.Snapshot().Value() case *GaugeFloat64: values["value"] = metric.Snapshot().Value() + case *GaugeInfo: + values["value"] = metric.Snapshot().Value() case *Healthcheck: values["error"] = nil metric.Check()