-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enabling scriptedinputs receiver in components #3627
feat: enabling scriptedinputs receiver in components #3627
Conversation
Please add an integration test along with these changes. You can use |
internal/receiver/scriptedinputsreceiver/testdata/resource_logs/cpu.yaml
Outdated
Show resolved
Hide resolved
Please rebase. |
@@ -0,0 +1,2 @@ | |||
scripted_inputs/cpu: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
believe this file can be deleted
5ff46f3
to
388f473
Compare
@@ -96,6 +97,10 @@ func (c *Config) Validate() error { | |||
|
|||
// Build will build a stdoutOperator. | |||
func (c *Config) Build(logger *zap.SugaredLogger) (operator.Operator, error) { | |||
if isContainer() { | |||
return nil, fmt.Errorf("scriped inputs receiver must be run directly on host and is not supported in container") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind updating the readme?
No description provided.