# Count of results/records of metric expression

**URL:** <https://community.dynatrace.com/t/count-of-results-records-of-metric-expression/43922>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, kubernetes\
**Created:** [January 31, 2024, 7:24pm UTC](https://community.dynatrace.com/t/count-of-results-records-of-metric-expression/43922 "2024-01-31T19:24:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibebe\_m\_digafe](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tibebe\_m\_digafe](https://community.dynatrace.com/u/tibebe_m_digafe)\
**Post date:** [January 31, 2024, 7:24pm UTC](https://community.dynatrace.com/t/count-of-results-records-of-metric-expression/43922/1 "2024-01-31T19:24:02Z")

</div>

Hello,

I need the count of the result records returned by a metric expression shown below:

```markup
(builtin:kubernetes.node.requests_memory / builtin:kubernetes.node.memory_allocatable * 100):filter(series(avg,gt,95))

```

This is related to a need for Kubernetes alerting when memory request saturation is over 95% across x number of nodes. Obviously, **alerting on a node by node basis causes noise**.

The expression above does list the nodes meeting the conditions but I need the total count.

Any help is appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![tibebe\_m\_digafe](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tibebe\_m\_digafe](https://community.dynatrace.com/u/tibebe_m_digafe)\
**Post date:** [February 5, 2024, 5:45pm UTC](https://community.dynatrace.com/t/count-of-results-records-of-metric-expression/43922/2 "2024-02-05T17:45:01Z")

</div>

This is related to managed cluster
