# Node-name based Kubernetes node ID calculation

**URL:** <https://community.dynatrace.com/t/node-name-based-kubernetes-node-id-calculation/43566>\
**Category:** Voices\
**Tags:** news, kubernetes\
**Created:** [January 11, 2024, 1:29pm UTC](https://community.dynatrace.com/t/node-name-based-kubernetes-node-id-calculation/43566 "2024-01-11T13:29:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Jelitsch1](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Peter\_Jelitsch1](https://community.dynatrace.com/u/Peter_Jelitsch1)\
**Post date:** [January 11, 2024, 1:29pm UTC](https://community.dynatrace.com/t/node-name-based-kubernetes-node-id-calculation/43566/1 "2024-01-11T13:29:52Z")

</div>

With release 1.289 we introduced a new way to calculate the ID for Kubernetes node monitored entities for **new tenants**. This article explains the reasons behind the new calculation, minimum version requirements, visible effects, as well as some background information.  
Update: We decided last minute to apply the new node-name based ID calculation only for new tenants. If you experience the problem described below with the old ID calculation, please approach support.

# Why is there the new node-name based ID calculation?

Up to release 1.288 we used the nodes’ **systemUUID** to generate the ID for Kubernetes node entities in Dynatrace. We discovered that there are situations (i.e. OpenShift clusters running on a PPC64LE architecture), where the systemUUID is not unique. That caused that not all nodes were visible in the user interface. Moreover, if the same systemUUID existed on different clusters, it was not predictable, to which cluster such a node would have been assigned. By converting the calculation, we are also **future-proof** when it comes to **integrating other data sources** such as Open Ingest.

Therefore we decided to implement an ID calculation **based on the Kubernetes node name** and the **cluster id**. As the name identifies a node within one Kubernetes cluster, two nodes cannot have the same name at the same time [[See Nodes | Kubernetes](https://kubernetes.io/docs/concepts/architecture/nodes/#node-name-uniqueness)]. Thus in combination of the node name and the cluster id the uniqueness of the calculated IDs is guaranteed. This calculation method is effective for new tenants only and can be enabled for existing tenants upon request.

# Is a Kubernetes cluster affected?

If there are less Kubernetes node entities visible in Dynatrace than there actually are in the Kubernetes cluster, non-unique systemUUIDs are likely the problem.

List the **systemUUIDs** of the Kubernetes cluster:

```auto
kubectl get nodes -o=json | jq | grep systemUUID | sort

```

Get the **number of nodes** :

```auto
kubectl get nodes -o=json | jq | grep systemUUID | sort | wc -l

```

Get the **number of _unique_ systemUUIDs** :

```auto
kubectl get nodes -o=json | jq | grep systemUUID | sort | uniq | wc -l

```

If the number of nodes and the number of unique systemUUIDs does not match, the cluster would have been affected by the incorrect node ID calculation. In such a case **please approach support for assistance**.

We have just noticed, that there are variants of Kubernetes installations (in the specific case Alibaba Cloud), which do not provide a systemUUID. Although **Alibaba Cloud is not officially supported** by Dynatrace, it is worth a try to switch to the alternative node-Id-calculation. Please approach support for assistance in that case, too.

# What are the impacts of the new ID calculation?

## 1. New KUBERNETES\_NODE entities

**During the transition** of the calculation method, you will see **twice as many Kubernetes nodes**. This is **expected behavior**. As their names will remain the same, you will see a pair of Kubernetes nodes entities for each node name,&nbsp; where one ceases to be monitored when the transition took place, whereas the second entity starts to be become visible and be used as a reference for metrics, events, logs lines, etc.

 ![2nd-gen-node-analysis-showing-old-and-new-nodes-highlighted.png](https://global.discourse-cdn.com/dynatrace/original/1X/86de6235c379530efb61abf79f3987e0ac62e7c7.png)

With the following DQL query you can see those duplicate nodes in Grail™:

```auto
fetch dt.entity.kubernetes_node, from:now() - 24h<br>| fieldsAdd clustered_by[dt.entity.kubernetes_cluster], lifetime<br>| filter clustered_by[dt.entity.kubernetes_cluster] == "<a KUBERNETES_CLUSTER id>"<br>| sort entity.name asc, lifetime asc

```

 ![dql-query-showing-old-and-new-nodes-highlighted.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9f72b40bc0a532ed532488f8ccb867568544e85b.png)

## 2. Monitoring gap

Changing the node id calculation method requires a renegotiation of which ActiveGate will be responsible for monitoring the Kubernetes cluster. This gap could last for 1 to 3 minutes and is **expected behavior**.

In the following example you see the gap and will recognize that there are two names with the same node name. The slightly different color in the chart indicates that two different Kubernetes node entities (with the same name) are stored to the metric.

 ![dexp-metric-with-node-dimension-highlighted.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7f2681ff98001fb867d7a022c0973688f99f1d6d.png)

## 

3. Metric events etc. based on the Kubernetes node entity ID

If you have any metric events based on the entity ID, those events won’t work anymore.&nbsp; Instead of using the entity ID **we recommend using the node name in combination with the cluster id** , instead. To avoid gaps in those metric events, we recommend changing such events. (Learn more about metric events [here](https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/metric-events).)

# Minimum version requirements

- ActiveGate \>= 1.273
- OneAgent \>= 1.272

## What happens if the requirements are not met?

- Some problems might point to a non-existent KUBERNETES\_NODE entity, if the ActiveGate is too old.
- No relationship between the HOST entities and the KUBERNETES\_NODE entities are stored, if the OneAgent is too old or a not longer supported Dynatrace Operator version is used.

# Opt-In

If you experience missing Kubernetes node entities as described above and the version requirements are met, please contact Support, how can assist you in opting in for the new node-name based node ID calculation. Note, that this opt-in affect the entire tenant.

# Troubleshooting

Problems related to the node-name based ID calculation could e.g. be:

- broken links to node entities
- no node information available where the information is expected

In this case, please verify whether the **minimum version requirements** are met.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [November 4, 2024, 12:09pm UTC](https://community.dynatrace.com/t/node-name-based-kubernetes-node-id-calculation/43566/2 "2024-11-04T12:09:10Z")

</div>

Thanks&nbsp;[@Peter\_Jelitsch1](https://community.dynatrace.com/user/40719)&nbsp;for organized information

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [December 19, 2024, 9:42am UTC](https://community.dynatrace.com/t/node-name-based-kubernetes-node-id-calculation/43566/3 "2024-12-19T09:42:10Z")

</div>

Thanks&nbsp;[@Peter\_Jelitsch1](https://community.dynatrace.com/user/40719)&nbsp;.

Very Helpful.

---

<div class="post-metadata">

**Author:** ![BNS\_AGR](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@BNS\_AGR](https://community.dynatrace.com/u/BNS_AGR)\
**Post date:** [July 23, 2025, 6:53pm UTC](https://community.dynatrace.com/t/node-name-based-kubernetes-node-id-calculation/43566/4 "2025-07-23T18:53:10Z")

</div>

I may be missing something but I don’t see how to perform the calculation for the cluster id based on the criteria you’re explaining here. Is that done automatically by Dynatrace? if so, where can I get it?

---

<div class="post-metadata">

**Author:** ![Peter\_Jelitsch1](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Peter\_Jelitsch1](https://community.dynatrace.com/u/Peter_Jelitsch1)\
**Post date:** [July 24, 2025, 5:20am UTC](https://community.dynatrace.com/t/node-name-based-kubernetes-node-id-calculation/43566/5 "2025-07-24T05:20:29Z")

</div>

Hi, BNS\_AGR, thanks for your question.

We use the UID of the kube-system namespace to calculate the cluster ID. Why? Because like the Force, the kube-system namespace is always present—binding the cluster together. Its UID is as unique as a lightsaber crystal, forged once and never duplicated.

Now, if you somehow manage to create two clusters with the same kube-system UID… either you’ve unlocked a new Sith power or bent Kubernetes to your will. In either case, the next round of blue milk is on me.

Regards, PJ.
