<?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 Querying the metrics API with nullable values and Inf resolution in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Querying-the-metrics-API-with-nullable-values-and-Inf-resolution/m-p/294883#M3929</link>
    <description>&lt;P&gt;I'm using &lt;A href="https://docs.flagger.app/usage/metrics#dynatrace" target="_self"&gt;flagger&lt;/A&gt; for canary deployments, which always makes queries with infinite resolution, in order to resolve the entire query to one number.&lt;/P&gt;&lt;P&gt;I'm trying to make a query that returns the failure rate of a service, based on the outcome dimension of a metric of request length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the metric I'm querying is sometimes null, so I have to use :default(0, always), otherwise:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The metric expression yielded no data points and/or matching dimension tuples for the query timeframe. Consider appending the default transformation (for example, `:default(0)`) to the operands.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is incompatible with a resolution of Inf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Illegal transform operator: Usage of default operator is only supported for resolutions other than `Inf`&lt;/LI-CODE&gt;&lt;P&gt;I'm not able to change flagger to not use the Inf resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My full query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(
    http.server.requests
    :filter(
        and(
            eq("k8s.namespace.name","namespace"),
            eq("k8s.workload.name","deployment name"),
            ne("outcome","SUCCESS")
        )
    )
    :count
    :splitby("k8s.pod.name")
    :default(0, always)
/
    http.server.requests
    :filter(
        and(
            eq("k8s.namespace.name","namespace"),
            eq("k8s.workload.name","deployment name")
        )
    )
    :count
    :splitby("k8s.pod.name")
)&lt;/LI-CODE&gt;&lt;P&gt;So how else could I approach this query to get a rate for http.server.requests failures?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2026 21:36:59 GMT</pubDate>
    <dc:creator>mtfurlan-lq</dc:creator>
    <dc:date>2026-02-17T21:36:59Z</dc:date>
    <item>
      <title>Querying the metrics API with nullable values and Inf resolution</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Querying-the-metrics-API-with-nullable-values-and-Inf-resolution/m-p/294883#M3929</link>
      <description>&lt;P&gt;I'm using &lt;A href="https://docs.flagger.app/usage/metrics#dynatrace" target="_self"&gt;flagger&lt;/A&gt; for canary deployments, which always makes queries with infinite resolution, in order to resolve the entire query to one number.&lt;/P&gt;&lt;P&gt;I'm trying to make a query that returns the failure rate of a service, based on the outcome dimension of a metric of request length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the metric I'm querying is sometimes null, so I have to use :default(0, always), otherwise:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;The metric expression yielded no data points and/or matching dimension tuples for the query timeframe. Consider appending the default transformation (for example, `:default(0)`) to the operands.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is incompatible with a resolution of Inf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Illegal transform operator: Usage of default operator is only supported for resolutions other than `Inf`&lt;/LI-CODE&gt;&lt;P&gt;I'm not able to change flagger to not use the Inf resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My full query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(
    http.server.requests
    :filter(
        and(
            eq("k8s.namespace.name","namespace"),
            eq("k8s.workload.name","deployment name"),
            ne("outcome","SUCCESS")
        )
    )
    :count
    :splitby("k8s.pod.name")
    :default(0, always)
/
    http.server.requests
    :filter(
        and(
            eq("k8s.namespace.name","namespace"),
            eq("k8s.workload.name","deployment name")
        )
    )
    :count
    :splitby("k8s.pod.name")
)&lt;/LI-CODE&gt;&lt;P&gt;So how else could I approach this query to get a rate for http.server.requests failures?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 21:36:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Querying-the-metrics-API-with-nullable-values-and-Inf-resolution/m-p/294883#M3929</guid>
      <dc:creator>mtfurlan-lq</dc:creator>
      <dc:date>2026-02-17T21:36:59Z</dc:date>
    </item>
  </channel>
</rss>

