How to have error rate with elastic queries?


My graph with app errors and access logs is OK but i would like to display most significant metric which is: error rate.
I have done a asPercent() metric but it does’nt seem to work.

Can i have some help to do that please ?


Closing this as duplicate of Unable to plot % of count. Please use the search function before creating new topics. Thanks