<?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 Get metrics for key requests using tags in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172568#M1868</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wanting to pull metrics from dynatrace for keyRequest using a tag value instead of the SERVICE_METHOD ID.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/api/v2/metrics/query/?entitySelector=type(SERVICE_METHOD),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;entityId(SERVICE_METHOD-123456)&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;metricSelector=builtin:service.keyRequest.response.time:merge(0):percentile(90)&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;from=1632101783000&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;resolution=Inf&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to=1632106514000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How would I replace the SERVICE_METHOD ID using a tag value?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 11:51:54 GMT</pubDate>
    <dc:creator>bwburch1</dc:creator>
    <dc:date>2023-05-31T11:51:54Z</dc:date>
    <item>
      <title>Get metrics for key requests using tags</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172568#M1868</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wanting to pull metrics from dynatrace for keyRequest using a tag value instead of the SERVICE_METHOD ID.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/api/v2/metrics/query/?entitySelector=type(SERVICE_METHOD),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;entityId(SERVICE_METHOD-123456)&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;metricSelector=builtin:service.keyRequest.response.time:merge(0):percentile(90)&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;from=1632101783000&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;resolution=Inf&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to=1632106514000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How would I replace the SERVICE_METHOD ID using a tag value?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 11:51:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172568#M1868</guid>
      <dc:creator>bwburch1</dc:creator>
      <dc:date>2023-05-31T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get metrics for keyrequests using tags</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172607#M1872</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It is something I would like to get too. I tried using the "tag" filed:&lt;/P&gt;&lt;P&gt;entitySelector("type(service_method),tag(~"WCSCMS - CMS~")")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter is accepted but it is not working. I don't understand if DT will allow to perform this query in the future (like the old Metric API allowed you to do) or if they decided to totally remove this feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment, if it helps you can filter by Keyrequest name:&lt;/P&gt;&lt;P&gt;entitySelector("type(service_method),entityName(~"KEYREQUESTNAME~")")&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:32:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172607#M1872</guid>
      <dc:creator>monitoringteam1</dc:creator>
      <dc:date>2021-09-21T15:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get metrics for keyrequests using tags</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172786#M1877</link>
      <description>&lt;P&gt;Your recommendation works great!&amp;nbsp; Now that I can see metrics for keyRequest is it possible to use a filter on parent service to get keyRequest metrics? The reason I ask is if there are duplicate keyRequest names in dynatrace for two different services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example: give me the keyrequest with name "createOrder" from my parent service that is called "order-service".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:45:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172786#M1877</guid>
      <dc:creator>bwburch1</dc:creator>
      <dc:date>2021-09-23T14:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get metrics for keyrequests using tags</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172830#M1878</link>
      <description>&lt;P&gt;They use case you are describing is exactly the reason why filtering by tag make a lot of sense. Unfortunately&amp;nbsp; it seems they decided to remove it...the only workaround is to change the name of the keyrequest sharing the same name I suppose&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 10:50:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Get-metrics-for-key-requests-using-tags/m-p/172830#M1878</guid>
      <dc:creator>monitoringteam1</dc:creator>
      <dc:date>2021-09-24T10:50:40Z</dc:date>
    </item>
  </channel>
</rss>

