|
|
@ -6,10 +6,14 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type (
|
|
|
|
type (
|
|
|
|
|
|
|
|
// A CounterVecOpts is an alias of VectorOpts.
|
|
|
|
CounterVecOpts VectorOpts
|
|
|
|
CounterVecOpts VectorOpts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CounterVec interface represents a counter vector.
|
|
|
|
CounterVec interface {
|
|
|
|
CounterVec interface {
|
|
|
|
|
|
|
|
// Inc increments labels.
|
|
|
|
Inc(lables ...string)
|
|
|
|
Inc(lables ...string)
|
|
|
|
|
|
|
|
// Add adds labels with v.
|
|
|
|
Add(v float64, labels ...string)
|
|
|
|
Add(v float64, labels ...string)
|
|
|
|
close() bool
|
|
|
|
close() bool
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -19,6 +23,7 @@ type (
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NewCounterVec returns a CounterVec.
|
|
|
|
func NewCounterVec(cfg *CounterVecOpts) CounterVec {
|
|
|
|
func NewCounterVec(cfg *CounterVecOpts) CounterVec {
|
|
|
|
if cfg == nil {
|
|
|
|
if cfg == nil {
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|