Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon committed Aug 15, 2016
1 parent bafbd4e commit 155a736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions metrics3/provider/influx.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ func NewInfluxProvider(in *influx.Influx, stop func()) Provider {

// NewCounter implements Provider. Per-metric tags are not supported.
func (p *influxProvider) NewCounter(name string) metrics.Counter {
return p.in.NewCounter(name, map[string]string{})
return p.in.NewCounter(name)
}

// NewGauge implements Provider. Per-metric tags are not supported.
func (p *influxProvider) NewGauge(name string) metrics.Gauge {
return p.in.NewGauge(name, map[string]string{})
return p.in.NewGauge(name)
}

// NewHistogram implements Provider. Per-metric tags are not supported.
func (p *influxProvider) NewHistogram(name string, buckets int) metrics.Histogram {
return p.in.NewHistogram(name, map[string]string{}, buckets)
return p.in.NewHistogram(name)
}

// Stop implements Provider, invoking the stop function passed at construction.
Expand Down
2 changes: 1 addition & 1 deletion metrics3/provider/statsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewStatsdProvider(s *statsd.Statsd, stop func()) Provider {

// NewCounter implements Provider.
func (p *statsdProvider) NewCounter(name string) metrics.Counter {
return p.s.NewCounter(name)
return p.s.NewCounter(name, 1.0)
}

// NewGauge implements Provider.
Expand Down

0 comments on commit 155a736

Please sign in to comment.