diff --git a/libbeat/monitoring/report/report.go b/libbeat/monitoring/report/report.go index c505c5acbdb..eab8886af4f 100644 --- a/libbeat/monitoring/report/report.go +++ b/libbeat/monitoring/report/report.go @@ -64,7 +64,7 @@ func New( cfg *conf.C, outputs conf.Namespace, ) (Reporter, error) { - name, cfg, err := getReporterConfig(cfg, settings, outputs) + name, cfg, err := getReporterConfig(cfg, outputs) if err != nil { return nil, err } @@ -79,7 +79,6 @@ func New( func getReporterConfig( monitoringConfig *conf.C, - settings Settings, outputs conf.Namespace, ) (string, *conf.C, error) { cfg := collectSubObject(monitoringConfig) @@ -96,10 +95,6 @@ func getReporterConfig( // merge reporter config with output config if both are present if outCfg := outputs.Config(); outputs.Name() == name && outCfg != nil { - // require monitoring to not configure any hosts if output is configured: - hosts := hostsCfg{} - rc.Unpack(&hosts) - merged, err := conf.MergeConfigs(outCfg, rc) if err != nil { return "", nil, err