This package implements a functionality which can be used in instrument code, expose application metrics, and profile runtime performance in a flexible manner. It makes use of a MetricSink interface to support delivery to any type of backend.
Currently the following sinks are provided:
StatsiteSink : Sinks to a statsite instance (TCP)
StatsdSink: Sinks to a StatsD / statsite instance (UDP)
PrometheusSink: Sinks to a Prometheus metrics endpoint (exposed via HTTP for scrapes)
InmemSink : Provides in-memory aggregation, can be used to export stats
FanoutSink : Sinks to multiple sinks. Enables writing to multiple statsite instances for example
BlackholeSink : Sinks to nowhere
This package implements a functionality which can be used in instrument code, expose application metrics, and profile runtime performance in a flexible manner. It makes use of a MetricSink interface to support delivery to any type of backend.
Currently the following sinks are provided:
StatsiteSink : Sinks to a statsite instance (TCP)
StatsdSink: Sinks to a StatsD / statsite instance (UDP)
PrometheusSink: Sinks to a Prometheus metrics endpoint (exposed via HTTP for scrapes)
InmemSink : Provides in-memory aggregation, can be used to export stats
FanoutSink : Sinks to multiple sinks. Enables writing to multiple statsite instances for example
BlackholeSink : Sinks to nowhere