使用AMQ 7.0.1的AppDynamics监视 [英] AppDynamics monitoring with AMQ 7.0.1

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

问题描述

我正在使用AppDynamics的ActiveMQ扩展.很好开始.使用JMXRemote(在artemis.profile中启用)可以.但是,我想要从本地主机.默认情况下,AMQ的localhost启用了JMX. AMQ管理控制台在内部使用jmx,并且无需启用JMXRemote即可工作. jolokia在内部使用哪些服务URL通过本地主机上的JMX进行连接?我尝试使用以下URL:

I am using the ActiveMQ extension of AppDynamics. It is good to start. With JMXRemote(enabled in artemis.profile) it is OK. But, I want it from localhost. JMX is enabled by default for localhost for AMQ. AMQ management console use jmx internally and it works without JMXRemote enabled. What service URL jolokia use internally to connect using JMX from localhost? I have tryed with following URL:

serviceUrl:"service:jmx:rmi:///jndi/rmi://:1099/jmxrmi"

serviceUrl: "service:jmx:rmi:///jndi/rmi://:1099/jmxrmi"

推荐答案

第一步是在etc/users.properties文件中添加用户名和密码.在大多数情况下, 使用开箱即用提供的默认设置.为此,只需取消注释以下行:

The first step is to add a username and password in the etc/users.properties file. For most purposes, it is ok to just use the default settings provided out of the box. For this, just uncomment the following line:

admin=admin,admin,manager,viewer,Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser

然后,您必须通过将BrokeViewMBean添加到白名单ACL配置中来绕过BrokeViewMBean的凭据检查.您可以通过替换以下行来做到这一点:

Then, you must bypass credential checks on BrokeViewMBean by adding it to the whitelist ACL configuration. You can do so by replacing this line:

org.apache.activemq.Broker;getBrokerVersion=bypass

与此:

org.apache.activemq.Broker=bypass

除了正确的方法外,它还可以通过更改代理的etc目录上的org.apache.karaf.management.cfg文件来启用几个不同的配置选项(例如:端口,侦听地址等).

In addition to being the correct way, it also enables several different configuration options (eg: port, listen address, etc) by just changing the file org.apache.karaf.management.cfg on broker's etc directory.

请记住,在这种情况下,JMX访问是通过不同的JMX连接器根进行的:它使用的是karaf-root而不是以前在较旧方法中使用的jmxrmi.默认情况下,它也使用端口1099,而不是1616.

Please keep in mind that JMX access is made through a different JMX connector root in this case: it uses karaf-root instead of jmxrmi, which was previously used in the older method. It also uses port 1099 by default, instead of 1616.

因此,uri应该是

service:jmx:rmi:///jndi/rmi://<host>:<port>/karaf-root

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

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