I have 2 columns service and status. How do I calculate percentage availability for each service.
total count for that service -> ts
5xx status for that service -> er_s
availability = ((ts - er_s) / ts) * 100
I am able to get as a whole or separate result for each service, but I am looking for availability for each app, in one place.
What have you tried so far? Did it include a
statscommand to compute the totals and anevalto calculate the availability?