Extension to get the metric from Prometheus exporter

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:

# 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

All labels are automatically created as dimensions by the data source: Prometheus data source reference — Dynatrace Docs

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?