-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add health_check
extension to bundled otel.yml
file
#5369
Conversation
@@ -21,6 +21,9 @@ extensions: | |||
check_interval: 1s | |||
limit_mib: 700 | |||
spike_limit_mib: 180 | |||
health_check: | |||
endpoint: "localhost:13133" |
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.
I chose this value based on the documentation in https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/extension/healthcheckextension/README.md#health-check. I'm happy to change it to another value if others have a better suggestion.
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Co-authored-by: Roger Coll <[email protected]>
Sounds good to me on adding the
I think that this will only happen if the user tries to use the
Note that the Chart added another default config
The recommened approach to provide a custom configuration for the collector is to manully create a configuration configMap. There is a PR upstream that will allow overriding the default configuration with a config option: open-telemetry/opentelemetry-helm-charts#1301 |
Quality Gate passedIssues Measures |
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.
Looks good, thanks for the updating the path.
* Add health_check extension to bundled otel.yml file * Adding CHANGELOG * Add extension to pipeline Co-authored-by: Roger Coll <[email protected]> * Change path to health check endpoint * Revert change to health check endpoint path --------- Co-authored-by: Roger Coll <[email protected]> (cherry picked from commit 445fa44)
* Add health_check extension to bundled otel.yml file * Adding CHANGELOG * Add extension to pipeline Co-authored-by: Roger Coll <[email protected]> * Change path to health check endpoint * Revert change to health check endpoint path --------- Co-authored-by: Roger Coll <[email protected]> (cherry picked from commit 445fa44) Co-authored-by: Shaunak Kashyap <[email protected]>
What does this PR do?
This PR adds the
health_check
extension to theotel.yml
file that's bundled with the Elastic Agent package.Why is it important?
Without this addition, if a user tries to install the
open-telemetry/opentelemetry-collector
Helm chart with Elastic's distribution of the OTel Collector (i.e. Elastic Agent), the installation eventually fails. Specifically, as noted by @andrzej-stencel in #5092 (comment):Checklist
My code follows the style guidelines of this projectI have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature works./changelog/fragments
using the changelog toolI have added an integration test or an E2E testDisruptive User Impact
If users are already running something that's listening on
localhost:13133
, there will be a port conflict.How to test this PR locally
See #5092 (comment) and #5092 (comment)