-
Notifications
You must be signed in to change notification settings - Fork 519
[Draft] Add docker_otel_input package #15739
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
base: main
Are you sure you want to change the base?
Conversation
This package implements a Docker Stats input using the OpenTelemetry Collector's dockerstats receiver, following the pattern established in PR elastic#14315. Key features: - Type: integration with otelcol input (not content package) - Configurable collection interval, endpoint, and filtering - Comprehensive field definitions for container metrics - Full documentation and test policy Resolves: elastic#15731 Co-authored-by: William Easton <strawgate@users.noreply.github.com>
| processors: | ||
| resourcedetection: | ||
| # Modify the list of detectors to match the cloud environment | ||
| detectors: [env, system, gcp, ec2, azure] |
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.
This needs to be configurable as long as it lives here. In the long term this neeeds to not be in each package.
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.
In the long term this neeeds to not be in each package.
I guess we could inject this from Fleet, and make it configurable there.
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.
Does this actually need to be configurable for now?
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
💔 Build Failed
Failed CI StepsHistory
|
Fixes #243720 ## Summary Integration input health reports otelcol inputs with `receiver id` instead of input type `otelcol`. Currently the input health show input name "otelcol" for any receiver, making it difficult to diagnose which input has issues in case of multiple inputs. This PR addresses it, showing the receiver id instead of the generic type. Note that this change is done only for "otelcol" inputs and not for any other type of inputs, they'll keep showing the type instead; the link ref stays the same, it's just the text that has been changed. ### Before <img width="951" height="638" alt="Screenshot 2025-11-24 at 15 57 20" src="https://github.com/user-attachments/assets/9e67c70b-4e73-45c6-8bc4-ba0c5de70b91" /> ### After <img width="1771" height="996" alt="Screenshot 2025-11-24 at 15 51 36" src="https://github.com/user-attachments/assets/84a3ef3f-8895-405c-8417-dda772964d09" /> ### Testing - Locally build this package: elastic/integrations#15739 - Install it into Fleet with ``` curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/<PATH>/api/fleet/epm/packages -u elastic:changeme --data-binary @docker_otel_input-0.2.0.zip ``` - Add it to an agent policy and enroll an agent into that policy - Verify the input health in agent view. The input name should correspond to the receiver id and the link should correctly navigate to the logs. ### Checklist - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
…ic#244013) Fixes elastic#243720 ## Summary Integration input health reports otelcol inputs with `receiver id` instead of input type `otelcol`. Currently the input health show input name "otelcol" for any receiver, making it difficult to diagnose which input has issues in case of multiple inputs. This PR addresses it, showing the receiver id instead of the generic type. Note that this change is done only for "otelcol" inputs and not for any other type of inputs, they'll keep showing the type instead; the link ref stays the same, it's just the text that has been changed. ### Before <img width="951" height="638" alt="Screenshot 2025-11-24 at 15 57 20" src="https://github.com/user-attachments/assets/9e67c70b-4e73-45c6-8bc4-ba0c5de70b91" /> ### After <img width="1771" height="996" alt="Screenshot 2025-11-24 at 15 51 36" src="https://github.com/user-attachments/assets/84a3ef3f-8895-405c-8417-dda772964d09" /> ### Testing - Locally build this package: elastic/integrations#15739 - Install it into Fleet with ``` curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/<PATH>/api/fleet/epm/packages -u elastic:changeme --data-binary @docker_otel_input-0.2.0.zip ``` - Add it to an agent policy and enroll an agent into that policy - Verify the input health in agent view. The input name should correspond to the receiver id and the link should correctly navigate to the logs. ### Checklist - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
…ic#244013) Fixes elastic#243720 ## Summary Integration input health reports otelcol inputs with `receiver id` instead of input type `otelcol`. Currently the input health show input name "otelcol" for any receiver, making it difficult to diagnose which input has issues in case of multiple inputs. This PR addresses it, showing the receiver id instead of the generic type. Note that this change is done only for "otelcol" inputs and not for any other type of inputs, they'll keep showing the type instead; the link ref stays the same, it's just the text that has been changed. ### Before <img width="951" height="638" alt="Screenshot 2025-11-24 at 15 57 20" src="https://github.com/user-attachments/assets/9e67c70b-4e73-45c6-8bc4-ba0c5de70b91" /> ### After <img width="1771" height="996" alt="Screenshot 2025-11-24 at 15 51 36" src="https://github.com/user-attachments/assets/84a3ef3f-8895-405c-8417-dda772964d09" /> ### Testing - Locally build this package: elastic/integrations#15739 - Install it into Fleet with ``` curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' http://localhost:5601/<PATH>/api/fleet/epm/packages -u elastic:changeme --data-binary @docker_otel_input-0.2.0.zip ``` - Add it to an agent policy and enroll an agent into that policy - Verify the input health in agent view. The input name should correspond to the receiver id and the link should correctly navigate to the logs. ### Checklist - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
This package implements a Docker Stats input using the OpenTelemetry
Collector's dockerstats receiver, following the pattern established
in PR #14315.
Key features:
Resolves: #15731