# Tag Kubernetes Clusters, Workloads, and Pods in Dynatrace for Better Monitoring

**URL:** <https://community.dynatrace.com/t/tag-kubernetes-clusters-workloads-and-pods-in-dynatrace-for-better-monitoring/37817>\
**Category:** Container platforms\
**Tags:** tagging, kubernetes\
**Created:** [December 28, 2022, 3:46pm UTC](https://community.dynatrace.com/t/tag-kubernetes-clusters-workloads-and-pods-in-dynatrace-for-better-monitoring/37817 "2022-12-28T15:46:32Z")\
**Posts on this page:** 1\
**Showing post:** 33

<div class="post-metadata">

**Author:** ![gustavodutra](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gustavodutra/32/35020_2.png) [@gustavodutra](https://community.dynatrace.com/u/gustavodutra)\
**Post date:** [July 29, 2024, 8:35pm UTC](https://community.dynatrace.com/t/tag-kubernetes-clusters-workloads-and-pods-in-dynatrace-for-better-monitoring/37817/33 "2024-07-29T20:35:17Z")

</div>

Hey guys.

All good?

Unfortunately, it is only possible to add tags to pods manually through the Dynatrace API.

Something that should be simple, but unfortunately it isn’t (it could be easier).

I managed it as follows:

**curl -L -X POST ‘https://{environmentid}.live.dynatrace.com/api/v2/tags?entitySelector=type%28CLOUD\_APPLICATION\_INSTANCE%29%2CtoRelationships.isClusterOfCai%28type%28KUBERNETES\_CLUSTER%29%2CentityName.in%28%22{_YOUR\_CLUSTER\_NAME\_HERE_}%22%29%29’ \**  
**-H ‘Authorization: Api-Token {_YOUR\_API\_TOKEN\_HERE_}’ \**  
**-H ‘Content-Type: application/json’ \**  
**--data-raw '{**  
**“tags”: [**  
**{**  
**“key”: “{_YOUR\_TAG\_HERE_}”**  
**}**  
**]**  
**}’**

Entities.write token required, this cURL is based on the CMD.

Now I need to try to create a management zone based on these manual tags.

---

_[View the full topic](https://community.dynatrace.com/t/tag-kubernetes-clusters-workloads-and-pods-in-dynatrace-for-better-monitoring/37817)._
