2024-10-06 13:45:33 +03:00
|
|
|
package prometheus
|
|
|
|
|
|
|
|
import dto "github.com/prometheus/client_model/go"
|
|
|
|
|
|
|
|
type prometheusGauge struct {
|
|
|
|
name string
|
|
|
|
c *dto.Metric
|
2024-11-08 15:27:05 +03:00
|
|
|
n float64
|
2024-10-06 13:45:33 +03:00
|
|
|
}
|
|
|
|
|
2024-11-08 15:27:05 +03:00
|
|
|
func (c *prometheusGauge) Get() float64 {
|
|
|
|
return getFloat64(&(c.n))
|
2024-10-06 13:45:33 +03:00
|
|
|
}
|