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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...