13 Jan 2026
04:46 PM
- last edited on
14 Jan 2026
07:53 AM
by
MaciejNeumann
I’m looking for guidance on creating a DQL query for as dashboard that can:
The goal is to have a clear view of service relationships and understand how alerts propagate across dependencies. If anyone has an example query or best practices for achieving this in Dynatrace, I’d greatly appreciate your input.
Here my attempt look for at problem in upstream services.
fetch dt.entity.service
//|filter in(id, "SERVICE-24844D84E75DDE51", "SERVICE-96A302DC14A0CCE9") // dashboard varaible
|fieldsAdd upstream_ids = called_by[dt.entity.service]
|expand upstream_id = upstream_ids // upstream_id = Caller_id
// Get associated upstream service
| lookup [fetch dt.entity.service | fieldsAdd managementZones ], sourceField:upstream_id, lookupField:id, executionOrder:leftFirst, prefix: "Caller_"
// Get problem assoicated(impacting or affecting) these upstream services
// this is where I need help, I'm getting null
| lookup [fetch dt.davis.problems ], //| filter affected_entity_types == array(called_by[dt.entity.service]) | expand affected_entity_ids ]
sourceField:Caller_id, lookupField:id, executionOrder:leftFirst, prefix: "Alert_"
| fields managementZones, entity.name, id, Caller_id,
Caller_entity.name,
Caller_managementZones, Alert_name, Alert_display_id
|sort entity.name
Featured Posts