简体   繁体   English

Prometheus 和 ActiveMQ 集成

[英]Prometheus and ActiveMQ Integration

I want to show the metrics of ActiveMQ on Promtheus/Grafana and generate the Alerts using Prometheus AlertManager.我想在 Promtheus/Grafana 上显示 ActiveMQ 的指标并使用 Prometheus AlertManager 生成警报。

Kindly suggest any option to scrape the ActiveMQ metrics in Prometheus.请建议在 Prometheus 中抓取 ActiveMQ 指标的任何选项。

If you're using ActiveMQ 5.x then you'll need to use the Prometheus JMX Exporter .如果您使用的是 ActiveMQ 5.x,那么您将需要使用Prometheus JMX Exporter

However, if you're using ActiveMQ Artemis then you can use the Prometheus metrics plugin implementation .但是,如果您使用的是 ActiveMQ Artemis,那么您可以使用Prometheus 指标插件实现 General information about exporting metrics in ActiveMQ Artemis can be found in the documentation .有关在 ActiveMQ Artemis 中导出指标的一般信息可以在文档中找到。

A sample Grafana dashboard is available here .此处提供示例 Grafana 仪表板。

Basic ActiveMQ metrics like number of Queues, number of Messages in a Queue etc can be achieved using a JMX Exporter.使用 JMX 导出器可以实现基本的 ActiveMQ 指标,例如队列数、队列中的消息数等。

http://blog.klocwork.com/open-source/monitoring-java-applications-prometheus-grafana-part-1/ http://blog.klocwork.com/open-source/monitoring-java-applications-prometheus-grafana-part-1/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM