Skip to main content
New Member
May 14, 2025 3:33 PM UTC
Solved

Retrieve AEM JMX console metrics programmatically and ship to CloudWatch service

Hi, I'm exploring the option to ship the JMX console default metrics like OperationStats.WorkflowPurgeTask.SUCCESS to AWS CloudWatch for better observability. I've implemented collectd to grab the JMX metrics and was able to ship the GenericJMX mbean metrics like memory_pool but could not find the mbean configurations required for the aforementioned OperationStats.WorkflowPurgeTask.SUCCESS AEM JMX console metrics. Is there a way to achieve this on AEM on-premise offering?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
May 16, 2025 10:56 AM UTC

Hi @pradeepba 

I am not sure if below API can help or not

https://docs.oracle.com/javase/8/docs/api/java/lang/management/ManagementFactory.html

https://docs.oracle.com/javase/8/docs/api/javax/management/MBeanServer.html 


Example

MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();

ObjectName name = new ObjectName("com.adobe.granite:type=Metrics,name=OperationStats.WorkflowPurgeTask.SUCCESS");

Arun Patidar

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
May 16, 2025 10:56 AM UTC

Hi @pradeepba 

I am not sure if below API can help or not

https://docs.oracle.com/javase/8/docs/api/java/lang/management/ManagementFactory.html

https://docs.oracle.com/javase/8/docs/api/javax/management/MBeanServer.html 


Example

MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();

ObjectName name = new ObjectName("com.adobe.granite:type=Metrics,name=OperationStats.WorkflowPurgeTask.SUCCESS");

Translate
Arun Patidar
Supriya_Savre
Level 4
May 20, 2025 8:38 AM UTC

Hi @pradeepba,

Did the shared solution help you out? Please let us know if you need more information. Otherwise kindly consider marking the most suitable answer as ‘correct’.

If you've discovered a solution yourself, we would appreciate it if you could share it with the community.

 

Translate