cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

link custom metric event to entity

calfanonerey
Participant

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!

calfanonerey_0-1757618579026.png

 

7 REPLIES 7

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.

#Performance matter!

no these fields are not present for this metric, it has no dynatrace specific metrics

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.

#Performance matter!

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

calfanonerey_0-1757943067963.png

 

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:

michiel_otten_0-1757945146085.png

 



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

michiel_otten_1-1757945318816.png

 

michiel_otten_2-1757945339510.png



michiel_otten_3-1757945466319.png


as you can see this correlates! 🙂

#Performance matter!

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!

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 

#Performance matter!

Featured Posts