モニタリングとオブザーバビリティはCI/CDに不可欠な補完機能です。CI/CDは頻繁に変更をデプロイするため、本番環境でその影響を観察して問題を迅速に捉え、デプロイを検証し、自動ロールバックやプログレッシブデリバリーといった安全な実践を可能にする必要があります。
なぜ重要なのか
CI/CD deploys changes FREQUENTLY → you must KNOW their impact in production:
→ did the deployment cause errors, slowdowns, or failures?
→ fast deployment NEEDS fast detection (so problems are caught quickly, not by users)
→ "deploy and watch" — monitoring closes the loop on each deployment
→ Frequent deployment without monitoring = flying blind (problems go unnoticed).
デプロイの周辺で何をモニタリングするか
✓ ERROR RATES — did errors spike after the deploy? (a key signal)
✓ PERFORMANCE — latency, response times (did it get slower?)
✓ Health checks / availability — is the service healthy?
✓ Business/key metrics — did the change affect important outcomes?
✓ LOGS and traces — diagnose issues when they appear
→ Compare before/after a deployment to detect regressions.
