Question:
I have developed a Dynatrace Custom Extension 2.0 which is based on Python and it is running successfully. However, I noticed that the metadata of the metrics sent by the extension has:
Units: Unspecified
Entity: Unknown
I want to define the unit of the metric and map the entity type directly within the extension itself, rather than manually configuring them in the Dynatrace UI.
Key Questions:
1.How can I specify the unit of a metric inside the extension YAML or Python script?
2.How can I map an entity type (e.g., CUSTOM_DEVICE, HOST, PROCESS_GROUP) directly in the extension to ensure correct association?
3.When I manually configured the entity details in the Dynatrace UI, I experienced “Unknown Custom Devices.” How can I avoid this and ensure the device gets its correct name?
What I Have Tried:
I have defined units in the metadata section of the YAML file, but the metrics are still showing as “unspecified.” I also tried mapping the entity type but faced unknown devices naming convention for the custom device instead of it’s actual name.
Looking for Guidance On:
Best practices for defining metric units
How to ensure entity mapping works correctly
Avoiding “Unknown Custom Devices” in the Dynatrace UI