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

[Logs Onboarding] Adds install shipper step for custom logs #157802

Merged

Conversation

ogupte
Copy link
Contributor

@ogupte ogupte commented May 15, 2023

Closes #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

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@yngrdyn yngrdyn force-pushed the logs-onboarding-standalone-elastic-agent-154937 branch from dcf63de to 58c70ac Compare May 22, 2023 14:33
@yngrdyn yngrdyn force-pushed the logs-onboarding-standalone-elastic-agent-154937 branch from cf54f74 to ee7b7b3 Compare May 23, 2023 09:21
@yngrdyn yngrdyn merged commit 12401b2 into elastic:main May 23, 2023
@kibanamachine kibanamachine added v8.9.0 backport:skip This commit does not require backporting labels May 23, 2023
jbudz added a commit that referenced this pull request May 23, 2023
@jbudz jbudz added the reverted label May 23, 2023
@jbudz
Copy link
Member

jbudz commented May 23, 2023

@sorenlouv
Copy link
Member

sorenlouv commented May 23, 2023

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.

@dgieselaar
Copy link
Member

@yngrdyn @ogupte why are these endpoints public?

@yngrdyn
Copy link
Contributor

yngrdyn commented May 24, 2023

@yngrdyn @ogupte why are these endpoints public?

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.

@ogupte
Copy link
Contributor Author

ogupte commented May 24, 2023

Why did CI pass prior to merging if it failed after merging to main? Maybe the API check was added just before we merged this?

@dgieselaar
Copy link
Member

@ogupte yes, I merged it yesterday somewhere in the afternoon I think

ogupte added a commit that referenced this pull request May 25, 2023
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
Copy link
Member

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"
Copy link
Member

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() {
Copy link
Member

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.

delanni pushed a commit to delanni/kibana that referenced this pull request May 25, 2023
…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]>
delanni pushed a commit to delanni/kibana that referenced this pull request May 25, 2023
This was referenced Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes reverted v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Logs Onboarding] Install shipper: Standalone Elastic Agent
10 participants