-
Notifications
You must be signed in to change notification settings - Fork 175
[apm] Improve instructions for monitoring APM on premise #4749
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
base: 8.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
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: | ||
+ | ||
-- | ||
|
@@ -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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is actually not true... For example, if ones creates an APM Integration policy and its ID is How to tell a user how to get the component ID? I do not know the fastest solution, but it might be:
Or... from command line...
Will show up:
The only situation the APM Integration has |
||
username: remote_monitoring_user | ||
password: your_password | ||
---- | ||
|
||
.. Do not change the `module` name or `xpack.enabled` boolean; | ||
|
@@ -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}. | ||
|
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 we would have:
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.
Also, I would invite a developer / engineer to test this flow if possible.
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.
@simitt is someone from your team available to take a look at this recommendation?
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.
@raultorrecilla know better about the team's availability.
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.
Hello, I've taken the time to test this and it works. I'm leaving a comment below for a catch...