Back to articles
The DevOps metrics that actually matter (and how to track them)
How-ToDevOps

The DevOps metrics that actually matter (and how to track them)

via Dev.toYash

The DevOps metrics that actually matter (and how to track them) The 4 DORA metrics Deployment Frequency Elite: Multiple/day Low: < once/month Lead Time for Changes Elite: < 1 hour Low: > 1 month Change Failure Rate Elite: 0-5% Low: 15-30% MTTR Elite: < 1 hour Low: > 1 week Track deployment frequency in GitHub Actions - name : Record deployment metric if : success() run : | aws cloudwatch put-metric-data --namespace "DevOps/Deployments" --metric-name "DeploymentCount" --value 1 --dimensions Service=${{ env.SERVICE_NAME }},Environment=production Track lead time (commit → production) - name : Record lead time if : success() run : | COMMIT_TIME=$(git show -s --format=%ct ${{ github.sha }}) LEAD_TIME=$(($(date +%s) - COMMIT_TIME)) aws cloudwatch put-metric-data --namespace "DevOps/Deployments" --metric-name "LeadTimeSeconds" --value $LEAD_TIME --dimensions Service=${{ env.SERVICE_NAME }} Track MTTR via alarm state changes (Lambda) def handler ( event , context ): alarm = event [ ' detail '

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles