Documentation ¶
Index ¶
- func Count(mtr Metrics, name string, value float64, tags Tags)
- func Gauge(mtr Metrics, name string, value float64, tags Tags)
- func Histogram(mtr Metrics, name string, value float64, tags Tags)
- func Rate(mtr Metrics, name string, value float64, tags Tags)
- type Metric
- type MetricKind
- type Metrics
- type NopMetrics
- type Tag
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metric ¶
type Metric struct { Kind MetricKind Name string Value float64 Tags Tags }
func MakeMetric ¶
func MakeMetric(kind MetricKind, name string, value float64, tags Tags) Metric
type MetricKind ¶
type MetricKind int8
const ( InvalidKind MetricKind = iota CountKind RateKind GaugeKind HistogramKind )
type NopMetrics ¶
type NopMetrics struct{}
func (NopMetrics) EmitMetric ¶
func (n NopMetrics) EmitMetric(m Metric)
Click to show internal directories.
Click to hide internal directories.