We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dee66dc commit 063e283Copy full SHA for 063e283
README.md
@@ -22,11 +22,11 @@ if err != nil {
22
}
23
24
// Create publisher
25
-pu := pusher.NewPusher("http://example.com:9091", "my_job", hostName)
+pusher := pusher.NewPusher("http://example.com:9091", "my_job", hostName)
26
27
// Push metrics every 15 seconds
28
for {
29
- m, err := pu.Push(
+ m, err := pusher.Push(
30
pusher.Metric("my_job_couner_2", rand.Float64()*10),
31
pusher.Metric("my_job_couner_3", rand.Float64()*10),
32
pusher.Metric("my_job_couner_4{label=\"val1\"}", rand.Float64()*100),
0 commit comments