# Get the node tags for custom Prometheus extension

**URL:** <https://community.dynatrace.com/t/get-the-node-tags-for-custom-prometheus-extension/50501>\
**Category:** Extensions\
**Tags:** dynatrace-managed, tagging, topology, extensions\
**Created:** [February 28, 2025, 9:17am UTC](https://community.dynatrace.com/t/get-the-node-tags-for-custom-prometheus-extension/50501 "2025-02-28T09:17:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danijela](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@danijela](https://community.dynatrace.com/u/danijela)\
**Post date:** [February 28, 2025, 9:17am UTC](https://community.dynatrace.com/t/get-the-node-tags-for-custom-prometheus-extension/50501/1 "2025-02-28T09:17:34Z")

</div>

I have custom extension for Prometheus exporter and now I am trying to create topology. Metrics are related to pacemaker cluster.

From the metrics that I am getting from Prometheus I have nodes and their ip addresses, but no information about cluster.

I am trying to create the topology and relationship: cluster - node, but in metrics I don’t have cluster name.&nbsp;  
What I realized is that I have it on the node tag that is monitored by OneAgent.

Is there any possibility that I can get tag value from the VM (VM is in Azure and the tag is coming from there) and use it in custom extension to set cluster name?
