Documentation
¶
Index ¶
- Constants
- func AddSample(key []string, val float32)
- func AddSampleWithLabels(key []string, val float32, labels []Label)
- func EmitKey(key []string, val float32)
- func IncrCounter(key []string, val float32)
- func IncrCounterWithLabels(key []string, val float32, labels []Label)
- func MeasureSince(key []string, start time.Time)
- func MeasureSinceWithLabels(key []string, start time.Time, labels []Label)
- func SetGauge(key []string, val float32)
- func SetGaugeWithLabels(key []string, val float32, labels []Label)
- func Shutdown()
- func UpdateFilter(allow, block []string)
- func UpdateFilterAndLabels(allow, block, allowedLabels, blockedLabels []string)
- type AggregateSample
- type BlackholeSink
- type Config
- type Encoder
- type FanoutSink
- type GaugeValue
- type InmemSignal
- type InmemSink
- type IntervalMetrics
- type Label
- type MetricSink
- type Metrics
- type MetricsSummary
- type PointValue
- type SampledValue
- type ShutdownSink
- type StatsdSink
- type StatsiteSink
Constants ¶
View Source
const (
// DefaultSignal is used with DefaultInmemSignal
DefaultSignal = metrics.DefaultSignal
)
Variables ¶
This section is empty.
Functions ¶
func AddSampleWithLabels ¶
func IncrCounter ¶
func IncrCounterWithLabels ¶
func MeasureSince ¶
func MeasureSinceWithLabels ¶
func SetGaugeWithLabels ¶
func UpdateFilter ¶
func UpdateFilter(allow, block []string)
func UpdateFilterAndLabels ¶
func UpdateFilterAndLabels(allow, block, allowedLabels, blockedLabels []string)
Types ¶
type AggregateSample ¶
type AggregateSample = metrics.AggregateSample
type BlackholeSink ¶
type BlackholeSink = metrics.BlackholeSink
type FanoutSink ¶
type FanoutSink = metrics.FanoutSink
type GaugeValue ¶
type GaugeValue = metrics.GaugeValue
type InmemSignal ¶
type InmemSignal = metrics.InmemSignal
func DefaultInmemSignal ¶
func DefaultInmemSignal(inmem *InmemSink) *InmemSignal
func NewInmemSignal ¶
type IntervalMetrics ¶
type IntervalMetrics = metrics.IntervalMetrics
func NewIntervalMetrics ¶
func NewIntervalMetrics(intv time.Time) *IntervalMetrics
type MetricSink ¶
type MetricSink = metrics.MetricSink
func NewInmemSinkFromURL ¶
func NewInmemSinkFromURL(u *url.URL) (MetricSink, error)
func NewMetricSinkFromURL ¶
func NewMetricSinkFromURL(urlStr string) (MetricSink, error)
func NewStatsdSinkFromURL ¶
func NewStatsdSinkFromURL(u *url.URL) (MetricSink, error)
func NewStatsiteSinkFromURL ¶
func NewStatsiteSinkFromURL(u *url.URL) (MetricSink, error)
type MetricsSummary ¶
type MetricsSummary = metrics.MetricsSummary
type PointValue ¶
type PointValue = metrics.PointValue
type SampledValue ¶
type SampledValue = metrics.SampledValue
type ShutdownSink ¶
type ShutdownSink = metrics.ShutdownSink
type StatsdSink ¶
type StatsdSink = metrics.StatsdSink
func NewStatsdSink ¶
func NewStatsdSink(addr string) (*StatsdSink, error)
type StatsiteSink ¶
type StatsiteSink = metrics.StatsiteSink
func NewStatsiteSink ¶
func NewStatsiteSink(addr string) (*StatsiteSink, error)
Click to show internal directories.
Click to hide internal directories.