Communitygithub.com

メトリクスアグリゲーター

アプリケーション、データベース、キャッシュ、サービスからパフォーマンスメトリクスを集約・一元管理します。複数のソースからの監視データを統合する際に使用します。「メトリクスを集約」「監視を一元化」「パフォーマンスデータを収集」といったフレーズで起動します。

メトリクスアグリゲーター とは?

このスキルは、アプリケーション、データベース、キャッシュ、インフラストラクチャなど多様なシステムからパフォーマンスメトリクスを収集し、Prometheus、StatsD、CloudWatchといったツールを用いて統一された命名規則のもとに一元管理することを可能にします。開発者はこれにより、散在する監視データを統合的に分析し、問題の迅速な特定と解決が可能になります。スキルはメトリクスの命名規則設計、適切な集約ツールの選択、設定・統合、ダッシュボードとアラートの設定を段階的にガイドします。ベストプラクティスとして一貫した命名規則、適切な粒度、保持ポリシーの定義を推奨し、他のプラグインとの連携もサポートします。

対応✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/aggregating-performance-metrics

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

メトリクスアグリゲーター は何をしますか?

アプリケーション、データベース、キャッシュ、インフラストラクチャからのパフォーマンスメトリクスを、統一された命名規則でPrometheus、StatsD、CloudWatchに集約・一元化します。

概要

このスキルは、Claudeが多様なシステムからのメトリクスを統合ビューに集約することで、パフォーマンス監視を効率化できるようにします。パフォーマンスデータの収集、一元化、分析のプロセスを簡素化し、より良い洞察と迅速な問題解決を実現します。

しくみ

  1. メトリクスタクソノミの設計: Claudeは、全システムにわたる明確で一貫性のあるメトリクス命名規則の定義を支援します。
  2. 集約ツールの選択: Claudeは、ユーザーの環境と要件に基づいて適切なメトリクス集約ツール(例:Prometheus、StatsD、CloudWatch)の選択を支援します。
  3. 設定と統合: Claudeは、選択された集約ツールの設定と、さまざまなデータソースとの統合をガイドします。
  4. ダッシュボードとアラートの設定: Claudeは、メトリクスを可視化するダッシュボードの設定と、重要なパフォーマンス指標に対するアラートの定義を支援します。

このスキルを使用するタイミング

このスキルは、以下のような場合に有効です。

  • 複数のアプリケーションやシステムからのパフォーマンスメトリクスを一元化したい場合。
  • 一貫性のあるメトリクス命名規則を設計したい場合。
  • ニーズに合った適切なメトリクス集約ツールを選択したい場合。
  • パフォーマンス監視用のダッシュボードとアラートを設定したい場合。

例

例1: アプリケーションとシステムメトリクスの一元化

ユーザーリクエスト:「アプリケーションとシステムのメトリクスをPrometheusに集約してください。」

スキルの動作:

  1. アプリケーション(例:リクエストレイテンシ、エラーレート)とシステム(例:CPU使用率、メモリ使用率)のメトリクスを定義するようユーザーをガイドします。
  2. Prometheusがアプリケーションとシステムのエンドポイントからメトリクスをスクレイピングするように設定を支援します。

例2: データベースパフォーマンスのアラート設定

ユーザーリクエスト:「データベースメトリクスを一元化し、スロークエリに対するアラートを設定してください。」

スキルの動作:

  1. データベースパフォーマンスのメトリクス(例:クエリ実行時間、コネクションプール使用率)を定義するようユーザーを支援します。
  2. 集約ツールがデータベースからこれらのメトリクスを収集するように設定をガイドします。
  3. クエリ実行時間が定義されたしきい値を超えた場合に通知するアラートを集約ツールに設定するのを支援します。

ベストプラクティス

  • 命名規則: すべてのメトリクスに一貫性があり明確に定義された命名規則を使用して、明確さと分析の容易さを確保します。
  • 粒度: 詳細さとストレージ要件のバランスを取るために、適切な粒度のメトリクスを選択します。
  • 保持ポリシー: ストレージスペースを管理し、履歴分析にデータを利用できるようにするために、メトリクスの保持ポリシーを定義します。

統合

このスキルは、インフラストラクチャを管理し、アプリケーションをデプロイし、システムの健全性を監視する他のプラグインと統合します。例えば、新しいアプリケーションデプロイ後に自動的にメトリクス収集を設定するために、デプロイプラグインと組み合わせて使用できます。

前提条件

  • メトリクス収集ツール(Prometheus、StatsD、CloudWatch)へのアクセス
  • メトリクスソースへのネットワーク接続
  • ${CLAUDE_SKILL_DIR}/metrics/ へのメトリクスストレージ設定
  • メトリクスタクソノミの理解

手順

  1. 一貫性のあるメトリクス命名規則を設計する
  2. 環境に適した集約ツールを選択する
  3. すべてのソースからのメトリクス収集を設定する
  4. 一元化されたストレージと保持ポリシーを設定する
  5. 可視化のためのダッシュボードを作成する
  6. 重要なメトリクスに対するアラートを定義する

出力

  • メトリクス集約設定ファイル
  • 統一命名規則のドキュメント
  • 主要メトリクスのダッシュボード定義
  • パフォーマンスしきい値のアラートルール
  • メトリクスソースの統合ガイド

エラーハンドリング

メトリクス集約が失敗した場合:

  • ソースへのネットワーク接続を確認する
  • 認証資格情報を確認する
  • メトリクス形式の互換性を検証する
  • ストレージ容量と保持設定を確認する
  • 集約ツールの設定を確認する

リソース

  • Prometheus集約ドキュメント
  • StatsDプロトコル仕様
  • CloudWatchメトリクスAPIリファレンス
  • メトリクス命名のベストプラクティス

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

関連スキル