Set default tags in test accumulator

closes #1012
This commit is contained in:
Cameron Sparr 2016-04-18 19:13:45 -06:00
parent c737a19d9f
commit 92e57ee06c
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ based on _prefix_ in addition to globs. This means that a filter like
### Bugfixes
- [#921](https://github.com/influxdata/telegraf/pull/921): mqtt_consumer stops gathering metrics. Thanks @chaton78!
- [#1013](https://github.com/influxdata/telegraf/pull/1013): Close dead riemann output connections. Thanks @echupriyanov!
- [#1012](https://github.com/influxdata/telegraf/pull/1012): Set default tags in test accumulator.
## v0.12.1 [2016-04-14]

View File

@ -221,6 +221,7 @@ func (a *Agent) Test() error {
for _, input := range a.Config.Inputs {
acc := NewAccumulator(input.Config, metricC)
acc.SetDebug(true)
acc.setDefaultTags(a.Config.Tags)
fmt.Printf("* Plugin: %s, Collection 1\n", input.Name)
if input.Config.Interval != 0 {