Initialize aggregation processors (#7853)

This commit is contained in:
Daniel Nelson 2020-07-17 12:12:53 -07:00 committed by GitHub
parent 3441fb1419
commit 0bcc515879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -224,6 +224,13 @@ func (a *Agent) initPlugins() error {
aggregator.Config.Name, err) aggregator.Config.Name, err)
} }
} }
for _, processor := range a.Config.AggProcessors {
err := processor.Init()
if err != nil {
return fmt.Errorf("could not initialize processor %s: %v",
processor.Config.Name, err)
}
}
for _, output := range a.Config.Outputs { for _, output := range a.Config.Outputs {
err := output.Init() err := output.Init()
if err != nil { if err != nil {