Elasticsearch、kibana 和 apm-server 安装在 ec2 服务器中 我已经安装了自动 java 代理附加到另一台服务器以跟踪 jenkins 应用程序
代理正在连接到进程,但动态配置选项不起作用
Apmagent 目录:(命令 ls)
apm-agent-attach-standalone.jar elasticapm.properties
elasticapm.properties 文件
service_name="jenkins-dev" server_url="http://x.x.x.x:8200" recording=true enabled=true log_level="DEBUG" log_file=_AGENT_HOME_/logs/elastic-apm.log
附加命令:
sudo java -jar apm-agent-attach-standalone.jar --include '. 詹金斯 '
-> 这不会选择配置文件,而是附加代理
所以我用下面的命令来更新
sudo java -jar apm-agent-attach-standalone.jar --include '.*jenkins.*' --config recording=false,enabled=false
sudo java -jar apm-agent-attach-standalone.jar --include '.*jenkins.*' --config
config_file=elasticapm.properties log_file=/etc/apmagents/apm.log
日志:
2021-04-12 10:47:20,338 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error trying to connect to APM Server. Some details about SSL configurations corresponding the current connection are logged at INFO level.
2021-04-12 10:47:20,339 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER with this error: Connection refused (Connection refused)
2021-04-12 10:47:20,339 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 36 seconds (+/-10%)
2021-04-12 10:47:24,345 [elastic-apm-remote-config-poller] ERROR co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Connection refused (Connection refused)
询问:
1.在命令行中使用配置选项的正确方法是什么?
2.我们是否需要创建一个日志文件,或者如果使用 log_file 它将创建..现在它污染了应用程序日志