Hands-on task
This task is step 11 of the course “Monitoring and metrics”
SLI: share of 2xx
In /root/access.log there are lines of the form METHOD PATH CODE. Compute the share of successful responses (2xx) as a percentage (whole number) among all requests and write it to /root/sli.txt.
Reference:awk
What you'll practise:
- sli
- awk
- percentage share
- code range
- integer division