Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,8 @@ inputs:
target: component
type: http/metrics
use_output: monitoring
- data_stream:
- _runtime_experimental: otel
data_stream:
namespace: default
id: metrics-monitoring-collector
name: metrics-monitoring-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,14 +578,19 @@ func (b *BeatsMonitor) injectMetricsInput(
"namespace": monitoringNamespace,
},
"streams": []any{prometheusStream},
// hardcode this to run in the otel runtime
// it won't work in a beat process because we don't set the required environment variable there
"_runtime_experimental": monitoringCfg.OtelRuntimeManager,
})
}

// Make sure we don't set anything until the configuration is stable if the otel manager isn't enabled
if b.config.C.RuntimeManager != monitoringCfg.DefaultRuntimeManager {
for _, input := range inputs {
inputMap := input.(map[string]interface{})
inputMap["_runtime_experimental"] = b.config.C.RuntimeManager
if _, found := inputMap["_runtime_experimental"]; !found {
inputMap["_runtime_experimental"] = b.config.C.RuntimeManager
}
}
}

Expand Down