Improve livepeer_value_redeemed
metric implementation
#2917
Labels
status: triage
this issue has not been evaluated yet
livepeer_value_redeemed
metric implementation
#2917
Improved Bug Report
Describe the Bug
The current implementation of the
ValueRedeemed
metric in thego-livepeer
codebase exhibits behaviour where the metric is exposed only upon invoking theredeem winning ticket
method (see these lines of code). The issue arises from the fact that the metric counter is not published when thego-livepeer
client is restarted, as observed in the redeemed value panel of my orchestrator dashboard.To Reproduce
go-livepeer
binary with the-monitor
flag.livepeer_value_redeemed
metric.Expected Behavior
The
livepeer_value_redeemed
metric should function as a counter, initiating at 0. This adjustment ensures compatibility with Prometheus's increase method, enabling the metric to persist through binary restarts.Screenshots
Desktop (Additional Information):
The text was updated successfully, but these errors were encountered: