cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to exclude a range from calculated metric values

PaulE
Participant

I have a calculated metric for a series of nodes (in this case % memory used)  - I would like to show a table of matching nodes where the calculated value is less than 20% or greater than 80%. I've got the first part working but I am unsure if filter will allow me to produce what's needed. 

 

 

 

 builtin:kubernetes.container.requests_memory:last:splitBy("dt.entity.kubernetes_container","dt.entity.kubernetes_cluster"):sum
    / builtin:kubernetes.container.memory_allocatable:last:splitBy("dt.entity.kubernetes_container","dt.entity.kubernetes_cluster"):sum*100):setUnit(Percent):sort(value(sum,descending))

 

 

2 REPLIES 2

Mizső
DynaMight Guru
DynaMight Guru

Hi @PaulE,

Could you please test this line in your metric expression:

:filter(or(series(avg,gt,80),series(avg,lt,20)))

Here is an example for nodes:

Mizs_0-1683704703840.png

I hope it helps.

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Thanks vary much , exactly what was needed

Featured Posts