# Tagging for services & processes under a namespace with a particular tag

**URL:** <https://community.dynatrace.com/t/tagging-for-services-processes-under-a-namespace-with-a-particular-tag/54241>\
**Category:** Open Q&A\
**Tags:** tagging\
**Created:** [November 28, 2025, 7:28am UTC](https://community.dynatrace.com/t/tagging-for-services-processes-under-a-namespace-with-a-particular-tag/54241 "2025-11-28T07:28:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansonsgoh](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ansonsgoh](https://community.dynatrace.com/u/ansonsgoh)\
**Post date:** [November 28, 2025, 7:28am UTC](https://community.dynatrace.com/t/tagging-for-services-processes-under-a-namespace-with-a-particular-tag/54241/1 "2025-11-28T07:28:38Z")

</div>

How to tag all services & processes that fall under a namespace with a particular tag

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [November 28, 2025, 7:39am UTC](https://community.dynatrace.com/t/tagging-for-services-processes-under-a-namespace-with-a-particular-tag/54241/2 "2025-11-28T07:39:22Z")

</div>

Hi,

I would recommend you checking Kubernetes placeholder in automatic tagging rules:

 ![AntonPineiro_0-1764315555470.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9e18c0e4ae9bf89d23a4dc0d6a0963740c13b1e8.png)

Best regards

---

<div class="post-metadata">

**Author:** ![ansonsgoh](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ansonsgoh](https://community.dynatrace.com/u/ansonsgoh)\
**Post date:** [November 28, 2025, 7:53am UTC](https://community.dynatrace.com/t/tagging-for-services-processes-under-a-namespace-with-a-particular-tag/54241/3 "2025-11-28T07:53:59Z")

</div>

I tried but there is no way for me to specify the K8 namespace tag under condition.&nbsp; Basically, what we need to have tag on all services and processes under the namespace with a specific tag.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [November 28, 2025, 8:52am UTC](https://community.dynatrace.com/t/tagging-for-services-processes-under-a-namespace-with-a-particular-tag/54241/4 "2025-11-28T08:52:29Z")

</div>

Hi,

Check under rules conditions, you have too many Kubernetes options:

 ![AntonPineiro_0-1764319925017.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/f/6f054aa8b3f931d7f0b8d7d9ee281b99d3a64ff0.png)

And you can apply that for processes, services and another entities.

Best regards

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 28, 2025, 9:24am UTC](https://community.dynatrace.com/t/tagging-for-services-processes-under-a-namespace-with-a-particular-tag/54241/5 "2025-11-28T09:24:45Z")

</div>

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

OR If I understand your request correctly, when you create a new auto tag first you should tag the PGs which ones under the namespace with your particular existing tag

type(“PROCESS\_GROUP”),toRelationships.isNamespaceOfPg(type(CLOUD\_APPLICATION\_NAMESPACE),tag(“your particular existing tag”))

When your PGs are tagged with the new auto tag you can use these onse for the PGIs and Services:

type(“PROCESS\_GROUP\_INSTANCE”),fromRelationships.isInstanceOf(type(PROCESS\_GROUP),tag(“your required new tag”))

type(“SERVICE”),fromRelationships.RunsOn(type(PROCESS\_GROUP),tag(“your required new tag”))

I hope it helps.

Best regards,

János
