# 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:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [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/1 "2024-12-21T11:51:31Z")

</div>

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

2. If we have to check the Host name for the Database,

then how to check?

where to check?

3. What journry dashboard ?

---

<div class="post-metadata">

**Author:** ![Esam\_Eid](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/esam_eid/32/167_2.png) [@Esam\_Eid](https://community.dynatrace.com/u/Esam_Eid)\
**Post date:** [December 21, 2024, 1:30pm UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/2 "2024-12-21T13:30:58Z")

</div>

You can add it to the management zone using the database service name

if you install the oneagent in the db host. Then from the hosts menu you can find it. But if you install extension and configured the database monitoring most probably the extension dashboard will show you all the needed details

---

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [December 23, 2024, 6:49am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/3 "2024-12-23T06:49:36Z")

</div>

Hi, i have found in host db name with - Process name as -

# MSSQL13.MSSQLSERVER

then i have added the host in management zone.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 23, 2024, 7:14am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/4 "2024-12-23T07:14:59Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

As simple as that:  
**For Tagging rules:**

- You will create automatically applied tags, it will act as a label for the monitoring entities for entity differentiation.
- [Define and apply tags — Dynatrace Docs](https://docs.dynatrace.com/docs/manage/tags-and-metadata/setup/how-to-define-tags)
- [Best practices and recommendations for tagging — Dynatrace Docs](https://docs.dynatrace.com/docs/manage/tags-and-metadata/basic-concepts/best-practices-and-recommendations-for-tagging)
- [https://www.youtube.com/watch?v=fcVKuSvhbpU](https://www.youtube.com/watch?v=fcVKuSvhbpU)

**Tips && Tricks:**

- [https://www.youtube.com/watch?v=kSsbQngFDiE](https://www.youtube.com/watch?v=kSsbQngFDiE)

**For Management Zone:**

- You will create management zone rules to add the required monitored entities and limit the access as per the required permissions according to the RBAC rule.
- [Management zones (Dynatrace Classic) — Dynatrace Docs](https://docs.dynatrace.com/docs/manage/identity-access-management/permission-management/management-zones)

Best Practices:

- [Best practices for scaling tagging and management-zone rules — Dynatrace Docs](https://docs.dynatrace.com/docs/manage/tags-and-metadata/basic-concepts/best-practice-tagging-at-scale)

Hoping it helps.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 23, 2024, 7:20am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/5 "2024-12-23T07:20:01Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

Regarding the database service monitoring:

- It’s detected && monitored in Dynatrace through the app services calls that means when the monitored entities call a database it will be detected and monitored.
- Upon detection \> Under application observability \> database services \> select the service of your interest \> under properties && tags you will find full details.

References:

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

Analyze DB:

- [https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases/database-services-classic/analyze-database-services](https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases/database-services-classic/analyze-database-services)
- [Analyze database services — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases/database-services-classic/analyze-database-services-new)

Hoping it adds value.

KR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 23, 2024, 7:21am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/6 "2024-12-23T07:21:55Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

For detailed info about DB monitoring in Dynatrace either classic or new Dynatrace, feel free to delve into:

- [https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases](https://docs.dynatrace.com/docs/observe/applications-and-microservices/databases)

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 23, 2024, 7:24am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/7 "2024-12-23T07:24:29Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

Regarding the Dashboards and visualizations in Dynatrace, feel free to review:

- [Dashboards — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new)
- [Create and edit Dynatrace dashboards — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-classic/dashboards/create-dashboards)
- [Dashboards Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-classic)

Hoping it helps.

KR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 23, 2024, 7:29am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/8 "2024-12-23T07:29:37Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

- You can also check the service flow from the services that are calling the DB.
- You can also check the [backtrace](https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/analysis/service-backtrace) as well for the DB.

**Ref** :

- [Service flow in Services Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/analysis/service-flow)
- [Service flow metrics in Services Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/analysis/service-flow/service-flow-metrics)

BR,

Peter

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [December 23, 2024, 8:56am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/9 "2024-12-23T08:56:27Z")

</div>

Using the entity selector you can do something like this  
**type(SERVICE),databaseName.exists(),toRelationships.calls(type(SERVICE),tag(XXXXX))**

"database services called by services with tag XXXXX)

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 23, 2024, 9:07am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/10 "2024-12-23T09:07:43Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

- you can use the provided entity selector provided by&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;in management zone rules.
- Regarding the db tagging rules, you can define it based on database service technology or database service name, .. more options to select from according to the actual monitored DBs properties under properties && tags section.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [December 23, 2024, 9:17am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/11 "2024-12-23T09:17:59Z")

</div>

Got It, Thanks,

[@Peter\_Youssef](https://community.dynatrace.com/user/51369)&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;[@Esam\_Eid](https://community.dynatrace.com/user/65475)

I am currently facing issue as: - Installed one agent on window db host with running process name -&nbsp;MSSQL13.MSSQLSERVER but still not getting any database service names at -&nbsp;Under application observability \> database services \>

How can I make it appears? do i need extension to get data from DB to Dynatrace as database service,

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [December 23, 2024, 9:19am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/12 "2024-12-23T09:19:55Z")

</div>

Carefully read this doc entry

[https://docs.dynatrace.com/docs/shortlink/database-detection#how-database-activity-is-monitored](https://docs.dynatrace.com/docs/shortlink/database-detection#how-database-activity-is-monitored)

_“When OneAgent is installed on the host that runs your application server, Dynatrace ensures that all database statements are logged, as long as deep monitoring is active for the calling processes and the database request is appended to an existing PurePath® distributed trace. As soon as the first calls to your database are monitored, the&nbsp; **Databases** &nbsp;page is updated with the new database entry.”_

---

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [December 23, 2024, 9:59am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/13 "2024-12-23T09:59:54Z")

</div>

I am getting the distributed traces for my application and webservices -

 ![Adi_10_0-1734947932374.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/9/6961cb88bb11ea218b6888c390da7a8902adfe58.png)

but service type database is empty getting no result for the selected management zone

 ![Adi_10_2-1734947979881.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/6d844629ac3de656d042fa4c664bb9e09f3f9400.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 23, 2024, 11:15am UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/14 "2024-12-23T11:15:31Z")

</div>

Hi&nbsp;[@Adi\_10](https://community.dynatrace.com/user/81707)

Kindly check the storage and retention settings on the monitored environment to ensure there is no issue with the data retention as per the attached example:

 ![2024-12-23_14h33_20.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/4/14f6f55f59e3bd5f90695a99e915a3e405354fa0.png)

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Adi\_10](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Adi\_10](https://community.dynatrace.com/u/Adi_10)\
**Post date:** [December 23, 2024, 1:28pm UTC](https://community.dynatrace.com/t/how-can-we-configure-the-databases-in-the-management-zone-with-and-without-tags/49470/15 "2024-12-23T13:28:02Z")

</div>

Checked no issues here at monitoring environment, as other management zones are getting the data for DB services

---

<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)
