apm-server.yml 配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
output.elasticsearch.hosts: [ip1,ip2,ip3,ip4]
queue.mem.events: 51200
output.elasticsearch.workers: 4
output.elasticsearch.bulk_max_size: 5120

# 开启RUM
apm-server.rum.enabled: true
apm-server.rum.allow_origins: ['*']
apm-server.rum.library_pattern: "node_modules|bower_components|~"


#配置开启监控api
http.enabled: true
http.port: 5066
http.host: "xx.xx.xx.xx"
#随后访问 xx.xx.xx.xx:5066/stats 即可

查看配置

1
apm-server export config

修改配置

1
cd /etc/apm-server

查看日志

1
cd /var/log/apm-server

验证config

1
apm-server test config

验证output

1
apm-server test output