# Display Kubernetes version in a dashboard

**URL:** <https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, dynatrace-saas, kubernetes, infrastructure-monitoring\
**Created:** [November 1, 2023, 11:51am UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403 "2023-11-01T11:51:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandrumarin](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alexandrumarin](https://community.dynatrace.com/u/alexandrumarin)\
**Post date:** [November 1, 2023, 11:51am UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403/1 "2023-11-01T11:51:36Z")

</div>

We would like to build a dashboard that supports the Infra team, where we show the Kubernetes version for each cluster so that it’s easier for them to manage their rollout, check if there are issues with a new deployment and so on…

Unfortunately until now we did not manage to see a Kubernetes metric or how to display this in a dashboard tile

We are using Dynatrace SaaS&nbsp;1.278.65.20231023-153505

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 1, 2023, 1:20pm UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403/2 "2023-11-01T13:20:30Z")

</div>

Hi&nbsp;[@alexandrumarin](https://community.dynatrace.com/user/68382)

I do not know of any way to pin the Kubernetes version on the dashboard. The version can be found in properties of each cluster under the Kubernetes tab:

 ![Zrzut ekranu 2023-11-1 o 13.55.05.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/2/22ce6d12d4c0c0da70a2d35cbe5259228c6dce56.png)

Generally, dashboards are based on metrics and their dimensions, and it is not possible to extract the properties and add them to the dashboard.

Here are all the metrics for Kubernetes that are available in DT (for classic and Grail-based dashboards):

> **[Monitor Kubernetes/OpenShift metrics](https://docs.dynatrace.com/docs/observe/infrastructure-observability/container-platform-monitoring/kubernetes-monitoring/monitor-metrics-kubernetes)**
>
> Available metrics for monitoring Kubernetes/OpenShift clusters

You can try using Metric Ingest to upload the version number from Kubernetes and save it as a metric in DT (this requires some programming work, though).&nbsp;However, it will be easiest to teach the team how to check it in DT.

Radek

---

<div class="post-metadata">

**Author:** ![alexandrumarin](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alexandrumarin](https://community.dynatrace.com/u/alexandrumarin)\
**Post date:** [November 1, 2023, 1:41pm UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403/3 "2023-11-01T13:41:06Z")

</div>

Thank you for the fast response Radek, but the team handles more than 200 clusters and thus manually checking each one is not going to make their life easier

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![alexandrumarin](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alexandrumarin](https://community.dynatrace.com/u/alexandrumarin)\
**Post date:** [November 1, 2023, 1:47pm UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403/4 "2023-11-01T13:47:50Z")

</div>

Do you have any example or lead on the Metric Ingest solution as, in the end might be an option the team might explore?

Thanks,

Alex

---

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [November 1, 2023, 3:02pm UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403/5 "2023-11-01T15:02:19Z")

</div>

Hi&nbsp;[@alexandrumarin](https://community.dynatrace.com/user/68382), it is not a perfect auto-tag rule, but this is the only way I could figure out how to do it at the moment. The downside: you’d have to set up multiple tag rules to cover all the k8s cluster versions and you’d have to maintain them, but at least you’ll have a tag that can be used for filtering.

Perhaps someone out there has a better, cleaner way of handling this, or hopefully the optional tag value and/or k8s version would be options in tag rules in the near future.

 ![andre_vdveen_1-1698849332641.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4851a76aa1bc9f33b4d341d6154c8357b82eaa77.png)

The tag can then be used with the K8s Node Count metric; deselect the _Kubernetes: Node count_ column to only display the cluster name.

 ![andre_vdveen_1-1698851068648.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/9/f99b94c60d97e5988fcdc9e00daa5fc8cb013b5f.png)

The result on a dashboard:

 ![andre_vdveen_0-1698850919112.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/8/98057b5f52b61e454a35da3360dca864c09a3010.png)

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 1, 2023, 4:23pm UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403/6 "2023-11-01T16:23:49Z")

</div>

I agree that it can be approached this way, but as you point out it requires work to maintain the configuration. For large environments this can be a problem.

---

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [November 6, 2023, 10:57am UTC](https://community.dynatrace.com/t/display-kubernetes-version-in-a-dashboard/42403/7 "2023-11-06T10:57:41Z")

</div>

Maybe not the answer you are currently looking for if you need to buildup this using the dashboard classic.  
But it seems that this is doable with the new dashboard section where you can utilize grail to query the information out.

> **[Dashboards](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new)**
>
> Create interactive, customizable views to visualize, analyze, and share your observability data in real time.

The query itself could be something like this and by quick test up it’s doing the trick you are looking for.

fetch dt.entity.kubernetes\_cluster  
| fieldsAdd entity.name, kubernetesVersion  
| fields kubernetesVersion, entity.name  
| sort kubernetesVersion
