@@ -76,7 +76,7 @@ const (
7676)
7777
7878var (
79- errNoOuputPresent = errors .New ("outputs not part of the config" )
79+ errNoOutputPresent = errors .New ("outputs not part of the config" )
8080 supportedMetricsComponents = []string {"filebeat" , "metricbeat" , "apm-server" , "auditbeat" , "cloudbeat" , "fleet-server" , "heartbeat" , "osquerybeat" , "packetbeat" , "pf-elastic-collector" , "pf-elastic-symbolizer" }
8181 supportedBeatsComponents = []string {"filebeat" , "metricbeat" , "apm-server" , "fleet-server" , "auditbeat" , "cloudbeat" , "heartbeat" , "osquerybeat" , "packetbeat" , "pf-elastic-collector" , "pf-elastic-symbolizer" }
8282)
@@ -220,9 +220,9 @@ func (b *BeatsMonitor) MonitoringConfig(
220220
221221 componentInfos := b .getComponentInfos (components , componentIDPidMap )
222222
223- if err := b .injectMonitoringOutput (policy , cfg , monitoringOutputName ); err != nil && ! errors .Is (err , errNoOuputPresent ) {
223+ if err := b .injectMonitoringOutput (policy , cfg , monitoringOutputName ); err != nil && ! errors .Is (err , errNoOutputPresent ) {
224224 return nil , errors .New (err , "failed to inject monitoring output" )
225- } else if errors .Is (err , errNoOuputPresent ) {
225+ } else if errors .Is (err , errNoOutputPresent ) {
226226 // nothing to inject, no monitoring output
227227 return nil , nil
228228 }
@@ -376,7 +376,7 @@ func (b *BeatsMonitor) initInputs(cfg map[string]interface{}) {
376376func (b * BeatsMonitor ) injectMonitoringOutput (source , dest map [string ]interface {}, monitoringOutputName string ) error {
377377 outputsNode , found := source [outputsKey ]
378378 if ! found {
379- return errNoOuputPresent
379+ return errNoOutputPresent
380380 }
381381
382382 outputs , ok := outputsNode .(map [string ]interface {})
0 commit comments