Expand my Community achievements bar.

Retrieve AEM JMX console metrics programmatically and ship to CloudWatch service

Avatar

Level 1

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?

2 Replies

Avatar

Community Advisor

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

AEM LinksLinkedIn

Avatar

Administrator

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.