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

Extension to get the metric from Prometheus exporter

GiovanniCastro
Dynatrace Enthusiast
Dynatrace Enthusiast

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

 

1 REPLY 1

JamesKitson
Dynatrace Guru
Dynatrace Guru

All labels are automatically created as dimensions by the data source: 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?

Featured Posts