<?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: IngestMetric affect on a entities by different way of dt.entity.host in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183223#M1775</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you use the local ingest on the OneAgent the host entity id is added automatically:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods#local" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods#local&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 10:26:50 GMT</pubDate>
    <dc:creator>Mike_L</dc:creator>
    <dc:date>2022-03-24T10:26:50Z</dc:date>
    <item>
      <title>IngestMetric affect on a entities by different way of dt.entity.host</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183219#M1772</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;use case :&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;i have an server (host0) with a oneagent, i have a script on it to retrieve different metrics of other servers, and push it&lt;BR /&gt;custom.mymetric,hostname=host1 100&lt;BR /&gt;custom.mymetric,hostname=host2 37&lt;BR /&gt;custom.mymetric,hostname=host3 13&lt;BR /&gt;&lt;BR /&gt;i can affect the metric on an entity if i use the DT unique key (dt.entity.host=HOST-XXXXXXXXXX) like that :&lt;BR /&gt;custom.mymetric,dt.entity.host=HOST-XXXXXXXXX1,hostname=host1 100&lt;BR /&gt;custom.mymetric,dt.entity.host=HOST-XXXXXXXXX2,hostname=host2 37&lt;BR /&gt;custom.mymetric,dt.entity.host=HOST-XXXXXXXXX3,hostname=host3 13&lt;/P&gt;
&lt;P&gt;but on the server (host0) this unique key is unknown (i can do a call api on master to retrieve but it's not acceptable on a script launched each 1 minute to retrieve id of X servers)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;exist it a method ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;i test that without success :&lt;BR /&gt;custom.mymetric,dt.entity.host=host1,hostname=host1 100&lt;BR /&gt;custom.mymetric,dt.entity.displayname=host1,hostname=host1 100&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 07:40:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183219#M1772</guid>
      <dc:creator>Stef_Stouf95</dc:creator>
      <dc:date>2022-03-29T07:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: IngestMetric affect on a entities by different way of dt.entity.host</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183223#M1775</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you use the local ingest on the OneAgent the host entity id is added automatically:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods#local" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods#local&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:26:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183223#M1775</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2022-03-24T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: IngestMetric affect on a entities by different way of dt.entity.host</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183443#M1787</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Mike, thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;indeed it's work on my example :&amp;nbsp;custom.mymetric,dt.entity.host=HOST-XXXXXXXXX3,hostname=host3 13&lt;BR /&gt;if i execute on the server it take the server context and affect on it without put in dt.entity.host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but my case is, the api call is done on another server (for exemple a cluster or a silo) that retrieve metrics of lot of servers.&lt;BR /&gt;the only information known is the hostnames not applicable on&amp;nbsp;dt.entity.host field,&lt;BR /&gt;i can do before an api call (/api/v2/entities?pageSize=50&amp;amp;entitySelector=type("host"),entityName.startsWith("host1")), and retrieve this id in payload "entities.entityId"&lt;BR /&gt;but the process is heavier&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 10:00:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183443#M1787</guid>
      <dc:creator>Stef_Stouf95</dc:creator>
      <dc:date>2022-03-28T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: IngestMetric affect on a entities by different way of dt.entity.host</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183494#M1788</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47955"&gt;@Stef_Stouf95&lt;/a&gt;&amp;nbsp; yes, you need to specify the entity id, in this case the host id. The host id will never change unless you change the hostgroup and then it's in fact a new host.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Depending on your script and use case you can either configure it statically in a map in your script or do a lookup on the script startup and then cache the values as required.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 07:28:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/IngestMetric-affect-on-a-entities-by-different-way-of-dt-entity/m-p/183494#M1788</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-03-29T07:28:26Z</dc:date>
    </item>
  </channel>
</rss>

