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

Handle requests for /processes/apm-server. #1792

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

cmacknz
Copy link
Member

@cmacknz cmacknz commented Nov 24, 2022

Add special handling for the apm-server process ID for the /processes/$ID route as well as the /processes response body.

V2 changed the process IDs used for these APIs, which has broken health checks in the cloud provisioning infrastructure. It is much faster to add a few lines of code to special case this in the agent than it is to update all of the cloud monitoring infrastructure.

Add special handling for the apm-server process ID for the
/processes/$ID route as well as the /processes response body.

V2 changed the process IDs used for these APIs, which has broken health
checks in the cloud provisioning infrastructure. It is much faster to
add a few lines of code to special case this in the agent than it is to
update all of the cloud monitoring infrastructure.
@cmacknz cmacknz added Team:Elastic-Agent Label for the Agent team v8.6.0 skip-changelog backport-v8.6.0 Automated backport with mergify labels Nov 24, 2022
@cmacknz cmacknz self-assigned this Nov 24, 2022
@cmacknz cmacknz requested a review from a team as a code owner November 24, 2022 20:02
@cmacknz cmacknz requested review from michalpristas and blakerouse and removed request for a team November 24, 2022 20:02
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 24, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-11-24T20:24:32.770+0000

  • Duration: 16 min 9 sec

Test stats 🧪

Test Results
Failed 0
Passed 4553
Skipped 13
Total 4566

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages.

  • run integration tests : Run the Elastic Agent Integration tests.

  • run end-to-end tests : Generate the packages and run the E2E Tests.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 24, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 98.333% (59/60) 👍 0.028
Files 68.78% (141/205) 👎 -2.285
Classes 68.814% (267/388) 👎 -1.743
Methods 53.418% (797/1492) 👎 -1.409
Lines 38.787% (8625/22237) 👎 -1.559
Conditionals 100.0% (0/0) 💚

@cmacknz
Copy link
Member Author

cmacknz commented Nov 24, 2022

Tested locally with an agent running the APM integration. Going to merge this to try to fix the snapshot, otherwise will likely be waiting several days for a review.

@cmacknz cmacknz merged commit 378a412 into elastic:main Nov 24, 2022
@cmacknz cmacknz deleted the translate-apm-server-process-id branch November 24, 2022 20:42
mergify bot pushed a commit that referenced this pull request Nov 24, 2022
Handle requests for /processes/apm-server.

Add special handling for the apm-server process ID for the
/processes/$ID route as well as the /processes response body.

V2 changed the process IDs used for these APIs, which has broken health
checks in the cloud provisioning infrastructure. It is much faster to
add a few lines of code to special case this in the agent than it is to
update all of the cloud monitoring infrastructure.

(cherry picked from commit 378a412)
cmacknz added a commit that referenced this pull request Nov 24, 2022
Handle requests for /processes/apm-server.

Add special handling for the apm-server process ID for the
/processes/$ID route as well as the /processes response body.

V2 changed the process IDs used for these APIs, which has broken health
checks in the cloud provisioning infrastructure. It is much faster to
add a few lines of code to special case this in the agent than it is to
update all of the cloud monitoring infrastructure.

(cherry picked from commit 378a412)

Co-authored-by: Craig MacKenzie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.6.0 Automated backport with mergify skip-changelog Team:Elastic-Agent Label for the Agent team v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants