typo fixes in ExampleSet
This commit is contained in:
parent
ebce157dde
commit
0b2328476c
@ -13,11 +13,8 @@ func ExampleSet() {
|
|||||||
sc.Inc()
|
sc.Inc()
|
||||||
s.NewGauge(`set_gauge{foo="bar"}`, func() float64 { return 42 })
|
s.NewGauge(`set_gauge{foo="bar"}`, func() float64 { return 42 })
|
||||||
|
|
||||||
// Dump global metrics
|
|
||||||
var bb bytes.Buffer
|
|
||||||
|
|
||||||
// Dump metrics from s.
|
// Dump metrics from s.
|
||||||
bb.Reset()
|
var bb bytes.Buffer
|
||||||
s.WritePrometheus(&bb)
|
s.WritePrometheus(&bb)
|
||||||
fmt.Printf("set metrics:\n%s\n", bb.String())
|
fmt.Printf("set metrics:\n%s\n", bb.String())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user