lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

Add lodestar prefix to validator monitor metrics

Open KatyaRyazantseva opened this issue 8 months ago • 4 comments

Problem description

Validator monitor metrics validator_monitor_ should be also prefixed with lodestar_: lodestar_validator_monitor_ instead of validator_monitor_. Potentially it should be fixed in 2.0 release.

Originally posted by @nflaig in #7722 (comment)

Solution description

Add lodestar_ prefix for all validator_monitor_ metrics.

Additional context

No response

KatyaRyazantseva avatar Apr 30 '25 21:04 KatyaRyazantseva

Is it a breaking change for Validator Monitor dashboard users? It will affect a lot of metrics. Or 2.0 release is a breaking change itself?

KatyaRyazantseva avatar Apr 30 '25 21:04 KatyaRyazantseva

Is it a breaking change for Validator Monitor dashboard users? It will affect a lot of metrics. Or 2.0 release is a breaking change itself?

technically changing metric names is a breaking change as metrics are an external api but depending on which metric it is and how long it has been around in lodestar we can make exceptions

for this specific case, I think we need to be careful, I would rather do it in our 2.0 release and note it clearly in breaking changes

also would be curious if anyone knows why we didn't use prefix here, I know that Lion implemented it based on what Lighthouse had and the even have a dashboard for it ValidatorMonitor.json which uses the same metric names, so maybe the idea was to have them standardized.

I imported that dashboard on my node but it doesn't seem to work pretty well with lodestar

Image

some panels work though

Image

I guess we should consider if it's even worth renaming the metrics, those have been around for a long time like this

nflaig avatar Apr 30 '25 21:04 nflaig

I will note that currently #7011 is still technically in scoping and no decision has been made yet on a catalyst feature/upgrade for setting some sort of estimate to its potential release. Was one of the discussions I plan to have in more detail for consensus with the team in June. Noting this as part of something we can target with 2.0

philknows avatar May 05 '25 01:05 philknows

Noting this as part of something we can target with 2.0

yes we can keep track of this there, metrics renaming, cli flag renaming, etc. should only be done in a major release

nflaig avatar May 05 '25 05:05 nflaig