AppD Archive

Apache Kafka JMX Metrics not showing up in Metrics Browser

CommunityUser
Splunk Employee
Splunk Employee

 Hi 

I have created a JMX metric from a MBean in kafka.consumer domain. Please see the uploaded screenshots. The metric get created successfully but it is not showing up in Metrics Browser, even after waiting couple of hours. Wondering what could be wrong..

Thank you in anticipation!

AK

0 Karma

Brian_Wheeldon
Contributor

Hi AK,

The Object Name Match Pattern isn't matching anything.

From the looks of it, the MBeans configuration should be:

Object Name Match Pattern: kafka.consumer:type=consumer-coordinator-metrics,*

Instance Identifier: client-id

Please give that a try and post back with the results.

Regards,

Brian Wheeldon

Tags (3)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Brian,

I tried the suggested changes, but no luck. Please see the attached screenshot.

Regards

AK

0 Karma

Brian_Wheeldon
Contributor

The same mistake persists. It's "consumer-coordinator-metrics", not "consumer-metrics".

Regards,

Brian

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

My bad, used the wrong class name. Thanks for the correction! 

The changed the config (screenshot attached), waited for 15 mins but still dont see the mertic in Metric browser.

0 Karma

Brian_Wheeldon
Contributor

The configuration looks correct now.

My suggestion is to restart the JVM and watch out for the custom metrics.

If they don't appear, collect the agent logs through the UI together with the configuration screenshots and open a Support ticket.

Regards,

Brian Wheeldon

0 Karma
Get Updates on the Splunk Community!

Index This | What did the zero say to the eight?

June 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

Splunk Observability Cloud's AI Assistant in Action Series: Onboarding New Hires & ...

This is the fifth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...