-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Logs Onboarding] Adds install shipper step for custom logs #157802
[Logs Onboarding] Adds install shipper step for custom logs #157802
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/observability_onboarding/public/assets/standalone-agent-setup.sh
Outdated
Show resolved
Hide resolved
- add API to get latest onboarding state
…-ref HEAD~1..HEAD --fix'
…ic-agent-154937' into logs-onboaring-yaml-generator
[Logs onboarding] Generating yaml configuration in server
…ndalone-elastic-agent-154937
…ndalone-elastic-agent-154937
dcf63de
to
58c70ac
Compare
...rvability_onboarding/server/routes/custom_logs/find_latest_observability_onboarding_state.ts
Show resolved
Hide resolved
- cleans up some routes
cf54f74
to
ee7b7b3
Compare
To add a little context as to why this was reverted: The changes in this PR is causing the CI to fail with the error " FATAL Error: Missing version for public endpoint GET /api/observability_onboarding/custom_logs/step/{name}". Versions in public endpoints are required due to #158233. |
We needed them to be accessible from outside, there is a script that will be in charge of downloading and installing elastic agent (right now is very basic, the idea is to extend it), this script also needs to report back to kibana the progress in order to achieve the last step of onboarding the flow. |
Why did CI pass prior to merging if it failed after merging to |
@ogupte yes, I merged it yesterday somewhere in the afternoon I think |
Closes #154937 This PR is an extension of [#157802](#157802) which was reverted because public Api endpoint versioning problems. ![Screenshot 2023-05-15 at 5 02 29 PM](https://github.com/elastic/kibana/assets/1967266/62484fb3-e02f-410d-aa7a-86bcc4dc0b03) --------- Co-authored-by: Oliver Gupte <[email protected]> Co-authored-by: kibanamachine <[email protected]>
|
||
echo "Downloading Elastic Agent" | ||
# https://www.elastic.co/guide/en/fleet/8.7/install-standalone-elastic-agent.html | ||
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.7.1-linux-x86_64.tar.gz |
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.
Ideally the agent version becomes an input param so users always get the version compatible with their Stack version.
API_ENDPOINT=$2 | ||
|
||
updateStepProgress() { | ||
echo " GET $API_ENDPOINT/step/$1?status=$2" |
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 means Kibana has to be accessible for this to work. This is ok but we should mention it in our docs or when users hit erros, make sure we provide good error messages that Kibana is not reachable for example.
API_KEY_ENCODED=$1 | ||
API_ENDPOINT=$2 | ||
|
||
updateStepProgress() { |
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 like the simplicity of it. It means we can add / remove steps when needed.
…157802) Closes elastic#154937 This PR includes the steps to install standalone elastic agent + reporting the status from bash script back to kibana. ![Screenshot 2023-05-15 at 5 02 29 PM](https://github.com/elastic/kibana/assets/1967266/62484fb3-e02f-410d-aa7a-86bcc4dc0b03) --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Yngrid Coello <[email protected]> Co-authored-by: Yngrid Coello <[email protected]>
…lastic#157802)" This reverts commit 12401b2.
Closes #154937
This PR includes the steps to install standalone elastic agent + reporting the status from bash script back to kibana.