Filter isn't working when trying to create metric visualization panel


I'm trying to create a panel to calculate the Percentage of Success jenkin builds / Total jenkin builds over 14 days. However, I'm unable to get the filter working in Metrics visualization.

For the regular visualization i'm able to filter and get 2 Count

For the Metric visualization, when i filter, it's showing 29 count. Also, if i dont add the filter, it's still showing 29 count. Does anyone know what might be wrong? Both are using "squad-jenkins-rca*" index pattern.

Also, assuming that i got the filters to work. How do you do simple division? I tried using Math aggregation but The fields are showing up as "Count". I want it to be a certain filter to grab all build status using doc[‘buildStatus.keyword’].value

Thank you,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.