NewCounterVec works like the function of the same name in the prometheus package but it automatically registers the CounterVec with the prometheus.DefaultRegisterer. If the registration fails, NewCounterVec panics.
(opts prometheus.CounterOpts, labelNames []string)
| 173 | // prometheus.DefaultRegisterer. If the registration fails, NewCounterVec |
| 174 | // panics. |
| 175 | func NewCounterVec(opts prometheus.CounterOpts, labelNames []string) *prometheus.CounterVec { |
| 176 | return With(prometheus.DefaultRegisterer).NewCounterVec(opts, labelNames) |
| 177 | } |
| 178 | |
| 179 | // NewCounterFunc works like the function of the same name in the prometheus |
| 180 | // package but it automatically registers the CounterFunc with the |
nothing calls this directly
no test coverage detected