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

[docs] Add Elastic Agent doc changes for 7.9 #20437

Merged
merged 6 commits into from
Aug 7, 2020

Conversation

dedemorton
Copy link
Contributor

@dedemorton dedemorton commented Aug 5, 2020

Adds beats-related ingest management changes for 7.9. Preview: https://beats_20437.docs-preview.app.elstc.co/guide/en/ingest-management/master/elastic-agent-installation-configuration.html (look at Elastic Agent changes only)

Requires elastic/observability-docs#80

REVIEWERS: Our tabbed panels are evolving. We need to inject the HTML directly into the build right now, but that will change in the future. For now, the best way to review the content there is to look at the rendered content in the preview.

Please don't review the javascript or css (that's already been reviewed--I'm just copying it here).

@dedemorton dedemorton added docs needs_backport PR is waiting to be backported to other branches. Team:Ingest Management v7.9.0 v7.10.0 labels Aug 5, 2020
@dedemorton dedemorton self-assigned this Aug 5, 2020
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Aug 5, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Aug 5, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20437 updated]

  • Start Time: 2020-08-06T19:56:17.003+0000

  • Duration: 24 min 27 sec

@dedemorton dedemorton marked this pull request as ready for review August 6, 2020 01:50
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@dedemorton dedemorton changed the title [docs] Add ingest management doc changes for 7.9 [docs] Add Elastic Agent doc changes for 7.9 Aug 6, 2020
@dedemorton
Copy link
Contributor Author

@EricDavisX @hbharding This PR needs to be reviewed and merged before elastic/observability-docs#80 will pass. Note my comment in the original description for how to proceed with reviewing the tabbed panel "widgets."

@EricDavisX
Copy link
Contributor

@dedemorton hi - I am reviewing. I have some minor and some more important feedback, but none of it is preventative to merging to get the delta smaller for our discussions. Not sure if you want to make more changes now or push it in and keep iterating?

Here are the first 2 items I wanted to confirm (first is not a bug maybe, probably process thing I need help on):

1)this page links to 8.0, which is not available as GA (correctly). is it right that its pointing to 8.0 ? https://beats_20437.docs-preview.app.elstc.co/guide/en/ingest-management/master/elastic-agent-installation.html

  1. now that I know more, I can cite we should adjust the Agent 'install' and 'run' steps a bit. I love seeing it broken by platform, this is a huge clarity enhancement for users.

might be easier to do a zoom but I'm happy to write out my thoughts to post in-line feedback

@dedemorton
Copy link
Contributor Author

@EricDavisX

this page links to 8.0, which is not available as GA (correctly). is it right that its pointing to 8.0 ? https://beats_20437.docs-preview.app.elstc.co/guide/en/ingest-management/master/elastic-agent-installation.html

Yup, it's right. I use a variable to resolve the version. When I port this change to 7.9, it will show the correct version. I've temporarily set the release-state attribute to released so that you can see the commands for review purposes, but before merging, I'll remove that override so that users looking at the master version of docs won't see any installation instructions.

Happy to zoom if that's easier for you. Might be more efficient because I've done some things to work around the current design and should explain those because I expect more changes before GA.

@dedemorton
Copy link
Contributor Author

@EricDavisX Oh heck. I just realized that the override is in the other PR. I'll add it here so you can see the commands properly in the preview without having to look at the diff.

@EricDavisX
Copy link
Contributor

EricDavisX commented Aug 6, 2020

For details, I just finished reviewing - here is what I have and it is less impactful than I thought, the docs are in really good shape here, well done!

from https://beats_20437.docs-preview.app.elstc.co/guide/en/ingest-management/master/elastic-agent-installation.html

1a) the powershell command when run on windows will actually 'start' the agent too. we could move steps 3-5 to the 'start agent' page? Its ok to leave them here, but its a little more consistent to have just the 'unzip' step here and move the '.\install-service-elastic-agent.ps1' script to after the enroll command.

1b) and in general I'd like to brainstorm on how we can de-emphasize the regular 'Linux' tab and usage, we should encourage them to .deb/.rpm usage if at all possible since it facilitates persistent Agent install and the .tar.gz usage does not. Can we at least add some language there to this effect on the linux tab? something like "We recommend to use the .deb or .rpm installation methods if at all possible to support persistent Agent execution' ? not sure what else you think on this.

