# How can we configure the databases in the management zone, with and without tags?

**URL:** <https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470>\
**Category:** Open Q&A\
**Tags:** databases, management-zones, tagging\
**Created:** [December 21, 2024, 11:51am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470 "2024-12-21T11:51:31Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Abidyaseen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/abidyaseen/32/19726_2.png) [@Abidyaseen](https://community.dynatrace.com/u/Abidyaseen)\
**Post date:** [February 3, 2025, 7:07am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/16 "2025-02-03T07:07:10Z")

</div>

**type(SERVICE),databaseName.exists(),toRelationships.calls(type(SERVICE),tag(“XXXXX”))**

the condition defines access rules based on entity relationships. Let’s break it down:

1. **type(SERVICE)** – Filters entities to only include those of type “SERVICE.”
2. **databaseName.exists()** – Ensures that the databaseName attribute exists (i.e., applies only to services linked to a database).
3. **toRelationships.calls(type(SERVICE),tag(“XXXXX”))** – Checks if the service calls another service that has the tag “XXXXX.”

this is simple rule to put in mgt zones and tags that will help you to add your db to related ones you can see more details on the below link

[https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases/database-services-classic/how-database-activity-is-monitored#how-database-activity-is-monitored](https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases/database-services-classic/how-database-activity-is-monitored#how-database-activity-is-monitored)

---

_[View the full topic](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470)._
