java - kubernetes 上的 Java APM 代理出错:无法处理 METRICS 类型的事件并出现此错误:/ 为零
问题描述
我正在尝试使用 Springboot 2.3.1.RELEASE 在 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
爪哇版
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,但仍然遇到相同的错误。
谁能帮帮我吗。
非常感谢您提前
解决方案
对不起,我的错误,服务器 url 没有正确传递给 docker。
推荐阅读
- gradle - 将 sourceCompatibility 和 targetCompatibility 从 1.8 更改为 13 时,任务“:test”的 Gradle 执行失败
- rest - JSON错误 | 无数据,空输入 1:1
- c# - Unity 中的 UnityScript 到 C#
- ubuntu - OpenSSL KEYUPDATE 和“SSL_key_update:错误的 ssl 版本”
- ag-grid - 有没有办法在 ag-grid 中将 detailRowHeight 道具设置为 100%?
- sql - 根据时差和出现次数选择重复行
- c++ - 如何在 C++ 中使用 [] 运算符获取对象
- 3des - 我可以在 google KMS HSM 中使用 3DES 密钥吗?
- sql - 将 varchar 值 '28,29,30,31,32' 转换为数据类型 smallint 时转换失败
- angular - Angular NgxSpinnerService 无法隐藏