Skip to content

Commit f6d024a

Browse files
committed
Add filebeat input parts of agent monitoring test
1 parent 58a82b3 commit f6d024a

File tree

3 files changed

+300
-232
lines changed

3 files changed

+300
-232
lines changed

internal/pkg/agent/application/monitoring/v1_monitor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ func (b *BeatsMonitor) getHttpStreams(
701701
}
702702
// specifically for filebeat, we include input metrics
703703
// disabled for filebeat receiver until https://github.com/elastic/beats/issues/43418 is resolved
704-
if strings.EqualFold(name, "filebeat") && compInfo.RuntimeManager != component.OtelRuntimeManager {
704+
if strings.EqualFold(name, "filebeat") {
705705
fbDataStreamName := "filebeat_input"
706706
fbDataset := fmt.Sprintf("elastic_agent.%s", fbDataStreamName)
707707
fbIndexName := fmt.Sprintf("metrics-elastic_agent.%s-%s", fbDataStreamName, monitoringNamespace)
@@ -842,7 +842,6 @@ func processorsForAgentFilestream() []any {
842842
addFormattedIndexProcessor(),
843843
)
844844
return processors
845-
846845
}
847846

848847
// processorsForServiceComponentFilestream returns processors used for filestream streams for components running as

0 commit comments

Comments
 (0)