CommunityCodierung & Entwicklunggithub.com

grafana/promql

Schreiben, validieren und optimieren Sie PromQL-Abfragen für Prometheus und Grafana Cloud Metrics.

Was ist promql?

Dieses Skill hilft dabei, PromQL-Abfragen für Prometheus und Grafana Cloud Metrics zu schreiben, zu validieren und zu optimieren. Es ist nützlich, wenn ein Benutzer nach Metrikabfragen, PromQL-Ausdrücken, Ratenberechnungen, Aggregationen über Labels, Histogramm-Quantilen, Aufzeichnungsregeln oder der Debugging von Abfrageleistung fragt. Das Skill erkennt Schlüsselphrasen wie „PromQL“, „Prometheus query“, „write a metric query“ und viele andere, um automatisch zu reagieren. Es unterstützt Entwickler und Plattformingenieure dabei, effiziente und genaue Abfragen zu erstellen, die Leistung zu überwachen und die Cardinalität von Metriken zu verstehen.

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

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht promql?

Schreiben, validieren und optimieren Sie PromQL-Abfragen für Prometheus und Grafana Cloud Metrics. Verwenden Sie es, wenn der Benutzer nach Metrikabfragen fragt, einen PromQL-Ausdruck schreibt, Raten berechnet, über Labels aggregiert, Histogramm-Quantile erstellt, Aufzeichnungsregeln erstellt, die Abfrageleistung debuggt oder die Metrik-Cardinalität versteht. Es wird durch Phrasen wie „PromQL“, „Prometheus query“, „write a metric query“, „calculate rate“, „histogram_quantile“, „recording rule“, „metric cardinality“, „sum by“, „rate vs irate“, „absent()“ oder „query is slow“ ausgelöst.

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.

Verwandte Skills