Documentation ¶
Index ¶
- Constants
- func EnableMetrics()
- func InfluxDB(r metrics.Registry, d time.Duration, url, database, username, password string)
- func InfluxDBWithTags(r metrics.Registry, d time.Duration, url, database, username, password string, ...)
- func NewCounter(name string) metrics.Counter
- func NewGauge(name string) metrics.Gauge
- func NewHistogramWithUniformSample(name string, reservoirSize int) metrics.Histogram
- func NewMeter(name string) metrics.Meter
- func NewTimer(name string) metrics.Timer
- func Start(neb Neblet)
- func Stop()
- type Neblet
Constants ¶
View Source
const ( // DefaultTimeout is the default connection timeout used to connect to an InfluxDB instance DefaultTimeout = 3 * time.Second )
View Source
const (
// MetricsEnabledFlag metrics enable flag
MetricsEnabledFlag = "metrics"
)
Variables ¶
This section is empty.
Functions ¶
func InfluxDB ¶
InfluxDB starts a InfluxDB reporter which will post the metrics from the given registry at each d interval.
func InfluxDBWithTags ¶
func InfluxDBWithTags(r metrics.Registry, d time.Duration, url, database, username, password string, tags map[string]string)
InfluxDBWithTags starts a InfluxDB reporter which will post the metrics from the given registry at each d interval with the specified tags
func NewCounter ¶
NewCounter create a new metrics Counter
func NewHistogramWithUniformSample ¶
NewHistogramWithUniformSample create a new metrics History with Uniform Sample algorithm.
Types ¶
Click to show internal directories.
Click to hide internal directories.