Skip to content

Commit aac92bf

Browse files
Change agent pprof default to false (elastic#1289)
* Change agent pprof default to false * Apply suggestions from code review Co-authored-by: DeDe Morton <[email protected]> Co-authored-by: DeDe Morton <[email protected]>
1 parent 298c7dc commit aac92bf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

elastic-agent/configuration/elastic-agent-monitoring.asciidoc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ agent.monitoring:
2121
logs: true
2222
# enables metrics monitoring
2323
metrics: true
24-
# exposes /debug/pprof/ endpoints
24+
# exposes /debug/pprof/ endpoints for Elastic Agent and Beats
2525
# enable these endpoints if the monitoring endpoint is set to localhost
26-
pprof: true
26+
pprof: false
2727
# specifies output to be used
2828
use_output: monitoring
2929
----
@@ -37,7 +37,8 @@ To enable monitoring, set `agent.monitoring.enabled` to `true`. Also set the
3737
collected. If neither setting is specified, monitoring is turned off. Set
3838
`use_output` to specify the output to which monitoring events are sent.
3939

40-
The `agent.monitoring.pprof` option controls whether the {agent} exposes the
41-
`/debug/pprof/` endpoints with the monitoring endpoints. It is set to `true`
42-
by default. If the monitoring endpoint is accessible over a network (not recommended),
43-
set this option to `false` to disable the `/debug/pprof/` endpoints.
40+
The `agent.monitoring.pprof` option controls whether the {agent} and {beats} expose the
41+
`/debug/pprof/` endpoints with the monitoring endpoints. It is set to `false`
42+
by default. Data produced by these endpoints can be useful for debugging but present a
43+
security risk. It is recommended that this option remains `false` if the monitoring endpoint
44+
is accessible over a network.

0 commit comments

Comments
 (0)