NewCounterFunc works like the function of the same name in the prometheus package but it automatically registers the CounterFunc with the prometheus.DefaultRegisterer. If the registration fails, NewCounterFunc panics.
(opts prometheus.CounterOpts, function func() float64)
| 181 | // prometheus.DefaultRegisterer. If the registration fails, NewCounterFunc |
| 182 | // panics. |
| 183 | func NewCounterFunc(opts prometheus.CounterOpts, function func() float64) prometheus.CounterFunc { |
| 184 | return With(prometheus.DefaultRegisterer).NewCounterFunc(opts, function) |
| 185 | } |
| 186 | |
| 187 | // NewGauge works like the function of the same name in the prometheus package |
| 188 | // but it automatically registers the Gauge with the |
nothing calls this directly
no test coverage detected