Skip to content

Commit 063e283

Browse files
The README.md updated
1 parent dee66dc commit 063e283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ if err != nil {
2222
}
2323

2424
// Create publisher
25-
pu := pusher.NewPusher("http://example.com:9091", "my_job", hostName)
25+
pusher := pusher.NewPusher("http://example.com:9091", "my_job", hostName)
2626

2727
// Push metrics every 15 seconds
2828
for {
29-
m, err := pu.Push(
29+
m, err := pusher.Push(
3030
pusher.Metric("my_job_couner_2", rand.Float64()*10),
3131
pusher.Metric("my_job_couner_3", rand.Float64()*10),
3232
pusher.Metric("my_job_couner_4{label=\"val1\"}", rand.Float64()*100),

0 commit comments

Comments
 (0)