micro-meter-prometheus/gauge.go
Vasiliy Tolstov da9201efff
Some checks failed
codeql / analyze (go) (push) Failing after 35s
build / test (push) Failing after 4m53s
build / lint (push) Successful in 9m30s
lower memory usage
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-10-06 13:45:33 +03:00

13 lines
215 B
Go

package prometheus
import dto "github.com/prometheus/client_model/go"
type prometheusGauge struct {
name string
c *dto.Metric
}
func (c prometheusGauge) Get() float64 {
return getFloat64(c.c.Gauge.Value)
}