The enroll process page:
https://beats_20437.docs-preview.app.elstc.co/guide/en/ingest-management/master/run-elastic-agent.html

2a) all enrollments need to be done as Administrator (sudo) level, but Windows is the only one that calls this out. Can we add a sentence similar to or further enhanced as to what is in the product UI? That line I wrote (to the best of my ability) is:
"Be sure to run the enrollment steps as a user with Administrator privilege on the system."

2b) can we change this "to generate an enrollment token."
to
"to see a current enrollment token."
... its not just a technical specificity here, there is a UI in place to actually create new enrollment tokens, so it may be confusing?

2c) under step 4 for Windows, this depends on what you decided in feedback item 1) above. If you want to leave step 1 alone you could cite that this is optional to 'start Elastic Agent if, needed'. It should already be running after the .ps1 script is run. This is in regards to the line:
'Start-Service elastic-agent'

2d) for macOS start up, the Endpoint team was going to confirm some steps to configure it as a service manually, would you want to put those in here, maybe?

3a) on the stop Elastic Agent view, can we tweak this a bit:
"Then kill the process"
to
"Then kill the process with the relating PID from above"
and then also change the kill command to have < > around PID to indicate PID must be replaced with the value they got in the ps command?
kill -9 < PID >

4a) we need to remove the citation of the --staging command, it is intended to be for internal use only.

  • I confirmed it is not displayed as part of the agent command line --help status, so that's good.

Happy to zoom to go over this so its more clear, if needed

@dedemorton
Copy link
Contributor Author

@EricDavisX OK, I think I've addressed most of your concerns, except the CLI topic, which I plan to update next.

@dedemorton
Copy link
Contributor Author

Approval was received via slack to merge this because it's required to get the overall ingest management PR building in elastic/observability-docs#80. We will iterate over all the content again during that review and follow up with another PR in the beats repo, if necessary.

@dedemorton dedemorton merged commit 902015c into elastic:master Aug 7, 2020
@dedemorton dedemorton deleted the issue#40 branch August 7, 2020 02:47
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20437 updated]

  • Start Time: 2020-08-07T02:31:55.965+0000

  • Duration: 23 min 55 sec

dedemorton added a commit to dedemorton/beats that referenced this pull request Aug 8, 2020
* [docs] Add ingest management doc changes for 7.9

* Update Beats agent docs with other 7.9 changes

* Add copy of js/css to reduce dependencies

* Temporarily override release state

* Fix bug in platform selector

* Add changes from review
dedemorton added a commit to dedemorton/beats that referenced this pull request Aug 8, 2020
* [docs] Add ingest management doc changes for 7.9

* Update Beats agent docs with other 7.9 changes

* Add copy of js/css to reduce dependencies

* Temporarily override release state

* Fix bug in platform selector

* Add changes from review
dedemorton added a commit that referenced this pull request Aug 8, 2020
* [docs] Add ingest management doc changes for 7.9

* Update Beats agent docs with other 7.9 changes

* Add copy of js/css to reduce dependencies

* Temporarily override release state

* Fix bug in platform selector

* Add changes from review
dedemorton added a commit that referenced this pull request Aug 8, 2020
* [docs] Add ingest management doc changes for 7.9

* Update Beats agent docs with other 7.9 changes

* Add copy of js/css to reduce dependencies

* Temporarily override release state

* Fix bug in platform selector

* Add changes from review
@dedemorton dedemorton removed the needs_backport PR is waiting to be backported to other branches. label Aug 15, 2020
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
* [docs] Add ingest management doc changes for 7.9

* Update Beats agent docs with other 7.9 changes

* Add copy of js/css to reduce dependencies

* Temporarily override release state

* Fix bug in platform selector

* Add changes from review
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…#20502)

* [docs] Add ingest management doc changes for 7.9

* Update Beats agent docs with other 7.9 changes

* Add copy of js/css to reduce dependencies

* Temporarily override release state

* Fix bug in platform selector

* Add changes from review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants