<?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 Return Data Point Counts for Matching Metrics Using DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Return-Data-Point-Counts-for-Matching-Metrics-Using-DQL/m-p/259496#M1340</link>
    <description>&lt;P&gt;So, I'm sure I can put together a query that returns the data point count for any single metric, but I have a bunch of Open Telemetry metrics we are pushing into our Dynatrace SaaS instance and, since those are billable, I'd like to get an estimate of their cost impact for our DPS licensing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it was just number of metrics times 1 minute resolution then, easy-peasy, but since most of these metrics have multiple dimensions and that can cause multiple data points per metric, it's hard to get a clear count for all of these specific metrics coming in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Meaning, what I'd like is a query that pulls total data points (including all dimensions) for all metrics with "idm_" in their name.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Do any of you DQL wizards out there know if that's possible?&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Dec 2025 13:55:23 GMT</pubDate>
    <dc:creator>36Krazyfists</dc:creator>
    <dc:date>2025-12-18T13:55:23Z</dc:date>
    <item>
      <title>Return Data Point Counts for Matching Metrics Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Data-Point-Counts-for-Matching-Metrics-Using-DQL/m-p/259496#M1340</link>
      <description>&lt;P&gt;So, I'm sure I can put together a query that returns the data point count for any single metric, but I have a bunch of Open Telemetry metrics we are pushing into our Dynatrace SaaS instance and, since those are billable, I'd like to get an estimate of their cost impact for our DPS licensing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it was just number of metrics times 1 minute resolution then, easy-peasy, but since most of these metrics have multiple dimensions and that can cause multiple data points per metric, it's hard to get a clear count for all of these specific metrics coming in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Meaning, what I'd like is a query that pulls total data points (including all dimensions) for all metrics with "idm_" in their name.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Do any of you DQL wizards out there know if that's possible?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 13:55:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Data-Point-Counts-for-Matching-Metrics-Using-DQL/m-p/259496#M1340</guid>
      <dc:creator>36Krazyfists</dc:creator>
      <dc:date>2025-12-18T13:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Query to return data point count for metrics matching a certain naming convention</title>
      <link>https://community.dynatrace.com/t5/DQL/Return-Data-Point-Counts-for-Matching-Metrics-Using-DQL/m-p/264517#M1502</link>
      <description>&lt;P&gt;I had a similar problem. I wasn't able to find a way to do it with DQL, but how I ended up solving my problem:&lt;BR /&gt;On DPS, there is a metric "(DPS) Recorded metric data points per metric key".&lt;/P&gt;&lt;P&gt;So then I was able to use the Data explorer to create a chart:&lt;BR /&gt;builtin:billing.custom_metrics_classic.raw.usage_by_metric_key:filter(and(or(not(contains(metric_key,"builtin"))))):splitBy(metric_key):sort(value(auto,descending)):limit(10)&lt;/P&gt;&lt;P&gt;For me, this gave me how many data points there were for each of the non-builtin metrics. You can adapt the query to look for your specific prefix.&lt;BR /&gt;This was useful for checking that no one had configured any metrics that were more expensive than the value they provided.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 22:06:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Return-Data-Point-Counts-for-Matching-Metrics-Using-DQL/m-p/264517#M1502</guid>
      <dc:creator>NeJoyerPB</dc:creator>
      <dc:date>2024-12-05T22:06:10Z</dc:date>
    </item>
  </channel>
</rss>

