Alertmanager vs PagerDuty: アラートにはどちら?
Alertmanager は Prometheus からのアラートをルーティング、グループ化、サイレンスします。PagerDuty はオンコールスケジューリングとエスカレーションを備えたマネージドなインシデント対応プラットフォームです。
Alertmanager は Prometheus のアラートの重複排除、グループ化、サイレンス、receiver へのルーティングを扱いますが、完全なオンコールプラットフォームではありません。PagerDuty はオンコールスケジュール、エスカレーションポリシー、インシデントワークフロー、analytics、数百のツールとの統合を有料 SaaS として追加します。両者は補完的で、Alertmanager はオープンソースのアラートルーティングで勝り、PagerDuty はエンドツーエンドのインシデント対応とオンコール管理で勝ります。
| Alertmanager | PagerDuty | |
|---|---|---|
| 種類 | オープンソースのルーター | マネージド SaaS |
| オンコール | なし (ルーティングのみ) | スケジュール + エスカレーション |
| インシデント管理 | 最小限 | 完全なワークフロー |
| コスト | 無料 (セルフホスト) | シートあたり有料 |
| 最適な用途 | Prometheus のルーティング | オンコール + インシデント |
ユースケースとスコープ
Alertmanager は、Prometheus に密接に結びついた無料でセルフホストなアラートルーティングが欲しいチームに適しています。PagerDuty は、オンコールのローテーション、エスカレーション、インシデントワークフロー、analytics を必要とする組織に適しています。一般的なパターンでは、Alertmanager のアラートを人による対応レイヤーのために PagerDuty にルーティングします。
運用と CI への適合
Alertmanager は自分で運用する小さなセルフホストのバイナリで、PagerDuty は完全にマネージドです。Alertmanager の設定とルーティングルールは一般的に CI で検証され、より高速なマネージドランナーが設定テストとルールの lint を高速化します。
Decide with your own numbers, not a feature table
Feature comparisons age badly and rarely decide anything, because both tools in a mature category can do the job. What differs is how each behaves on your repository, and that takes one afternoon to measure.
# time a cold install with each candidate, cache cleared
hyperfine --prepare "rm -rf node_modules" --warmup 1 \
"<tool-a> install" "<tool-b> install"
# and the thing CI actually pays for: a cold run with no local cache
docker run --rm -v "$(pwd):/w" -w /w node:22 sh -c "<tool> install"What actually changes when you switch
- Lockfile format. A switch is a one-way door for anyone still on the old tool until everyone migrates, so plan it as a single coordinated change.
- Resolution strictness. Tools differ on whether an undeclared transitive import works, and the stricter one will surface latent bugs as new failures.
- CI cache configuration. The cache path and key differ per tool; carrying over the old ones silently disables caching.
- Everyone on the team and every runner must move together. Pin the version so they cannot drift.
結論
Prometheus 向けの無料でセルフホストなアラートルーティングが欲しいなら Alertmanager。完全なオンコールスケジューリング、エスカレーション、インシデント対応が欲しいなら PagerDuty。両者は相性が良く、Alertmanager が PagerDuty にルーティングします。