# Kafka metrics via hub extensions

**URL:** <https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721>\
**Category:** Extensions\
**Tags:** kafka, jmx, extensions, apache\
**Created:** [May 22, 2024, 9:07am UTC](https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721 "2024-05-22T09:07:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vpasinelli](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@vpasinelli](https://community.dynatrace.com/u/vpasinelli)\
**Post date:** [May 22, 2024, 9:07am UTC](https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721/1 "2024-05-22T09:07:32Z")

</div>

Hi,  
We have installed in our environment via hub Confluent Kafka and Apache Kafka. In Confluent Kafka among the metrics we would need is the kafka schema but it results: “Metric confluent\_kafka\_schema\_registry\_schema\_count.gauge not found” and “Metric confluent\_kafka\_schema\_registry\_request\_gauge not found” or in any case all the metrics related to the schema.  
Reading the documentation I have true with our colleagues who manage the kafka hosts and have confirmed that all prerequisites have been met.  
Also, if you can give a few things about which metric to observe to check the status of Kafka tasks.

Thank you very much

---

<div class="post-metadata">

**Author:** ![DavidMass](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/davidmass/32/9065_2.png) [@DavidMass](https://community.dynatrace.com/u/DavidMass)\
**Post date:** [May 22, 2024, 1:24pm UTC](https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721/2 "2024-05-22T13:24:14Z")

</div>

Hi&nbsp;[@vpasinelli](https://community.dynatrace.com/user/69250)&nbsp;,&nbsp;  
That metric comes from the Confluent Cloud extension in the Schema Registry Metrics Feature Set :&nbsp;

> **[Confluent Cloud (Kafka) monitoring & observability | Dynatrace Hub](https://www.dynatrace.com/hub/detail/confluent-cloud-kafka)**
>
> Remotely monitor your Confluent Cloud Kafka Clusters and other resources. Start your free trial today!

 ![DavidMass_0-1716384126020.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/5/6545f22478d09c581e28bf178dccf69839581d6e.png)

Are you using Confluent Cloud and have you added the Schema Registry ID(s) to the Public Confluent Export API URL :

 ![DavidMass_1-1716384208875.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/0/1077ad577cd69b524d5ef3ca24cf44b948a376da.png)

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [May 23, 2024, 3:16am UTC](https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721/3 "2024-05-23T03:16:28Z")

</div>

Hi&nbsp;[@vpasinelli](https://community.dynatrace.com/user/69250)&nbsp;  
If you are already seeing the message “Metric confluent\_kafka\_schema\_registry\_schema\_count.gauge not found”, it means that you have already configured the Confluent Cloud (Kafka) extension.

I suggest you check carefully:  
- Have an ActiveGate that you can install Extensions and that has free internet access  
- Scheme ID  
- The full URL entered  
- Credentials entered

Example of URL :

```markup
https://api.telemetry.confluent.cloud/v2/metrics/cloud/export?resource.schema_registry.id=xxxx-xxxxxx

```

Repleace the “xxxx-xxxxxx” for some value like : “lsrc-7yd7zx”

It is common for there to be an error in that part of the configuration. Then , also you can validate if there is correct communication from the “Monitoring configurations” section.

 ![PierreGutierrez_0-1716433776601.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/1/71c249fdf88661aa105eb9608ae6f98d3432b94a.png)

If you have already validated everything, you can identify any possible errors by clicking on the “Status” value.  
In the example it is the Text “Error” and it will take you to Log information ingested in Dynatrace with the details of what happened.

 ![PierreGutierrez_1-1716433915970.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/9/e98419e6141df7b1a0e7199ed8716c1abd97daca.png)

When you have everything configured and working you should be able to have metrics like the following in the Kafka Dashboard Template

 ![PierreGutierrez_2-1716433941285.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/8/d80fca39387aa756564808613dfe80c70d884c58.png)

---------------------------------------------------------------------------------------------------  
I think 2 of the most important metrics for Confluent Kafka Cloud monitoring are:

 ![PierreGutierrez_3-1716434132462.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/c/9c6623f68233308c555dc980ac93012c3b318d87.png)

I hope it’s helpful 💪

---

<div class="post-metadata">

**Author:** ![vpasinelli](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@vpasinelli](https://community.dynatrace.com/u/vpasinelli)\
**Post date:** [May 23, 2024, 7:32am UTC](https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721/4 "2024-05-23T07:32:16Z")

</div>

Thank you so much for your answers. Unfortunately I was informed that our confluent is onprem and not in the cloud so Confluent Cloud is not the right extension for us, while in the extension Apache Kafka such metric is not present, how could we recover that metric (schema and task status)?

---

<div class="post-metadata">

**Author:** ![vpasinelli](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@vpasinelli](https://community.dynatrace.com/u/vpasinelli)\
**Post date:** [May 23, 2024, 10:34am UTC](https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721/5 "2024-05-23T10:34:17Z")

</div>

Thank you very much, but we were wrong and we did not merge in the cloud but on our machines. So the idea that would make me immensely is to retrieve the metrics through metric ingestion but from the documentation I am not clear if I can make the call from conflunet and then upload them to Dynatrace. Thank you very much

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [May 23, 2024, 1:00pm UTC](https://community.dynatrace.com/t/kafka-metrics-via-hub-extensions/45721/6 "2024-05-23T13:00:04Z")

</div>

HI&nbsp;[@vpasinelli](https://community.dynatrace.com/user/69250)&nbsp;  
I understand what you’re saying, I was checking.  
The metrics you get from the integration with the extension are specific to the Confluent Kafka Cloud platform, exposed through the “Confluent metric export API”(&nbsp;[Confluent Cloud Metrics API: Reference Documentation](https://api.telemetry.confluent.cloud/docs#tag/Version-2/paths/~1v2~1metrics~1%7Bdataset%7D~1export/get)&nbsp;)&nbsp; and it seems that those APIs are only for cloud and cloud-custom environments.

 ![PierreGutierrez_0-1716467988768.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/c/2ca24ce06e50ac0742d7cb90c036f4e7417d9c66.png)

That may be the reason why metrics do not arrive.

-----------------------------------------------------------------

I have never tested this scenario, but because Confluent Kafka Cloud is based on Apache Kafka, perhaps installing an Agent on the server will give you visibility into the metrics.  
([https://www.dynatrace.com/hub/detail/apache-kafka/?query=apache+kafka&filter=all](https://www.dynatrace.com/hub/detail/apache-kafka/?query=apache+kafka&filter=all)&nbsp;)

Another idea I think is to use the Confluent Kafka APIs on-premise, connected to Promethus and expose it to dynatrace.

They are ideas, but I have not validated them

I hope someone can help you with more specific detail 💪
