Remove 'inputs.' prefix when logging loaded inputs (#5489)

* Remove 'inputs.' prefix when logging loaded inputs

* Remove prefix from aggregators name
This commit is contained in:
Daniel Nelson
2019-02-26 18:31:43 -08:00
committed by GitHub

View File

@@ -151,7 +151,7 @@ type AgentConfig struct {
func (c *Config) InputNames() []string {
var name []string
for _, input := range c.Inputs {
name = append(name, input.Name())
name = append(name, input.Config.Name)
}
return name
}
@@ -160,7 +160,7 @@ func (c *Config) InputNames() []string {
func (c *Config) AggregatorNames() []string {
var name []string
for _, aggregator := range c.Aggregators {
name = append(name, aggregator.Name())
name = append(name, aggregator.Config.Name)
}
return name
}