Retrieve AEM JMX console metrics programmatically and ship to CloudWatch service | Community
Skip to main content
New Member
May 14, 2025
Solved

Retrieve AEM JMX console metrics programmatically and ship to CloudWatch service

  • May 14, 2025
  • 1 reply
  • 447 views

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.
Best answer by arunpatidar

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");

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
May 16, 2025

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
Supriya_Savre
Level 4
May 20, 2025

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.