Communityコーディング&開発github.com

grafana/promql

Prometheus と Grafana Cloud Metrics 向けの PromQL クエリを作成、検証、最適化します。

promql とは?

このスキルは、開発者や AI エージェントが PromQL (Prometheus Query Language) を使用してメトリクスをクエリ、分析、最適化するための実用的なガイドです。Prometheus や Grafana Cloud Metrics といった主要なモニタリングプラットフォームをサポートし、レートの計算、ラベル別の集約、ヒストグラムのパーセンタイル算出、記録ルールの作成、クエリパフォーマンスのデバッグ、カーディナリティの調査といった一般的なタスクをカバーします。ユーザーが「PromQL」「Prometheus クエリ」「レートを計算」「histogram_quantile」「metric cardinality」などのフレーズを発したときに自動的にトリガーされ、適切なクエリを提案・検証・改善します。このスキルは、各クエリの効率性と正確性を確保しながら、ベストプラクティスに沿った形でクエリを構築するための指示を提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/grafana/skills/tree/main/skills/promql

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

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

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

ドキュメント

promql は何をしますか?

Prometheus と Grafana Cloud Metrics 向けの PromQL クエリを作成、検証、最適化します。ユーザーがメトリクスのクエリ、PromQL 式の作成、レートの計算、ラベルにわたる集約、ヒストグラムのパーセンタイルの構築、記録ルールの作成、クエリパフォーマンスのデバッグ、メトリクスのカーディナリティの理解を求めるときに使用します。「PromQL」「Prometheus クエリ」「メトリクスクエリを書いて」「レートを計算」「histogram_quantile」「記録ルール」「メトリクスカーディナリティ」「sum by」「rate vs irate」「absent()」「クエリが遅い」といったフレーズでトリガーされます。

Individual skills in this repo

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

grafana/dashboarding

Create, modify, and organise Grafana dashboards including panels, variables, transformations, and alerting. Use when the user asks to create a Grafana dashboard, add a panel, configure a time series or stat panel, add template variables, set up dashboard linking, use transformations, configure thresholds, build a dashboard for a service, or export dashboard JSON. Triggers on phrases like "create dashboard", "add panel", "time series panel", "Grafana dashboard JSON", "template variables", "dashboard variable", "panel transformation", "threshold", "stat panel", "table panel", "Grafana annotations", or "dashboard folder".

grafana/grafana-oss

Configure Grafana OSS — provisions dashboards from YAML, sets up data sources (Prometheus / Loki / Tempo / Pyroscope), writes dashboard JSON with template variables, builds panel queries, assigns built-in roles (Viewer / Editor / Admin / GrafanaAdmin), mints service-account tokens, edits grafana.ini server config, creates annotations, installs plugins via provisioning, and validates each step with a health-check curl. Use when building dashboards, configuring data sources, setting up provisioning YAML, picking a panel type, writing template variables, managing users and roles, configuring SMTP/OAuth in grafana.ini, creating annotations via API, troubleshooting why a provisioned dashboard isn't showing up, or running Grafana OSS locally — even when the user says "set up a Prometheus data source", "provision dashboards from git", "make a service account", or "configure SSO in OSS" without saying "Grafana OSS".

grafana/opentelemetry

OpenTelemetry with Grafana stack. Covers OTel SDK instrumentation for Go/Java/Python/Node.js/.NET, OTLP protocol and endpoint configuration, sending telemetry to Grafana Cloud via OTLP endpoint, Grafana Alloy as OTel collector, sampling strategies, Kubernetes OTel Operator, and migration from other observability tools. Use when instrumenting apps with OTel, configuring OTLP endpoints, setting up collectors, or migrating to OpenTelemetry.

grafana/prometheus

Prometheus and Grafana Cloud Metrics overview including PromQL query language, Metrics Drilldown, alerting, recording rules, and integration patterns. Use when working with Prometheus, writing PromQL queries, configuring alerting, or discussing metrics architecture and best practices.

関連スキル