31 Jan 2022 10:40 AM
Hello,
I have noticed that application with the same same in different environments, also get the same ID in the url's. reference them. This is nice to know.
Does anybody know what the algorithm used here is? This might come in handy!
KR Henk
Solved! Go to Solution.
31 Jan 2022 12:34 PM
In general, the entity ID are generated by some hash algorithm based on the entity identifiers (sorry don't know the algorithm). In the case of an application entity in Dynatrace, it's the name you enter when creating the application in the UI. So if you have created an application of the same name in Dynatrace in different environments, it will create the same entity ID.
You can rename it afterwards, but the entity ID will be always preserved. You can also create an entity using the configuration API with the entity ID of your choice.
31 Jan 2022 12:36 PM
The only App that receive the same id is the default "My Web Application", which is "EA7C4B59F27D43EB".
You mean that you found apps created by detection rules got also same ID on different tenants?
31 Jan 2022 12:43 PM
Hello Dannemca,
I think Julias just answered that, but yes (-;
KR Henk
02 Feb 2022 09:46 AM
Hi @henk_stobbe ,
actually when creating applications through the API you can define the "internal" application ID. I'm doing this on purpose to allow consistent configuration as code for example across multiple Dynatrace environments or clusters. This allows me simple identification of applications.
For example if you want to build and provision dashboards that reference an Application filter or similar.
If one would create applications manually with the UI the ID would be different all the time.
E.g. when POSTing a application detection rule via API you can specify the Application ID:
kr,
Reinhard
02 Feb 2022 09:58 AM
Hi Reinhard,
Perfect addition, only missing the the word Monaco (-;
What is Monaco? | Monaco (dynatrace-oss.github.io)
Thank you!
KR Henk
02 Feb 2022 10:06 AM
Hi @henk_stobbe ,
you are missing the word Monaco because my configuration as code was done way before Monaco was even started. You can consider Monaco as a copy of my idea and implementation - it even has been build at a much larger scale 🙂
I've written an blog article on that even which seems to be removed by Dynatrace now (their own interest maybe?). The Blog article was part 4 of this series, and is mentioned in the last paragraph here.
kr,
Reinhard