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

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