diff --git a/internal/config/config.go b/internal/config/config.go index 4388d658d8bcf..557fdd5fa4476 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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 }