mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 09:42:19 +00:00
1cf6747d06
Former-commit-id: 6a2a7c34e451465eae5d78f76e310e36a412d848 [formerly 6294fcfb3a206061cc8f9309f945f9b0c5a332a2] Former-commit-id: e2d352442cc4b45620454ac6ece0f8d3d564ed11
23 lines
490 B
Go
23 lines
490 B
Go
package metrics
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
func ExampleGraphite() {
|
|
addr, _ := net.ResolveTCPAddr("net", ":2003")
|
|
go Graphite(DefaultRegistry, 1*time.Second, "some.prefix", addr)
|
|
}
|
|
|
|
func ExampleGraphiteWithConfig() {
|
|
addr, _ := net.ResolveTCPAddr("net", ":2003")
|
|
go GraphiteWithConfig(GraphiteConfig{
|
|
Addr: addr,
|
|
Registry: DefaultRegistry,
|
|
FlushInterval: 1 * time.Second,
|
|
DurationUnit: time.Millisecond,
|
|
Percentiles: []float64{0.5, 0.75, 0.99, 0.999},
|
|
})
|
|
}
|