<?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 How to relate OTel metrics to entity in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-relate-OTel-metrics-to-entity/m-p/292991#M38464</link>
    <description>&lt;P&gt;We have an application instrumented with Dynatrace OneAgent looking to extend data capture. &lt;BR /&gt;They have added OTEL and are forwarding several custom metrics.&amp;nbsp; &lt;BR /&gt;How is the OTEL configured that would enable the metrics to be related to the proper entity?&amp;nbsp; &lt;BR /&gt;They would like to associate with the discovered service entity.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jan 2026 07:49:25 GMT</pubDate>
    <dc:creator>ronmacdonald</dc:creator>
    <dc:date>2026-01-15T07:49:25Z</dc:date>
    <item>
      <title>How to relate OTel metrics to entity</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-relate-OTel-metrics-to-entity/m-p/292991#M38464</link>
      <description>&lt;P&gt;We have an application instrumented with Dynatrace OneAgent looking to extend data capture. &lt;BR /&gt;They have added OTEL and are forwarding several custom metrics.&amp;nbsp; &lt;BR /&gt;How is the OTEL configured that would enable the metrics to be related to the proper entity?&amp;nbsp; &lt;BR /&gt;They would like to associate with the discovered service entity.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 07:49:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-relate-OTel-metrics-to-entity/m-p/292991#M38464</guid>
      <dc:creator>ronmacdonald</dc:creator>
      <dc:date>2026-01-15T07:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to relate OTEL metrics to entity</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-relate-OTel-metrics-to-entity/m-p/293010#M38465</link>
      <description>&lt;P&gt;This is accomplished by adding the entity attributes in the OTEL resource metadata. For example, setting the &lt;STRONG&gt;dt.entity.process_group_instance&lt;/STRONG&gt; attribute with the PGI value or &lt;STRONG&gt;dt.entity.host&lt;/STRONG&gt; with the Host ID.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Look at the&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/otel-walkthroughs" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/otel-walkthroughs&lt;/A&gt;&amp;nbsp;examples how to do that in different languages. Typically, the value is obtained from &lt;A href="https://docs.dynatrace.com/docs/shortlink/enrichment-files#oneagent-virtual-files" target="_self"&gt;virtual files&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However, there are cases when either the code cannot be changed or OneAgent cannot be injected for several reasons. Then, if you know the value (entity ids are static), you can add the values using OTEL_RESOURCE_ATTRIBUTES (if your app supports it) or in the pipeline using OpenTelemetry collector.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 08:19:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-relate-OTel-metrics-to-entity/m-p/293010#M38465</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-01-14T08:19:05Z</dc:date>
    </item>
  </channel>
</rss>

