PromQL: HTTP error rate
Calculates the percentage of 5xx responses over the last 5 minutes.
sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m])) * 100
A deployment went out and errors or latency went up. All playbooks.
Confirm it is the release: compare the error rate before and after the deploy time.
Calculates the percentage of 5xx responses over the last 5 minutes.
sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m])) * 100
For a plain Deployment, list the revisions.
Checks the revision history of a deployment.
kubectl rollout history deployment/<deployment-name>
Go back to the previous revision.
Rolls back a deployment to the previous revision.
kubectl rollout undo deployment/<deployment-name>
Wait until the rollback has finished.
Waits for a deployment rollout and exits non-zero if it fails.
kubectl rollout status deployment/<deployment-name> -n <namespace>
For a Helm release, list its revisions instead.
Shows the revision history and status of a Helm release.
helm history <release-name>
Roll back to the last good revision.
Rolls back a Helm deployment to a specific prior revision.
helm rollback <release-name> <revision-number>