File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,9 @@ type Counter interface {
12
12
Add (float64 ) // Only positive
13
13
}
14
14
15
- type Labels map [string ]string
16
-
17
15
// CounterVec is a counter with tags.
18
16
type CounterVec interface {
19
- With ( Labels ) Counter
17
+ WithLabelValues ( lvs ... string ) Counter
20
18
}
21
19
22
20
// Gauge is a metric that can be increased and decreased.
@@ -48,7 +46,7 @@ type SummaryOpts struct {
48
46
// Creator can be used to create different types of metrics.
49
47
type Creator interface {
50
48
Counter () Counter
51
- CounterVec () CounterVec
49
+ CounterVec (labelNames [] string ) CounterVec
52
50
Gauge () Gauge
53
51
Histogram (buckets []float64 ) Histogram
54
52
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func (g *noop) Observe(v float64) {
27
27
// Noop
28
28
}
29
29
30
- func (g * noop ) With ( labels Labels ) Counter {
30
+ func (g * noop ) WithLabelValues ( lvs ... string ) Counter {
31
31
return g
32
32
}
33
33
@@ -37,7 +37,7 @@ func (g *noop) Counter() Counter {
37
37
return g
38
38
}
39
39
40
- func (g * noop ) CounterVec () CounterVec {
40
+ func (g * noop ) CounterVec (lvs [] string ) CounterVec {
41
41
return g
42
42
}
43
43
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " v0.2 .0"
2
+ "version" : " v0.3 .0"
3
3
}
You can’t perform that action at this time.
0 commit comments