You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure monitoring the Otel collector never runs in a beat process (#11204) (#11283)
* Ensure monitoring the Otel collector never runs in a beat process
* Add changelog entry
* Move log lines to constants
(cherry picked from commit a9f4420)
Co-authored-by: Mikołaj Świątek <[email protected]>
require.True(t, ok, "log message field should be a string")
910
-
expectedMessage:="otel runtime is not supported for component system/metrics-default, switching to process runtime, reason: unsupported configuration for system/metrics-default: error translating config for output: default, unit: system/metrics-default, error: indices is currently not supported: unsupported operation"
911
-
assert.Equal(t, expectedMessage, message)
918
+
assert.Len(t, unsupportedLogRecords, 5, "one log line for each component we try to run")
919
+
assert.NotEmpty(t, prometheusUnsupportedLogRecord, "should get a log line about Otel prometheus metrics input being skipped")
912
920
}
913
921
914
922
// TestComponentWorkDir verifies that the component working directory is not deleted when moving the component from
0 commit comments