• Georgios Konstantopoulos's avatar
    pkg: l2geth (#21) · ee4e3739
    Georgios Konstantopoulos authored
    * pkg: import l2geth
    
    * chore: add l2geth tests submodule
    
    * ci: unit test l2geth
    
    * chore: skip Android tests
    
    * chore: cleanup ci
    ee4e3739
graphite_test.go 490 Bytes
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},
	})
}