<?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 Unable to query on a micrometer timer metric with respect to count, min and max separately in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Unable-to-query-on-a-micrometer-timer-metric-with-respect-to/m-p/298939#M38993</link>
    <description>&lt;P&gt;Hi team,&lt;BR /&gt;&lt;BR /&gt;My app is currently sending a timer metric in the following form to Dynatrace -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;http.server.requests,app=ob-workload-executor,dt.metrics.source=micrometer, uri=/actuator/health gauge,min=149,max=491,sum=2834,count=11 1777882147110

http.server.requests,app=ob-workload-executor,dt.metrics.source=micrometer, uri=/actuator/health gauge,min=157,max=390,sum=2695,count=11 1777882207112&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Now i want to calculate the the total number of requests to the endpoint in the last 1 hour, which should be around 60 * 11, as i get around 11 requests to this endpoint every minute. So i tried the following query in a notebook,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries val = count(http.server.requests),
  filter: {
    k8s.pod.name == "ob-workload-executor-599dcc694f-86fdk" and
    uri == "/actuator/health"
  },
  from: now()-1h,
  interval: 1m&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But the result looks like this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amitkumar4_0-1777907931219.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33038iE5FEB754D6D0A43A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amitkumar4_0-1777907931219.png" alt="amitkumar4_0-1777907931219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My queries are -&lt;BR /&gt;a) How to get the total request count over the last 1 hour correctly ?&amp;nbsp;&lt;BR /&gt;b) Also when searching for metric names in the data explorer classic tab, i only see the metric name - http.server.requests and not each of them separately like - "http.server.requests.count",&amp;nbsp;"http.server.requests.max" etc and hence unable to query specifically with these metric names.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2026 15:27:15 GMT</pubDate>
    <dc:creator>amitkumar4</dc:creator>
    <dc:date>2026-05-04T15:27:15Z</dc:date>
    <item>
      <title>Unable to query on a micrometer timer metric with respect to count, min and max separately</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Unable-to-query-on-a-micrometer-timer-metric-with-respect-to/m-p/298939#M38993</link>
      <description>&lt;P&gt;Hi team,&lt;BR /&gt;&lt;BR /&gt;My app is currently sending a timer metric in the following form to Dynatrace -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;http.server.requests,app=ob-workload-executor,dt.metrics.source=micrometer, uri=/actuator/health gauge,min=149,max=491,sum=2834,count=11 1777882147110

http.server.requests,app=ob-workload-executor,dt.metrics.source=micrometer, uri=/actuator/health gauge,min=157,max=390,sum=2695,count=11 1777882207112&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Now i want to calculate the the total number of requests to the endpoint in the last 1 hour, which should be around 60 * 11, as i get around 11 requests to this endpoint every minute. So i tried the following query in a notebook,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries val = count(http.server.requests),
  filter: {
    k8s.pod.name == "ob-workload-executor-599dcc694f-86fdk" and
    uri == "/actuator/health"
  },
  from: now()-1h,
  interval: 1m&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But the result looks like this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amitkumar4_0-1777907931219.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33038iE5FEB754D6D0A43A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amitkumar4_0-1777907931219.png" alt="amitkumar4_0-1777907931219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My queries are -&lt;BR /&gt;a) How to get the total request count over the last 1 hour correctly ?&amp;nbsp;&lt;BR /&gt;b) Also when searching for metric names in the data explorer classic tab, i only see the metric name - http.server.requests and not each of them separately like - "http.server.requests.count",&amp;nbsp;"http.server.requests.max" etc and hence unable to query specifically with these metric names.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 15:27:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Unable-to-query-on-a-micrometer-timer-metric-with-respect-to/m-p/298939#M38993</guid>
      <dc:creator>amitkumar4</dc:creator>
      <dc:date>2026-05-04T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query on a micrometer timer metric with respect to count, min and max separately</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Unable-to-query-on-a-micrometer-timer-metric-with-respect-to/m-p/298957#M38994</link>
      <description>&lt;P&gt;You are getting 1 as count because you are counting the number of entries for this metric. Not the value for dimension "count".&lt;/P&gt;&lt;P&gt;I am afraid that you will need to change the way you are sending the values for this custom metric, and create one metric for each value (one for count, other for min, other for max, etc).&lt;/P&gt;&lt;P&gt;The way you are sending now, you are getting only one value, the "1777882207112", for example in your last one. All others are dimension values, and will not be used by your aggregation, but as filter.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 18:49:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Unable-to-query-on-a-micrometer-timer-metric-with-respect-to/m-p/298957#M38994</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2026-05-04T18:49:11Z</dc:date>
    </item>
  </channel>
</rss>

