# Tag Container Group Instance by Namespace

**URL:** <https://community.dynatrace.com/t/tag-container-group-instance-by-namespace/40424>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [June 28, 2023, 1:58am UTC](https://community.dynatrace.com/t/tag-container-group-instance-by-namespace/40424 "2023-06-28T01:58:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [June 10, 2025, 2:24pm UTC](https://community.dynatrace.com/t/tag-container-group-instance-by-namespace/40424/6 "2025-06-10T14:24:44Z")

</div>

With a bit of help, this worked for me in case anyone needs it&nbsp;👍

type(CONTAINER\_GROUP),toRelationships.isInstanceOf(type(CONTAINER\_GROUP\_INSTANCE),fromRelationships.isCgiOfNamespace(type(CLOUD\_APPLICATION\_NAMESPACE),entityName.startsWith(“\<NAMESPACE NAME\>”)))

---

_[View the full topic](https://community.dynatrace.com/t/tag-container-group-instance-by-namespace/40424)._
