Painless - calculation of the ration of number of two contexts with status code

Hello! I need to calculate ratio of two URI with status codes 200 and status code above 200, then pass it in Grafana and finally get alert. I'm going to create extra scripted field. Can somebody help me, please?

The easiest way to achieve this in Kibana is with pipeline aggregations. I don't think this is available in Grafana as it's not a fork of Kibana that we maintain,
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline.html

1 Like

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