英文:
Spring Boot Micrometer for ElasticSearch vs APM Java Agent
问题
我有一个Spring Boot的REST应用程序。我使用了许多Spring库,如:Spring Data REST、HATEOAS、Spring JPA、Hibernate、Redis、ElasticSearch...
我想要跟踪我的应用程序的指标,并且我做了一些研究,以找到最好的工具来实现这一点。在尝试了Micrometer+DataDog之后,因为我已经在使用ElasticSearch,我尝试了APM Java Agent,并且我发现在Kibana仪表板中获得的数据量相当令人印象深刻。我可以看到我的端点,并且可以调查时间花在哪里(Mysql查询和其他内容)。
我还没有尝试过Micrometer+ElasticSearch,但根据文档,它似乎在开箱即用方面收集的数据较少。
我想知道您的建议,以及您认为哪个工具是在生产中收集应用程序指标的最佳工具。
英文:
I've a Spring Boot REST application. I use many Spring libraries as: Spring Data REST, HATEOAS, Spring JPA, Hibernate, Redis, ElasticSearch...
I want to track metrics of my application and I did a research to find the best tool to do it.
After have given a try to Micrometer+DataDog, becuase I already use ElasticSearch I did try APM Java Agent and I found quite impressive the amount of data I get in Kibana Dashboard. I can see my endpoints and investigate where the time was spent (Mysql queries and others stuff).
I didn't try yet Micrometer+ElasticSearch, but from the documentation it seems to collect less data out of the box.
I'd like to know your advice about and what you think is the best tool to collect metric for an application in production.
答案1
得分: 2
定制指标已在 APM 代理的路线图中,但我们仍在努力确定确切的时间表。
与此同时,您可以使用代理的JMX配置选项,其中包括自定义的JMX关键属性。或者使用Micrometer的Elasticsearch输出。也许只需更改Micrometer的输出作为临时解决方案,一旦自定义APM指标可用,可以考虑切换?
还有一个选项是使用Metricbeat从JMX / Jolokia获取指标,但这听起来是一个更大的变化,而且不是一个真正的长期优势。
英文:
Custom metrics are on the roadmap for the APM agent, but we're still working on the exact schedule.
In the meantime you could either use the JMX config options of the agent with custom JMX key properties. Or use the Elasticsearch output of Micrometer. Maybe just change the Micrometer output as an interim solution and potentially switch to custom APM metrics once they are available?
There's also the option to get metrics with Metricbeat from JMX / Jolokia, but that sounds like an even bigger change and not really a long-term upside.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论