<?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: V2 Query API - Can I filter by column in a custom metric? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Query-API-Can-I-filter-by-column-in-a-custom-metric/m-p/200668#M2202</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34149"&gt;@louis_gallo&lt;/a&gt;., was the below reply helpful? If not, please share more details so the Community members could help you fully&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 08:57:54 GMT</pubDate>
    <dc:creator>Ana_Kuzmenchuk</dc:creator>
    <dc:date>2022-12-16T08:57:54Z</dc:date>
    <item>
      <title>V2 Query API - Can I filter by column in a custom metric?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Query-API-Can-I-filter-by-column-in-a-custom-metric/m-p/193617#M2020</link>
      <description>&lt;P&gt;I have a multi-dimension custom metric that returns three dimensions. I would like to just filter and get one particular dimension:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metricId,name,column,host.name,dt.host_group.id,dt.entity.host,time,value&lt;BR /&gt;custom.mymetric,Foobar,cpulmt,myserver.example.com,Linux,HOST-A1FE2C339700D559,2022-08-30 19:47:00,18.200000762939453&lt;BR /&gt;custom.mymetricFoobar,cpupct,myserver.example.com,Linux,HOST-A1FE2C339700D559,2022-08-30 19:48:00,81.7&lt;BR /&gt;custom.mymetrixFoobar,iops,myserver.example.com,Linux,HOST-A1FE2C339700D559,2022-08-30 19:49:00,2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would I add to my V2 API query to just get "cpulmt" column records?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lou&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 21:26:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Query-API-Can-I-filter-by-column-in-a-custom-metric/m-p/193617#M2020</guid>
      <dc:creator>louis_gallo</dc:creator>
      <dc:date>2022-08-31T21:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Query API - Can I filter by column in a custom metric?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Query-API-Can-I-filter-by-column-in-a-custom-metric/m-p/193624#M2021</link>
      <description>&lt;P&gt;A few pointers:&lt;BR /&gt;1) Please &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/reference/metric-ingestion-protocol" target="_self"&gt;read this page&lt;/A&gt; to understand the syntax and options.&lt;BR /&gt;2) Why are you pushing infra metrics on something with a host ID? You get that already with the OneAgent?&lt;BR /&gt;2) The time field won't work as you expect. As per above page it should be timestamp in UTC millis.&lt;BR /&gt;3) Those lines don't work as they are listed above.&lt;BR /&gt;&lt;BR /&gt;Finally, it looks like you're trying to add metrics where a OneAgent is already available on that host? If so, why not use &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/ingestion-methods/oneagent-pipe" target="_self"&gt;dynatrace_ingest&lt;/A&gt; utility instead. Topology relationships happen "automatically".&lt;BR /&gt;&lt;BR /&gt;If you do actually want to push metrics from outside (via the API) then I'd either suggest 3 separate metrics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;custom.mymetric.cpulmt,hostname="myserver.example.com",os="Linux",dt.host_group.id="HOST-A1FE2C339700D559" 18.200000762939453&lt;BR /&gt;custom.mymetric.cpupct,hostname="myserver.example.com",os="Linux",dt.host_group.id="HOST-A1FE2C339700D559" 81.7&lt;BR /&gt;custom.mymetric.iops,hostname="myserver.example.com",os="Linux",dt.host_group.id="HOST-A1FE2C339700D559" 2023&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adam_gardner_0-1661990003587.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7358iDCB3A6A30AD2D946/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adam_gardner_0-1661990003587.png" alt="adam_gardner_0-1661990003587.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OR push a single metric with a new dimension (split &amp;amp; filter):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;custom.mymetric,type="cpulmt",hostname="myserver.example.com",os="Linux",dt.host_group.id="HOST-A1FE2C339700D559" 18.200000762939453&lt;BR /&gt;custom.mymetric,type="cpupct",hostname="myserver.example.com",os="Linux",dt.host_group.id="HOST-A1FE2C339700D559" 81.7&lt;BR /&gt;custom.mymetric,type="iops",hostname="myserver.example.com",os="Linux",dt.host_group.id="HOST-A1FE2C339700D559" 2023&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adam_gardner_1-1661990198220.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7359i7CDCD4A1777EE240/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adam_gardner_1-1661990198220.png" alt="adam_gardner_1-1661990198220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Perhaps you could elaborate on the actual usecase and I can advise the "correct" solution?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 23:57:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Query-API-Can-I-filter-by-column-in-a-custom-metric/m-p/193624#M2021</guid>
      <dc:creator>adam_gardner</dc:creator>
      <dc:date>2022-08-31T23:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: V2 Query API - Can I filter by column in a custom metric?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/V2-Query-API-Can-I-filter-by-column-in-a-custom-metric/m-p/200668#M2202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/34149"&gt;@louis_gallo&lt;/a&gt;., was the below reply helpful? If not, please share more details so the Community members could help you fully&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:57:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/V2-Query-API-Can-I-filter-by-column-in-a-custom-metric/m-p/200668#M2202</guid>
      <dc:creator>Ana_Kuzmenchuk</dc:creator>
      <dc:date>2022-12-16T08:57:54Z</dc:date>
    </item>
  </channel>
</rss>

