首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >收到的APM Java代理数据未显示在Kibana的APM的代理状态中

收到的APM Java代理数据未显示在Kibana的APM的代理状态中
EN

Stack Overflow用户
提问于 2021-03-27 05:27:30
回答 2查看 1.3K关注 0票数 2

我让ELK在ec2实例中运行,并在其中安装apm-服务器。

APM-服务器版本: 7.x

我有一个带有npm的springboot应用程序,用于在其他ec2实例中进行负载测试,还在其中安装了apm代理。

APM代理版本: 1.x

在APMserver.yml中:

我已经给出了主机和输出的私有ip。

现在,当我尝试用curl http://xxxx.8200连接apm-server时,它就连接了。

启动应用程序的命令:

代码语言:javascript
运行
复制
java -javaagent:elastic-apm-agent-1.22.0.jar --config service_name=my-cool-service server_url=http://private(or)publicip:8200 -jar order-service/target/order-service-1.0-SNAPSHOT.jar

输出:

代码语言:javascript
运行
复制
2021-03-27 04:45:59,879 [main] INFO  co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.22.0 as my-cool-service on Java 11.0.10 Runtime version: 11.0.10+9-Ubuntu-0ubuntu1.18.04 VM version: 11.0.10+9-Ubuntu-0ubuntu1.18.04 (Ubuntu) Linux 4.15.0-1051-aws
2021-03-27 04:45:59,880 [main] INFO  co.elastic.apm.agent.configuration.StartupInfo - VM Arguments: [-javaagent:elastic-apm-agent-1.22.0.jar, -Delastic.apm.service_name=my-cool-service, -Delastic.apm.application_packages=org.example,org.another.example, -Delastic.apm.server_url=http://x.x.x.x:8200]
2021-03-27 04:46:03,041 [elastic-apm-server-healthcheck] INFO  co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: {  "build_date": "2021-03-18T05:15:57Z",  "build_sha": "ef735c0cc1e5aa0d4fe4a363804390776e7775fe",  "version": "7.12.0"}
2021-03-27 04:46:03,063 [main] INFO  co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
2021-03-27 04:46:03,074 [elastic-apm-remote-config-poller] INFO  co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Received new configuration from APM Server: {}

卷曲输出:

代码语言:javascript
运行
复制
{
  "build_date": "2021-03-18T05:15:57Z",
  "build_sha": "ef735c0cc1e5aa0d4fe4a363804390776e7775fe",
  "version": "7.12.0"
}

Kibana.log

没有错误,但是下面的消息

代码语言:javascript
运行
复制
{"type":"log","@timestamp":"2021-03-27T04:27:58+00:00","tags":["info","plugins","apm"],"pid":1627,"message":"Config was not found for my-cool-service/undefined"}

当我检查代理状态时,

尚未从代理人处收到任何数据。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-03-27 07:32:52

我现在可以在基巴纳控制台上看到服务。以下值的错误:

-Delastic.apm.service_name-Delastic.apm.application_packages

票数 1
EN

Stack Overflow用户

发布于 2021-05-05 08:35:20

您需要将套餐添加到仪器中,代码并开始查看Kibana中的数据。

代码语言:javascript
运行
复制
-Delastic.apm.service_name=my-cool-service
-Delastic.apm.application_packages=org.example,org.another.example
-Delastic.apm.server_url=http://localhost:8200
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66828288

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档