我正在尝试使用Springboot 2.3.1在Kubernetes上运行 Java APM代理
我收到以下错误
[elastic-apm-server-reporter]错误co.elastic.apm.agent.report.IntakeV2ReportingEventHandler-无法处理此错误类型为METRICS的事件:/减零
如果我在具有相同Java版本的VM上运行它,效果很好
我如何使用

java -javaagent:elastic-apm-agent-1.17.0.jar -Delastic.apm.service_name=myapp -Delastic.apm.application_packages=com.example -Delastic.apm.server_urls=http://apm-server:8200 -jar my-application.jar
APM代理语言和版本:Java,elastic-apm-agent-1.17.0.jar,1.16.0.jar,1.15.0.jar
Java版本
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (IcedTea 3.12.0) (Alpine 8.212.04-r0)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
更多日志
co.elastic.apm.agent.util.JmxUtils - Found JVM-specific OperatingSystemMXBean interface: com.sun.management.OperatingSystemMXBean
co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.17.0 as myapp on Java 1.8.0_121 (Oracle Corporation) Linux 3.10.0-1062.4.3.el7.x86_64

co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
co.elastic.apm.agent.servlet.ServletVersionInstrumentation - Servlet container info = Apache Tomcat/9.0.36

ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type TRANSACTION with this error: / by zero
我尝试使用以前的代理版本1.16.0和1.15.0,但仍然遇到相同的错误。
谁能帮帮我吗。
提前非常感谢你

最佳答案

抱歉,服务器网址未正确传递给docker。

关于java - kubernetes上的Java APM代理错误:无法处理METRICS类型的事件,并出现以下错误:/减零,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/62865170/

10-12 00:14
查看更多