이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 9. Setting up AMQ Broker for HawtIO Online with Jolokia
On OpenShift, you can configure an AMQ Broker deployment to use HawtIO Online instead of the AMQ Management Console. When you have configured your broker deployment appropriately, HawtIO Online discovers the brokers and displays a dedicated Artemis plugin. You can view the same broker runtime data that you do in the AMQ Management Console from a centralized Web UI. You can also perform the same basic management operations, such as creating addresses and queues.
The following procedure describes how to configure the Custom Resource (CR) instance for a broker deployment to enable HawtIO Online to discover and display brokers in the deployment.
9.1. Prerequisites 링크 복사링크가 클립보드에 복사되었습니다!
- HawtIO Online and AMQ Broker are both installed on the same OpenShift cluster.
If you configured HawtIO Online to monitor only applications deployed on the same namespace, AMQ Broker needs to be deployed on that namespace. Otherwise, AMQ Broker can be deployed on any namespace.
Note- For more information on installing HawtIO Online on OpenShift, see Chapter 6, Setting up HawtIO on OpenShift 4.
- For more information on installing AMQ Broker on OpenShift, see Deploying AMQ Broker on OpenShift.
9.2. Configuring AMQ Broker for HawtIO 링크 복사링크가 클립보드에 복사되었습니다!
The following procedure describes how to configure the Custom Resource (CR) instance for a broker deployment to enable HawtIO Online to discover and display brokers in the deployment.
- Open the CR created to deploy the AMQ Broker
In the
deploymentPlansection, add thejolokiaAgentEnabledandmanagementRBACEnabledproperties and specify values, as shown below.Copy to Clipboard Copied! Toggle word wrap Toggle overflow jolokiaAgentEnabled Specifies whether HawtIO Online can discover and display runtime data for the brokers in the deployment. To use HawtIO Online, set the value to
true.managementRBACEnabled Specifies whether role-based access control (RBAC) is enabled for the brokers in the deployment. You must set the value to
falseto use HawtIO Online because it uses its own role-based access control.ImportantIf you set the value of
managementRBACEnabledtofalseto enable use of HawtIO Online, management MBeans for the brokers no longer require authorization. You should not use the AMQ management console whilemanagementRBACEnabledis set tofalsebecause this potentially exposes all management operations on the brokers to unauthorized use.- Save the CR instance.
Switch to the project in which you previously created your broker deployment.
oc project <project_name>
oc project <project_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Apply the changes to the CR instance by running the following command:
oc apply -f <path/to/custom_resource_instance>.yaml
oc apply -f <path/to/custom_resource_instance>.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Open Hawtio Online in a browser. The AMQ Broker you configured should be visible on the list of HawtIO-enabled application pods that are authorized for access.
- Click Connect to view the AMQ Broker.
- A new browser window opens showing the application in HawtIO. The Artemis plugin is accessible via the main navigation menu.