如何监视Apache Artemis [英] How to monitor Apache Artemis

查看:640
本文介绍了如何监视Apache Artemis的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows .NET环境中对RabbitMQ,ActiveMQ和Apache Artemis进行一些测试。 RabbitMQ和ActiveMQ带有Web界面,您可以在其中查看有关代理,队列,消息等的信息,而Artemis则没有。我真的很希望能够在Web界面中或至少使用一些cmd / PowerShell命令监视Artemis经纪人。



我在



jConsole是一个您可以连接到启用JMX的服务器的GUI应用程序。它是Java JDK的一部分,因此您可能已经安装了它。



Jolokia







一个存储库随附的博客文章,其中描述了ActiveActive QArtemis的Prometheus和Grafana设置,它们都在OpenShift中运行。



用于Prometheus的jmx导出器包含 Artemis 2的示例配置 tar了。


I'm doing some testing with RabbitMQ, ActiveMQ and Apache Artemis in a Windows .NET environment. RabbitMQ and ActiveMQ ship with a web interface where you can see information about your broker, queues, messages etc. but Artemis does not. I really want to be able to monitor my Artemis broker in a web interface or at the very least with some cmd/PowerShell commands.

I've read on this page about some third-party tools that can be used to monitor an ActiveMQ instance and I assumed that it also applied to Artemis. Unfortunately, I have not been able to get these third-party tools to work. Some of them don't seem to work well on Windows and some are old/inactive.

My clients are communicating with the brokers through NMS (.NET Messaging API) in C#. If anyone has been able to monitor their Artemis broker, especially on a Windows machine, please let me know how you did it!

EDIT:
I have managed to communicate with the Jolokia REST API now. With a GET request to
http://username:password@localhost:8161/jolokia/read/org.apache.activemq.artemis:*
I am able to see a bunch of information about my queues such as messages added and consumed. This is nice information that will help me but I would like information about current memory usage and disk usage.

解决方案

Take a look at the Management chapter of the Artemis manual. As far as I know, the following options are available to you

JMX (Java Management Service)

JMX is a Java API for managing Java servers. There are multiple GUIs that connect to java servers via JMX. The most notable being jConsole. There is a list of other GUIs here or there, or you could build your own

jConsole

jConsole is a GUI application that you can connect to a JMX enabled server. It is a part of the Java JDK, so you probably have it installed already.

Jolokia

Jolokia, tutorial, is a JSON API layer over JMX. It makes the JMX interface accessible over HTTP(S). You may query the information using any HTTP client library. You already figured out this in your question. Again, there are GUIs on top of that, the most notable being

Hawt.io Artemis plugin

Hawt.io is an Angular.js management console. It can be thought of as a GUI for Jolokia.

Artemis 2.6 and newer

Hawt.io plugin is built in, no extra setup necessary.

Artemis 1

There is a hawt.io plugin for Artemis made by Red Hat. Compile the plugin and get a .war file. Artemis contains a built-in Jetty webserver. You need put that war to apache-artemis-1.3.0/web. You also need to download hawtio-default.war from http://hawt.io/getstarted/index.html to the same directory. Then, in the instance directory, edit etc/bootstrap.xml and add these wars to config.

Or you can get Red Hat AMQ 7, currently in Alpha, which has the management plugin built in. Start it up and go to localhost:8161/hawtio. I work for a company that sells that product.

Prometheus and Grafana

There is a repository and an accompanying blogpost that describes Prometheus and Grafana setup with ActiveMQ Artemis, all running in OpenShift.

The jmx exporter for Prometheus contains example config for Artemis 2 to get started.

这篇关于如何监视Apache Artemis的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