cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to pull in String Value with JMX Extensions?

sivart_89
Advisor

I've created a JMX extension for some Kafka metrics but now want to add the connector status metric. According to the confluent link below the connector status can be running, paused, or stopped. Per the JMX Dynatrace documentation, the attributes available in the list are only the numeric ones.

To see other attributes, for example, attributes of the String type, select Include non-numeric attributes. Note that selected attributes must be parsable to double, or boolean type. Otherwise, Dynatrace OneAgent will not collect any data from such a metric. I'm led to believe that the status metric cannot be captured and have seen the same when adding that metric to the JMX extension. Has anyone been able to pull in strings of text such as this status metric?

An alternative way we are thinking of is hitting an API to get the value and then ingesting that into Dynatrace as a metric. However, just want to be sure I'm not missing something with the JMX extension route.

https://docs.confluent.io/kafka-connectors/self-managed/monitoring.html#use-jmx-to-monitor-kconnect

Dynatrace JMX doc
https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/ingestion-methods/jmx-extensi...

9 REPLIES 9

Mike_L
Dynatrace Leader
Dynatrace Leader

The new JMX extensions in Extension Framework 2.0 will be able to handle this use case. It's currently wrapping up development and will be out in 2 or so months if all goes well. One of the first extensions we are bringing out together with the data source is actually an improved version of the Kafka extension. @victor_balbuena, is connector status one of the new metrics you added?

victor_balbuena
Dynatrace Enthusiast
Dynatrace Enthusiast

The connector status is not one of the metrics defined to be captured by the first version of the Kafka extension in EF2.

Thank you @victor_balbuena  and @Mike_L. We hope the status is eventually incorporated into the kafka 2.0 extension but in the meantime I can utilize the new jmx framework once available.

Do we know when this kafka connector status metrics will be available ?

The expected date for release of the new EF2 Kafka extension is on the 9th of May.

Thanks for the info. Will this be rolled into a cluster upgrade and be mentioned in release notes? Just wondering how we will be aware of this being available.

It's my understanding that the newer version of the kafka extension will not have the connector status we are looking for BUT we can still create a custom jmx extension to pull out the metric string whereas before EF2 you could not, is that accurate?

Mike_L
Dynatrace Leader
Dynatrace Leader

It is now available for download from the Dynatrace hub.

you can indeed also create your own JMX 2.0 extensions starting with 1.265.

Hi Mike_L

 

Could you link in the new documentation for JMX 2.0 for the Dynatrace hub?

I recommend that you grab one of the new extensions, such as ActiveMQ, which has it in the extension.yaml: https://www.dynatrace.com/hub/detail/activemq/?filter=all&type=extension#versions