# Querying the metrics API with nullable values and Inf resolution

**URL:** <https://community.dynatrace.com/t/querying-the-metrics-api-with-nullable-values-and-inf-resolution/55024>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api\
**Created:** [February 17, 2026, 9:36pm UTC](https://community.dynatrace.com/t/querying-the-metrics-api-with-nullable-values-and-inf-resolution/55024 "2026-02-17T21:36:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtfurlan-lq](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mtfurlan-lq](https://community.dynatrace.com/u/mtfurlan-lq)\
**Post date:** [February 17, 2026, 9:36pm UTC](https://community.dynatrace.com/t/querying-the-metrics-api-with-nullable-values-and-inf-resolution/55024/1 "2026-02-17T21:36:59Z")

</div>

I’m using [flagger](https://docs.flagger.app/usage/metrics#dynatrace) for canary deployments, which always makes queries with infinite resolution, in order to resolve the entire query to one number.

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.

My problem is that the metric I’m querying is sometimes null, so I have to use :default(0, always), otherwise:

```markup
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.

```

But this is incompatible with a resolution of Inf:

```markup
Illegal transform operator: Usage of default operator is only supported for resolutions other than `Inf`

```

I’m not able to change flagger to not use the Inf resolution.

My full query:

```markup
(
    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")
)

```

So how else could I approach this query to get a rate for http.server.requests failures?
