スキル一覧に戻る
paunchygent

prometheus-metrics-specialist

by paunchygent

Teacher-first Script Hub for running curated, upload-based tools.

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: prometheus-metrics-specialist description: Instrument services with Prometheus metrics and write PromQL queries. Guides HuleEdu naming conventions, metrics middleware setup, and business vs operational metrics. Integrates with Context7 for latest Prometheus documentation.

Prometheus Metrics Specialist

Compact skill for instrumenting HuleEdu services with Prometheus metrics and querying them with PromQL.

When to Use

Activate when the user:

  • Needs to add metrics instrumentation to a service
  • Wants to write PromQL queries for dashboards or alerts
  • Asks about metrics naming conventions
  • Needs help with metrics middleware setup
  • Wants to understand business vs operational metrics
  • Mentions Prometheus, PromQL, metrics, instrumentation, or monitoring
  • Needs to expose /metrics endpoint

I Need To...

Get Started (First Time)

  1. Learn Prometheus basicsfundamentals.md - Counter, Histogram, Gauge concepts
  2. Set up HuleEdu servicehuleedu-patterns.md - metrics.py module, /metrics endpoint
  3. Pick an example → See "Add Metrics to Service" below

Add Metrics to Service

I need to instrument...Read this file
HTTP endpointsexamples/http-and-kafka.md
Kafka event processingexamples/http-and-kafka.md
LLM API callsexamples/llm-and-batch.md
Batch processingexamples/llm-and-batch.md
Database queriesexamples/database-and-business.md
Business logicexamples/database-and-business.md

Choose Naming Pattern

huleedu-patterns.md § Naming Patterns

Write PromQL Queries

I need to...Read this section
Learn PromQL syntaxpromql-guide.md § Basics
Calculate error ratepromql-guide.md § Error Rates
Get P95 latencypromql-guide.md § Percentiles
Troubleshoot issuespromql-guide.md § Troubleshooting

Reference

What I need to knowWhere to find it
Metric types (Counter/Histogram/Gauge)fundamentals.md § Metric Types
Label design principlesfundamentals.md § Labels
Histogram bucket designfundamentals.md § Buckets
HuleEdu architecturehuleedu-patterns.md § Architecture

Quick Metric Type Cheatsheet

# Counter: Events that only increase (resets to 0 on restart)
operations_total = Counter("spell_checker_operations_total", "desc", ["status"])
operations_total.labels(status="success").inc()

# Histogram: Distributions (latency, sizes, scores)
duration_seconds = Histogram("spell_checker_duration_seconds", "desc")
duration_seconds.observe(0.23)  # 230ms

# Gauge: Point-in-time values that go up/down
active_connections = Gauge("spell_checker_active_connections", "desc")
active_connections.set(15)
active_connections.inc()  # 16

HuleEdu Naming Cheatsheet

# Pattern 1: Service-Prefixed (most common, operational metrics)
spell_checker_operations_total
spell_checker_http_request_duration_seconds

# Pattern 2: Business Metrics (cross-service, business logic)
huleedu_llm_prompt_tokens_total
huleedu_spellcheck_corrections_made

# Pattern 3: Legacy (being phased out)
request_count

Decision: Service-specific metric? → Pattern 1. Cross-service business metric? → Pattern 2.

Core Capabilities

  • Naming Conventions: 3 patterns (service-prefixed, business, legacy)
  • Instrumentation: Counter, Histogram, Gauge, Summary usage
  • Middleware Setup: Standard HTTP metrics middleware
  • Service-Specific Metrics: Business logic patterns
  • PromQL Queries: Troubleshooting and dashboard queries
  • Scrape Configuration: Prometheus targets and discovery
  • Best Practices: Metric types, cardinality, aggregation
  • Context7 Integration: Latest Prometheus/PromQL docs

Documentation Structure

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です