Kibana version: 7.12
Elasticsearch version: 7.12
APM Server version: 7.12
APM Agent language and version: Java 1.22
Browser version: Chrome 86
Original install method (e.g. download page, yum, deb, from source, etc.) and version: source
Fresh install or upgraded from other version? fresh
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
No
There are no SSL/TLS enabled and disabled the firewall too
SSL disabled in apm-server.yml too
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
I have ELK stack with Apm-server in one ec2 instance and installed java apm-agent for monitoring jenkins in another ec2 instance
I followed the automatic setup for apm-agent
Command used:
java -jar apm-agent-attach-standalone.jar --include '.*jenkins.*' --config service_name=jenkins-service --config server_url=http://privateipofapmserver:8200
I can curl the apm-server instance and got 200 response
Steps to reproduce:
- Started Jenkins service
2.Execute the command
3.Check output
Errors in browser console (if relevant):
2021-03-30 03:52:59.425 INFO Attaching the Elastic APM agent to 7816 /usr/share/jenkins/jenkins.war -Djava.awt.headless=true with arguments {service_name=jenkins-service, server_url=http://x.x.x.x:8200}
2021-03-30 03:53:20.638 INFO Done
jenkins@ip-x.x.x.x:/etc/apmagents$ java -jar apm-agent-attach-standalone.jar --list
7816 /usr/share/jenkins/jenkins.war -Djava.awt.headless=true
24190 apm-agent-attach-standalone.jar
Provide logs and/or server output (if relevant):
1.No errors in apm-server log
2.Error in jenkins.log
2021-03-30 04:31:11,928 [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-03-30 04:31:11,928 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type TRANSACTION with this error: Connection refused (Connection refused)
2021-03-30 04:31:11,928 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 36 seconds (+/-10%)