Documentation ¶
Overview ¶
Package hekametrics adds an output for https://github.com/rcrowley/go-metrics/
hekametrics encodes all metrics from a registry into a Heka protobuf message and sends to a Heka server on it's native listener port.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HekaClient ¶
type HekaClient struct {
// contains filtered or unexported fields
}
func NewHekaClient ¶
func NewHekaClient(connect, msgtype string) (hc *HekaClient, err error)
NewHekaClient creates and returns a HekaClient
connect string like 'tcp://127.0.0.1:5564' and 'udp://127.0.0.1:5564'
msgtype sets the 'Type' field on a Heka message
func (*HekaClient) LogHeka ¶
func (hc *HekaClient) LogHeka(r metrics.Registry, d time.Duration)
LogHeka is a blocking exporter function which encodes and sends metrics to a Heka server
all metrics in metrics.Registry r are stored on message.Message.Fields
flushing them every Duration d
Click to show internal directories.
Click to hide internal directories.