<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Define Metric Units and Map Entities in Dynatrace Custom Extension 2.0 in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/How-to-Define-Metric-Units-and-Map-Entities-in-Dynatrace-Custom/m-p/269460#M5912</link>
    <description>&lt;P&gt;For the units, this is defined in the metrics section at root of the extension yaml document, since you haven't provided any of what you wrote their I don't know if there is some issue with what was defined.&lt;/P&gt;
&lt;P&gt;For topology you define that in the extension yaml as well which sets: &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-topology" target="_blank"&gt;https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-topology&lt;/A&gt;. This creates custom topology rules in the environment that will 'detect' entities from the incoming metric data points that match these rules. You don't need to do anything for the entities 'manually' in the UI. I'm not sure what you are doing so I don't know why you would be seeing unknown custom devices.&lt;/P&gt;
&lt;P&gt;I would recommend going through our RabbitMQ example: &lt;A href="https://developer.dynatrace.com/develop/dynatrace-extensions-vscode/guides/create_extension/" target="_blank"&gt;https://developer.dynatrace.com/develop/dynatrace-extensions-vscode/guides/create_extension/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The source, including the YAML is available here: &lt;A href="https://github.com/dynatrace-extensions/python-rabbitmq/blob/main/extension/extension.yaml" target="_blank"&gt;https://github.com/dynatrace-extensions/python-rabbitmq/blob/main/extension/extension.yaml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can check to see if how you are doing things matches how it is done in this extension.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 18:23:50 GMT</pubDate>
    <dc:creator>JamesKitson</dc:creator>
    <dc:date>2025-02-06T18:23:50Z</dc:date>
    <item>
      <title>How to Define Metric Units and Map Entities in Dynatrace Custom Extension 2.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-Define-Metric-Units-and-Map-Entities-in-Dynatrace-Custom/m-p/269371#M5908</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;BR /&gt;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:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Units:&lt;/STRONG&gt; &lt;FONT color="#FF0000"&gt;Unspecified&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;Entity:&lt;/STRONG&gt; &lt;FONT color="#FF0000"&gt;Unknown&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Key Questions:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;1.How can I specify the unit of a metric inside the extension YAML or Python script?&lt;BR /&gt;2.How can I map an entity type (e.g., &lt;FONT color="#FF0000"&gt;CUSTOM_DEVICE, HOST, PROCESS_GROUP&lt;/FONT&gt;) directly in the extension to ensure correct association?&lt;BR /&gt;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?&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;What I Have Tried:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;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&amp;nbsp; unknown devices naming convention for the custom device instead of it's actual name.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Looking for Guidance On:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;Best practices for defining metric units&lt;BR /&gt;How to ensure entity mapping works correctly&lt;BR /&gt;Avoiding "Unknown Custom Devices" in the Dynatrace UI&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 12:09:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-Define-Metric-Units-and-Map-Entities-in-Dynatrace-Custom/m-p/269371#M5908</guid>
      <dc:creator>kpurimitla</dc:creator>
      <dc:date>2025-02-10T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Define Metric Units and Map Entities in Dynatrace Custom Extension 2.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-to-Define-Metric-Units-and-Map-Entities-in-Dynatrace-Custom/m-p/269460#M5912</link>
      <description>&lt;P&gt;For the units, this is defined in the metrics section at root of the extension yaml document, since you haven't provided any of what you wrote their I don't know if there is some issue with what was defined.&lt;/P&gt;
&lt;P&gt;For topology you define that in the extension yaml as well which sets: &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-topology" target="_blank"&gt;https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-topology&lt;/A&gt;. This creates custom topology rules in the environment that will 'detect' entities from the incoming metric data points that match these rules. You don't need to do anything for the entities 'manually' in the UI. I'm not sure what you are doing so I don't know why you would be seeing unknown custom devices.&lt;/P&gt;
&lt;P&gt;I would recommend going through our RabbitMQ example: &lt;A href="https://developer.dynatrace.com/develop/dynatrace-extensions-vscode/guides/create_extension/" target="_blank"&gt;https://developer.dynatrace.com/develop/dynatrace-extensions-vscode/guides/create_extension/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The source, including the YAML is available here: &lt;A href="https://github.com/dynatrace-extensions/python-rabbitmq/blob/main/extension/extension.yaml" target="_blank"&gt;https://github.com/dynatrace-extensions/python-rabbitmq/blob/main/extension/extension.yaml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can check to see if how you are doing things matches how it is done in this extension.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 18:23:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-to-Define-Metric-Units-and-Map-Entities-in-Dynatrace-Custom/m-p/269460#M5912</guid>
      <dc:creator>JamesKitson</dc:creator>
      <dc:date>2025-02-06T18:23:50Z</dc:date>
    </item>
  </channel>
</rss>

