mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
GetAll did not return GaugeInfo metrics, which affects "chain/info" and "geth/info". Co-authored-by: vickkkkkyy <vickyaviles847@gmail.com>
This commit is contained in:
parent
f781cee1b8
commit
11471fd4b0
1 changed files with 2 additions and 0 deletions
|
|
@ -143,6 +143,8 @@ func (r *StandardRegistry) GetAll() map[string]map[string]interface{} {
|
||||||
values["value"] = metric.Snapshot().Value()
|
values["value"] = metric.Snapshot().Value()
|
||||||
case *GaugeFloat64:
|
case *GaugeFloat64:
|
||||||
values["value"] = metric.Snapshot().Value()
|
values["value"] = metric.Snapshot().Value()
|
||||||
|
case *GaugeInfo:
|
||||||
|
values["value"] = metric.Snapshot().Value()
|
||||||
case *Healthcheck:
|
case *Healthcheck:
|
||||||
values["error"] = nil
|
values["error"] = nil
|
||||||
metric.Check()
|
metric.Check()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue