11 Sep 2025
08:23 PM
- last edited on
12 Sep 2025
07:35 AM
by
MaciejNeumann
Hello everyone. We have metrics we're sending over to dynatrace and have metric events set up for them. Without using the new davis anomaly detector is there a way to link these metric events to an entity id? I tried using dt.source.entity in the metric event but it didn't link it to the entity here's the impacted entity from the problem card. I want it to be tied to that application ID
thanks!
Solved! Go to Solution.
15 Sep 2025 01:50 PM
Did you use dt.source.entity or dt.source_entity? If you use the 2nd one you should be able to link it to the right entity.
15 Sep 2025 02:17 PM
no these fields are not present for this metric, it has no dynatrace specific metrics
15 Sep 2025 02:26 PM
In the screenshot you added I see an Web Application ID. How is that set? If you use that ID in dt.source_entity (not dt.source.entity) in your metric event, it should correlate to the right entity.
If you want your metric to create it's own entity, you could investigate this.
You can use the dimensions field from an metric to inject custom entities in the platform, metric events will then automatically get the right dt.source_entity.
15 Sep 2025 02:31 PM
hmm good point idk how that's being set. it was created using the user action custom metrics:
https://docs.dynatrace.com/docs/observe/digital-experience/web-applications/additional-configuration...
but when I go to add a dimension I don't have the option to do dt.source_entity or dt.source.entity
closest thing is dt.event.source but I've tried using it to no avail
15 Sep 2025 03:11 PM
Could you check where that WEB application metric is set? It's probably and dimension on the metric. There is a value available called: internalApplicationId in the user action properties:
If you look in the data explorer you can find it. Than you can just refer to dt.source_entity in the metric event (it works, no worries).
as you can see this correlates! 🙂
15 Sep 2025 03:17 PM
Thank you so much @michiel_otten !! this will definitely work. I see now looking at the metric we don't have internalApplicationId as a dimension. I will work to put internalApplicationId as a dimension across our metrics and add the key value in the metric event. Can't thank you enough!
15 Sep 2025 03:23 PM
Your very welcome! Good luck 🙂
P.s. the dt.source_entity works for all metric events but has to be correlated against a ENTITY ID not a name