# Extracting metrics from Prometheus endpoint

**URL:** <https://community.dynatrace.com/t/extracting-metrics-from-prometheus-endpoint/35117>\
**Category:** Extensions\
**Tags:** dynatrace-managed, prometheus, extensions\
**Created:** [May 11, 2022, 2:27pm UTC](https://community.dynatrace.com/t/extracting-metrics-from-prometheus-endpoint/35117 "2022-05-11T14:27:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gofman\_anatoly](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gofman\_anatoly](https://community.dynatrace.com/u/gofman_anatoly)\
**Post date:** [May 11, 2022, 2:27pm UTC](https://community.dynatrace.com/t/extracting-metrics-from-prometheus-endpoint/35117/1 "2022-05-11T14:27:27Z")

</div>

Hi

I am trying to get confluent metrics from Prometheus.

I saw them in the documentation ([https://www.dynatrace.com/support/help/extend-dynatrace/extensions20/data-sources/prometheus-extensions/prometheus-schema-reference)](https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dynatrace.com%2Fsupport%2Fhelp%2Fextend-dynatrace%2Fextensions20%2Fdata-sources%2Fprometheus-extensions%2Fprometheus-schema-reference)&data=05%7C01%7Cgofman.anatoly%[40il.zim.com](http://40il.zim.com)%7Cf328fa9cf7fa4718d2d708da327295a0%7Cc3debccf0f644fc98686edeedbe9f513%7C0%7C0%7C637877764954814690%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=agTA0j6HeRVBsvxvjwPe8k0c%2BJ0J2rcL4KatfZ441V0%3D&reserved=0)&nbsp;that we can either use&nbsp;/metrics in the URL as the endpoint, or&nbsp;/api/v1/targets

Currently, I am having issues with my /metrics endpoint, so I wanted to know how I can extract the same metrics using&nbsp;/api/v1/targets? Is that possible or does it return different data than the metrics I am looking for?

Thanks in advance

Anatoly.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 11, 2023, 3:07pm UTC](https://community.dynatrace.com/t/extracting-metrics-from-prometheus-endpoint/35117/2 "2023-01-11T15:07:03Z")

</div>

[@gofman\_anatoly](https://community.dynatrace.com/user/12441)&nbsp;this is a new one for me. Are you still having the issue? If you were able to resolve it could you please share with the community what you did to resolve it?

---

<div class="post-metadata">

**Author:** ![gofman\_anatoly](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gofman\_anatoly](https://community.dynatrace.com/u/gofman_anatoly)\
**Post date:** [January 18, 2023, 12:43pm UTC](https://community.dynatrace.com/t/extracting-metrics-from-prometheus-endpoint/35117/3 "2023-01-18T12:43:43Z")

</div>

Hi&nbsp;[@ChadTurner](https://community.dynatrace.com/user/14877)

We stopped using our custom extension and now working with Confluent Kafka extension provided by Dynatrace.

Best Regards

Anatoly.

---

<div class="post-metadata">

**Author:** ![kalaivani](https://avatars.discourse-cdn.com/v4/letter/k/4da419/32.png) [@kalaivani](https://community.dynatrace.com/u/kalaivani)\
**Post date:** [August 23, 2023, 8:09am UTC](https://community.dynatrace.com/t/extracting-metrics-from-prometheus-endpoint/35117/4 "2023-08-23T08:09:18Z")

</div>

Hi&nbsp;[@gofman\_anatoly](https://community.dynatrace.com/user/12441)&nbsp;- Could you please share the details about the Confluent Kafka extension by Dynatrace, We are trying to write the Confluent extension using prometheus exporter.
