Fix duplicated tags in InfluxDB
This commit is contained in:
parent
749d833f65
commit
ebd77f314d
20 changed files with 530 additions and 209 deletions
7
vendor/github.com/go-kit/kit/metrics/statsd/statsd.go
generated
vendored
7
vendor/github.com/go-kit/kit/metrics/statsd/statsd.go
generated
vendored
|
@ -74,6 +74,7 @@ func (s *Statsd) NewGauge(name string) *Gauge {
|
|||
return &Gauge{
|
||||
name: s.prefix + name,
|
||||
obs: s.gauges.Observe,
|
||||
add: s.gauges.Add,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -201,6 +202,7 @@ func (c *Counter) Add(delta float64) {
|
|||
type Gauge struct {
|
||||
name string
|
||||
obs observeFunc
|
||||
add observeFunc
|
||||
}
|
||||
|
||||
// With is a no-op.
|
||||
|
@ -213,6 +215,11 @@ func (g *Gauge) Set(value float64) {
|
|||
g.obs(g.name, lv.LabelValues{}, value)
|
||||
}
|
||||
|
||||
// Add implements metrics.Gauge.
|
||||
func (g *Gauge) Add(delta float64) {
|
||||
g.add(g.name, lv.LabelValues{}, delta)
|
||||
}
|
||||
|
||||
// Timing is a StatsD timing, or metrics.Histogram. Observations are
|
||||
// forwarded to a Statsd object, and collected (but not aggregated) per
|
||||
// timeseries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue