# Extension to get the metric from Prometheus exporter

**URL:** <https://community.dynatrace.com/t/extension-to-get-the-metric-from-prometheus-exporter/50416>\
**Category:** Extensions\
**Tags:** azure, prometheus, extensions\
**Created:** [February 24, 2025, 1:59pm UTC](https://community.dynatrace.com/t/extension-to-get-the-metric-from-prometheus-exporter/50416 "2025-02-24T13:59:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiovanniCastro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/giovannicastro/32/27913_2.png) [@GiovanniCastro](https://community.dynatrace.com/u/GiovanniCastro)\
**Post date:** [February 24, 2025, 1:59pm UTC](https://community.dynatrace.com/t/extension-to-get-the-metric-from-prometheus-exporter/50416/1 "2025-02-24T13:59:55Z")

</div>

I am trying to create the extension to get the metric from the Prometheus exporter.

That is the only solution for monitoring the Pacemaker cluster in Azure, where we are running our critical SAP Systems.

Up until now, I am able to see metrics from one specific endpoint, but I need to get the labels, like below:

```auto
# TYPE ha_cluster_pacemaker_nodes gauge
ha_cluster_pacemaker_nodes{node="vmucspscs001",status="dc",type="member"} 0
ha_cluster_pacemaker_nodes{node="vmucspscs001",status="expected_up",type="member"} 1
ha_cluster_pacemaker_nodes{node="vmucspscs001",status="maintenance",type="member"} 0
ha_cluster_pacemaker_nodes{node="vmucspscs001",status="online",type="member"} 1
ha_cluster_pacemaker_nodes{node="vmucspscs001",status="pending",type="member"} 0

```

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [February 24, 2025, 3:05pm UTC](https://community.dynatrace.com/t/extension-to-get-the-metric-from-prometheus-exporter/50416/2 "2025-02-24T15:05:07Z")

</div>

All labels are automatically created as dimensions by the data source: [Prometheus data source reference — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/prometheus-extensions-reference#dimension-value)

Only if filtering is applied in the extension.yaml would some be excluded.

When you chart that metric in the data explorer what dimensions do you see available?
