3 ms·
> If go's Prometheus library had an easy way to run "metric.CurrentValue()"... A small tip for the future: https://pkg.go.dev/github.com/prometheus/client_gola
by morelisp 6y ago
> If go's Prometheus library had an easy way to run "metric.CurrentValue()"...
A small tip for the future: https://pkg.go.dev/github.com/prometheus/client_golang/prometheus/testutil https://pkg.go.dev/github.com/prometheus/client_golang/prome....
- jrockway 6y agoThanks! I've seen that before, but didn't realize that ToFloat64() was what I was looking for.