erigon-pulse/erigon-lib/metrics
Mark Holt 601b7e6870
Fix metrics get perf regression (#8563)
Calling vm to get a metric and then preregistering it to avoid
duplication is expensive.

To avoid this we can make a local lookup first which is a map this
quicker. This is a temporary fix
until vm is removed at which point we'll have a single prom_client
registry

Fixes: https://github.com/ledgerwatch/erigon/issues/8558
2023-10-23 15:19:52 +01:00
..
collector.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
exp.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
parsing.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
prometheus.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
register.go Fix metrics get perf regression (#8563) 2023-10-23 15:19:52 +01:00
registry.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
set.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
timer.go Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00