Skip to content
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

[8.15](backport #5369) Add health_check extension to bundled otel.yml file #5412

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 3, 2024

What does this PR do?

This PR adds the health_check extension to the otel.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):

One problem I'm seeing when running the chart with this configuration is that the Health Check extension is not used in the otel.yml file, which results in Kubernetes restarting the collector container and eventually resulting in a CrashLoopBackOff. We should add the health_check extension to service::extensions in the otel.yml file that's bundled with the image.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive 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)


This is an automatic backport of pull request #5369 done by [Mergify](https://mergify.com).

* 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)
@mergify mergify bot requested a review from a team as a code owner September 3, 2024 21:12
@mergify mergify bot added the backport label Sep 3, 2024
@mergify mergify bot requested review from michel-laterman and swiatekm and removed request for a team September 3, 2024 21:12
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@ycombinator ycombinator enabled auto-merge (squash) September 3, 2024 23:54
@ycombinator ycombinator merged commit 129fde7 into 8.15 Sep 3, 2024
10 checks passed
@ycombinator ycombinator deleted the mergify/bp/8.15/pr-5369 branch September 3, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant