Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP represents a storage which publishes stats over HTTP.
func NewHTTP ¶
func NewHTTP(snapshotter stats.Snapshotter) *HTTP
NewHTTP creates a new HTTP stats sink.
func (*HTTP) Close ¶
Close gracefully terminates the storage and ensures that every related resource is properly disposed.
type Noop ¶
type Noop struct{}
Noop represents a storage which does nothing.
func (*Noop) Close ¶
Close gracefully terminates the storage and ensures that every related resource is properly disposed.
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
Prometheus represents a storage which publishes stats to a statsd sink.
func NewPrometheus ¶
func NewPrometheus(snapshotter stats.Snapshotter, mux *http.ServeMux) *Prometheus
NewPrometheus creates a new prometheus endpoint.
func (*Prometheus) Close ¶
func (p *Prometheus) Close() error
Close gracefully terminates the storage and ensures that every related resource is properly disposed.
func (*Prometheus) Configure ¶
func (p *Prometheus) Configure(config map[string]interface{}) (err error)
Configure configures the storage. The config parameter provided is loosely typed, since various storage mechanisms will require different configurations.
type Self ¶
type Self struct {
// contains filtered or unexported fields
}
Self represents a storage which self-publishes stats.
func NewSelf ¶
func NewSelf(snapshotter stats.Snapshotter, selfPublish func(string, []byte)) *Self
NewSelf creates a new self-publishing stats sink.
func (*Self) Close ¶
Close gracefully terminates the storage and ensures that every related resource is properly disposed.
type Statsd ¶
type Statsd struct {
// contains filtered or unexported fields
}
Statsd represents a storage which publishes stats to a statsd sink.
func NewStatsd ¶
func NewStatsd(snapshotter stats.Snapshotter, nodeID string) *Statsd
NewStatsd creates a new statsd sink.
func (*Statsd) Close ¶
Close gracefully terminates the storage and ensures that every related resource is properly disposed.