Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct { // Registry map is used to hold metrics that will be sent to logstash. Registry metrics.Registry // Conn is a UDP connection to logstash. Conn *net.UDPConn // DefaultValues are the values that will be sent in all submits. DefaultValues map[string]interface{} Version string // Percentiles to be sent on histograms and timers Percentiles []float64 }
Reporter represents a metrics registry.
func NewReporter ¶
func NewReporter(r metrics.Registry, addr string, defaultValues map[string]interface{}) (*Reporter, error)
NewReporter creates a new Reporter for the register r, with an UDP client to the given logstash address addr and with the given default values. If defaultValues is nil, only the metrics will be sent.
Click to show internal directories.
Click to hide internal directories.