[8.19] [Oblt Onboarding] Add more errors logging for Auto Detect flow (#222948)#225596
Merged
mykolaharmash merged 4 commits intoelastic:8.19from Jul 1, 2025
Merged
Conversation
…ic#222948) Closes elastic#218433 This change adds more descriptive error messages inside telemetry events in the auto detect onboarding flow. The extended error message be shown to the user as well. * New telemetry event for the case when user is not running the script as `root` * If Agent fails to download, bot the original error from `curl` and the download URL will be logged * If Agent fails to extract, error message from `tar` command will be logged * If Agent fails to install, error message from `elastic-agent install` command will be logged * Error response from the integrations install endpoint will be logged Example telemetry event:  Example terminal output:  ## How to test In order to simulate errors for all scenarios, you going to need to modify the `auto_detect.sh` script to make it intentionally fail, like adding extra character to the EA download URL. You can modify it directly in the source if you're running Kibana locally, or you can modify it after it was downloaded and before running it. To test just one use-case without the script manipulations, you can modify the EA download URL inside the code snippet provided by Kibana. **Whatever way you choose, still go though the flow and make sure the successful path works as expected.** You can check the telemetry events emitted from the flow on [the staging telemetry cluster](https://telemetry-v2-staging.elastic.dev/s/observability-ux/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-24h%2Fh,to:now))&_a=(columns:!(),dataSource:(dataViewId:b4befdd3-9a15-40c2-be4d-3ac1084d6182,type:dataView),filters:!(),interval:auto,query:(language:kuery,query:'event_type%20:%20%22observability_onboarding%22'),sort:!(!('@timestamp',desc)))), but keep in mind that events delivered there with a delay of a couple of hours 😢 --------- Co-authored-by: Joe Reuter <johannes.reuter@elastic.co> (cherry picked from commit 6b452c7) # Conflicts: # x-pack/test/api_integration/deployment_agnostic/apis/observability/onboarding/update_progress.ts
Contributor
Author
|
/oblt-deploy |
Contributor
Author
|
Tested locally just in case, works as expected. |
Contributor
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.19:Questions ?
Please refer to the Backport tool documentation