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

[apm] Improve instructions for monitoring APM on premise #4749

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions docs/en/observability/apm/monitor-apm-server/monitor.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ To learn how, see {ref}/configuring-metricbeat.html[Collect {es} monitoring data
Alternatively, open the **{stack-monitor-app}** app in {kib} and follow the in-product guide.
****

[WARNING]
====
*Only use this option if you have _not_ yet enrolled {agent}.*
If you edit and re-enroll {agent}, you will likely lose the state of the agent.

If you have already enrolled the {agent}, consider using the Fleet UI to change the agent's HTTP monitoring endpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we would have:

  • For versions pre 8.15 we have to say:
*This procedure works only if you've _not_ yet enrolled {agent}.*
If you've already enrolled {agent}, you'll need to re-enroll {agent} and you'll lose the state of the agent.
  • For version 8.15 and more recent
Use the Fleet UI to change the agent's HTTP monitoring endpoint using {fleet-guide}/agent-policy.html#advanced-agent-monitoring-settings[Advanced agent monitoring settings].

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I would invite a developer / engineer to test this flow if possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simitt is someone from your team available to take a look at this recommendation?

using {fleet-guide}/agent-policy.html#advanced-agent-monitoring-settings[Advanced agent monitoring settings].
====

. Enable monitoring of {agent} by adding the following settings to your `elastic-agent.yml` configuration file:
+
--
Expand Down Expand Up @@ -86,8 +95,6 @@ When complete, your `modules.d/beat-xpack.yml` file should look similar to this:
period: 10s
hosts: ["http://localhost:6791"]
basepath: "/processes/apm-server-default"
username: remote_monitoring_user
password: your_password
----

.. Do not change the `module` name or `xpack.enabled` boolean;
Expand All @@ -107,18 +114,6 @@ If you configured {agent} to use encrypted communications, you must access
it via HTTPS. For example, use a `hosts` setting like `https://localhost:5066`.

.. APM Server metrics are exposed at `/processes/apm-server-default`. Add this location as the `basepath`.

.. Set the `username` and `password` settings as required by your
environment. If Elastic {security-features} are enabled, you must provide a username
and password so that {metricbeat} can collect metrics successfully:

... Create a user on the {es} cluster that has the
`remote_monitoring_collector` {ref}/built-in-roles.html[built-in role].
Alternatively, if it's available in your environment, use the
`remote_monitoring_user` {ref}/built-in-users.html[built-in user].

... Add the `username` and `password` settings to the beat module configuration
file.
--

. Optional: Disable the system module in the {metricbeat}.
Expand Down
Loading