package circonus
import "github.com/go-kit/kit/metrics/circonus"
Package circonus provides a Circonus backend for metrics.
Index ¶
- type Circonus
- func New(m *circonusgometrics.CirconusMetrics) *Circonus
- func (c *Circonus) NewCounter(name string) *Counter
- func (c *Circonus) NewGauge(name string) *Gauge
- func (c *Circonus) NewHistogram(name string) *Histogram
- type Counter
- type Gauge
- type Histogram
Types ¶
type Circonus ¶
type Circonus struct {
// contains filtered or unexported fields
}
Circonus wraps a CirconusMetrics object and provides constructors for each of the Go kit metrics. The CirconusMetrics object manages aggregation of observations and emission to the Circonus server.
func New ¶
func New(m *circonusgometrics.CirconusMetrics) *Circonus
New creates a new Circonus object wrapping the passed CirconusMetrics, which the caller should create and set in motion. The Circonus object can be used to construct individual Go kit metrics.
func (*Circonus) NewCounter ¶
NewCounter returns a counter metric with the given name.
func (*Circonus) NewGauge ¶
NewGauge returns a gauge metric with the given name.
func (*Circonus) NewHistogram ¶
NewHistogram returns a histogram metric with the given name.
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a Circonus implementation of a counter metric.
func (*Counter) Add ¶
Add implements Counter. Delta is converted to uint64; precision will be lost.
func (*Counter) With ¶
With implements Counter, but is a no-op, because Circonus metrics have no concept of per-observation label values.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is a Circonus implementation of a gauge metric.
func (*Gauge) Set ¶
Set implements Gauge.
func (*Gauge) With ¶
With implements Gauge, but is a no-op, because Circonus metrics have no concept of per-observation label values.
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram is a Circonus implementation of a histogram metric.
func (*Histogram) Observe ¶
Observe implements Histogram. No precision is lost.
func (*Histogram) With ¶
With implements Histogram, but is a no-op, because Circonus metrics have no concept of per-observation label values.
Source Files ¶
- Version
- v0.3.0
- Published
- Nov 15, 2016
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 4 seconds ago –
Tools for package owners.