本文へスキップ
Skillpedia
分析とスプレッドシート41k · #6742

prometheus-configuration

できること

このツールは、システムやアプリケーションのパフォーマンスデータを収集・監視する仕組みであるPrometheusを設定するのに役立ちます。今何が起きているかを把握でき、何か問題があれば通知を受け取れるようにします。

使う場面

  • ✓システムの監視を始めるとき。
  • ✓パフォーマンスデータの収集方法を設定するとき。
  • ✓問題を知らせる警告ルールを作成したいとき。

スキルのリンク

https://github.com/wshobson/agents/blob/main/plugins/observability-monitoring/skills/prometheus-configuration/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/wshobson/agents/blob/main/plugins/observability-monitoring/skills/prometheus-configuration/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Webサーバーからメトリクスを収集するように、Prometheusを設定してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

どのようなデータをどのように収集するかの情報を入力します。ツールがその設定を整理するので、Prometheusがシステムの監視を自動的に開始できます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Prometheus Configuration

Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.

Purpose

Configure Prometheus for comprehensive metric collection, alerting, and monitoring of infrastructure and applications.

When to Use

  • Set up Prometheus monitoring
  • Configure metric scraping
  • Create recording rules
  • Design alert rules
  • Implement service discovery

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Use consistent naming for metrics (prefix_name_unit)
  2. Set appropriate scrape intervals (15-60s typical)
  3. Use recording rules for expensive queries
  4. Implement high availability (multiple Prometheus instances)
  5. Configure retention based on storage capacity
  6. Use relabeling for metric cleanup
  7. Monitor Prometheus itself
  8. Implement federation for large deployments
  9. Use Thanos/Cortex for long-term storage
  10. Document custom metrics

Troubleshooting

Check scrape targets:

curl http://localhost:9090/api/v1/targets

Check configuration:

curl http://localhost:9090/api/v1/status/config

Test query:

curl 'http://localhost:9090/api/v1/query?query=up'

Related Skills

  • grafana-dashboards - For visualization
  • slo-implementation - For SLO monitoring
  • distributed-tracing - For request tracing
よくある質問

「メトリクス」とは何ですか?

メトリクスは、システムのバイタルサイン(生命兆候)のようなものです。CPU使用率、メモリ使用量、サーバーが受け取っているリクエスト数などを測定します。

「スクレイピング」とは何ですか?

Prometheusがシステムにアクセスして、そのシステムが報告しているメトリクスを「収集」する処理のことです。

「レコーディングルール」と「アラートルール」とは何ですか?

レコーディングルールは、よく使われるメトリクスを事前に計算しておく仕組みです。アラートルールは、条件を満たしたときに警告を発動させる条件を定義します。

詳細

作者による元の説明

Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.

repo: wshobson/agents

人気

GitHubのスター
41k
ランキング
#6742
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル