You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solutions/observability/apps/monitor-fleet-managed-apm-server.md
+7-15
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,12 @@ applies_to:
6
6
stack: all
7
7
---
8
8
9
-
10
-
11
9
# Monitor a Fleet-managed APM Server [apm-monitor-apm-self-install]
12
10
13
-
14
11
::::{note}
15
12
This guide assumes you are already ingesting APM data into the {{stack}}.
16
13
::::
17
14
18
-
19
15
In 8.0 and later, you can use {{metricbeat}} to collect data about APM Server and ship it to a monitoring cluster. To collect and ship monitoring data:
20
16
21
17
1.[Configure {{agent}} to send monitoring data](#apm-configure-ea-monitoring-data)
@@ -24,11 +20,13 @@ In 8.0 and later, you can use {{metricbeat}} to collect data about APM Server an
24
20
25
21
## Configure {{agent}} to send monitoring data [apm-configure-ea-monitoring-data]
26
22
27
-
::::{admonition}
28
-
Before you can monitor APM, you must have monitoring data for the {{es}} production cluster. To learn how, see [Collect {{es}} monitoring data with {{metricbeat}}](../../../deploy-manage/monitor/stack-monitoring/collecting-monitoring-data-with-metricbeat.md). Alternatively, open the **{{stack-monitor-app}}** app in {{kib}} and follow the in-product guide.
29
-
23
+
::::{note}
24
+
Before you can monitor APM, you must have monitoring data for the {{es}} production cluster. To learn how, see [Collect {{es}} monitoring data with {{metricbeat}}](/deploy-manage/monitor/stack-monitoring/collecting-monitoring-data-with-metricbeat.md). Alternatively, open the **{{stack-monitor-app}}** app in {{kib}} and follow the in-product guide.
30
25
::::
31
26
27
+
:::{warning}
28
+
Use the Fleet UI to change the agent's HTTP monitoring endpoint using [Advanced agent monitoring settings](/reference/fleet/agent-policy.md#advanced-agent-monitoring-settings-advanced-agent-monitoring-settings).
29
+
:::
32
30
33
31
1. Enable monitoring of {{agent}} by adding the following settings to your `elastic-agent.yml` configuration file:
34
32
@@ -99,8 +97,6 @@ See the [{{agent}} command reference](/reference/fleet/agent-command-reference.m
99
97
period: 10s
100
98
hosts: ["http://localhost:6791"]
101
99
basepath: "/processes/apm-server-default"
102
-
username: remote_monitoring_user
103
-
password: your_password
104
100
```
105
101
106
102
1. Do not change the `module` name or `xpack.enabled` boolean; these are required for stack monitoring. We recommend accepting the default `period` for now.
@@ -115,10 +111,6 @@ See the [{{agent}} command reference](/reference/fleet/agent-command-reference.m
115
111
If you configured {{agent}} to use encrypted communications, you must access it via HTTPS. For example, use a `hosts` setting like `https://localhost:5066`.
116
112
117
113
3. APM Server metrics are exposed at `/processes/apm-server-default`. Add this location as the `basepath`.
118
-
4. 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:
119
-
120
-
1. Create a user on the {{es}} cluster that has the `remote_monitoring_collector` [built-in role](../../../deploy-manage/users-roles/cluster-or-deployment-auth/built-in-roles.md). Alternatively, if it’s available in your environment, use the `remote_monitoring_user` [built-in user](../../../deploy-manage/users-roles/cluster-or-deployment-auth/built-in-users.md).
121
-
2. Add the `username` and `password` settings to the beat module configuration file.
122
114
123
115
4. Optional: Disable the system module in the {{metricbeat}}.
124
116
@@ -162,10 +154,10 @@ See the [{{agent}} command reference](/reference/fleet/agent-command-reference.m
162
154
163
155
If the {{es}} {{security-features}} are enabled on the monitoring cluster, you must provide a valid user ID and password so that {{metricbeat}} can send metrics successfully:
164
156
165
-
1. Create a user on the monitoring cluster that has the `remote_monitoring_agent` [built-in role](../../../deploy-manage/users-roles/cluster-or-deployment-auth/built-in-roles.md). Alternatively, if it’s available in your environment, use the `remote_monitoring_user` [built-in user](../../../deploy-manage/users-roles/cluster-or-deployment-auth/built-in-users.md).
157
+
1. Create a user on the monitoring cluster that has the `remote_monitoring_agent` [built-in role](/deploy-manage/users-roles/cluster-or-deployment-auth/built-in-roles.md). Alternatively, if it’s available in your environment, use the `remote_monitoring_user` [built-in user](/deploy-manage/users-roles/cluster-or-deployment-auth/built-in-users.md).
166
158
2. Add the `username` and `password` settings to the {{es}} output information in the {{metricbeat}} configuration file.
167
159
168
160
For more information about these configuration options, see [Configure the {{es}} output](beats://reference/metricbeat/elasticsearch-output.md).
169
161
170
162
6. [Start {{metricbeat}}](beats://reference/metricbeat/metricbeat-starting.md) to begin collecting APM monitoring data.
171
-
7. [View the monitoring data in {{kib}}](../../../deploy-manage/monitor/stack-monitoring/kibana-monitoring-data.md).
163
+
7. [View the monitoring data in {{kib}}](/deploy-manage/monitor/stack-monitoring/kibana-monitoring-data.md).
0 commit comments