如何在没有千分尺的情况下收集并将指标从Java应用程序发送到Prometheus?

发布于 2025-02-11 04:30:33 字数 274 浏览 1 评论 0原文

我有2件事:

  1. Java应用程序。
  2. Prometheus Server

我的任务是收集应用程序指标,然后发送到Prometheus。

我只找到了一种方法:使用千分尺。作为Java应用程序,因此很方便乘坐Spring Boot,因为它与千分尺的集成良好,后者具有适合Prometheus的适配器。

还有其他选择吗?

PS我尝试通过Dropwizard指标来实现它,但我被困了 - Google中几乎没有有关它的信息。

I have 2 things:

  1. A java application.
  2. Prometheus server

My task is gather application metrics and send then to Prometheus.

I've found only 1 way to do it: using Micrometer. And as a java application it is convenient to take spring boot because it has a good integration with Micrometer and latter has adapter for Prometheus.

Are there any other options ?

P.S. I try to achieve it via dropwizard metrics but I am stuck - there almost no information in google about it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文