Documentation ¶
Overview ¶
An internal metrics channel. Go systems can publish their metrics here and they will be outletted to Librato.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { // The time by which metchan will aggregate internal metrics. FlushInterval time.Duration // This will enable writting all metrics to a logger. Verbose bool // Short short circiut all calls to metchan. Useful for development. Enabled bool // The URL for librato. Must include username and password. Url *url.URL // The default source value for metrics submitted to Librato. Source string // All Librato metrics will be prefixed with this value. MetricPrefix string // Number of goroutines to use for sending HTTP requests to Librato. Concurrency int // Number of HTTP requests to buffer before sending to Librato API. BufferSize int sync.Mutex // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.