infrastructure-monitoring について
infrastructure-monitoring はインフラの健全性、パフォーマンス、リソース使用状況を追跡するスキルです。Prometheus、Alertmanager、Grafana のガイドを備え、監視の構築、アラート、分析を支援します。
主な機能
- 01Prometheus 設定ガイド
- 02アラートルールと Alertmanager の設定
- 03Grafana ダッシュボードの資料
- 04監視デプロイのガイド
活用シーン
- 01インシデントの検出とアラート通知
- 02リソース使用状況の分析
- 03過去のパフォーマンス傾向の確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ aj-geddes/ useful-ai-prompts --skill infrastructure-monitoringインストール後、Claude Code で/infrastructure-monitoringを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
references/alert-rules.mdalertmanager-configuration.mdgrafana-dashboard.mdmonitoring-deployment.mdprometheus-configuration.mdscripts/health-check.shtemplates/dashboard-config.yaml詳細
インフラストラクチャ監視
目次
概要
スタック全体にわたって、アラートと可視化機能を備えた包括的なインフラストラクチャ監視を実装し、システムの健全性、パフォーマンス指標、リソース使用状況を追跡します。
使用する場面
- リアルタイムのパフォーマンス監視
- キャパシティプランニングと傾向分析
- インシデントの検出とアラート
- サービスの健全性の追跡
- リソース使用状況の分析
- パフォーマンスのトラブルシューティング
- コンプライアンスと監査証跡
- 履歴データの分析
クイックスタート
最小限の動作例:
# prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: "infrastructure-monitor"
environment: "production"
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
- localhost:9093
# Rule files
rule_files:
- "alerts.yml"
- "rules.yml"
scrape_configs:
# Prometheus itself
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
// ... (see reference guides for full implementation)
リファレンスガイド
詳細な実装は references/ ディレクトリにあります:
| ガイド | 内容 |
|---|---|
| Prometheus Configuration | Prometheus の設定 |
| Alert Rules | アラートルール |
| Alertmanager Configuration | Alertmanager の設定 |
| Grafana Dashboard | Grafana ダッシュボード |
| Monitoring Deployment | 監視のデプロイ |
ベストプラクティス
✅ 実施すること
- 確立されたパターンと規約に従います
- クリーンで保守しやすいコードを書きます
- 適切なドキュメントを追加します
- デプロイ前に十分にテストします
❌ 避けること
- テストや検証を省略しないでください
- エラー処理を無視しないでください
- 設定値をハードコードしないでください
コメント
Markdown 対応