Created
October 21, 2020 06:58
-
-
Save abkunal/bb02e085b6cc4c546af86c3daa7cb4c0 to your computer and use it in GitHub Desktop.
APM server configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# APM server 7.1.1 | |
# run "locate apm-server.yml" to find file's location on server | |
apm-server: | |
# 0.0.0.0 allows the internet to send data to the apm server. 5700 is the port exposed by the apm server | |
host: "0.0.0.0:5700" | |
# denotes the maximum size of a single event in bytes that can be processed by the APM server. | |
# if an event size is greater than the configured then that event is dropped | |
max_event_size: 1457600 | |
# Maximum permitted size in bytes of a request's header accepted by the server to be processed. | |
max_header_size: 485760 | |
# Maximum amount of time to wait for the next incoming request before underlying connection is closed. | |
idle_timeout: 90s | |
# Maximum permitted duration for reading an entire request. | |
read_timeout: 300s | |
# Maximum permitted duration for writing a response. | |
write_timeout: 300s | |
# refers to Real User Monitoring. When enabled the APM server can receive the performance data from the Frontend | |
rum: | |
enabled: false | |
# denotes the number of events that can be stored in the APM memory queue. | |
# If the rate of events becomes higher than the speed with which Elasticsearch can process them then events can | |
# be queued. Higher values prevent events to be lost but may take a large amount of RAM during high traffic | |
queue.mem.events: 20000 | |
# only errors will be logged in the log file | |
logging.level: error | |
# enable xpack monitoring for APM (works for APM 7.1.1, for latest version the parameters are different) | |
xpack.monitoring.enabled: true | |
# output to which APM server sends the received data | |
output: | |
elasticsearch: | |
# the host with port on which ES is running. | |
hosts: 127.0.0.1:9200 | |
# Number of workers per Elasticsearch host. | |
# More workers prevents APM queue from filling if ES can keep up with indexing | |
worker: 5 | |
# The maximum number of events to bulk in a single Elasticsearch bulk API index request. | |
# The default is 50. | |
bulk_max_size: 10000 | |
# Configure http request timeout before failing an request to Elasticsearch. | |
timeout: 300 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment