promql-generator

Generate PromQL queries and Prometheus patterns from monitoring requirements.

7|3|Updated May 4, 2026
One-click install
npx skills add https://github.com/nopperabbo/codebuddy2api --skill promql-generator-nopperabbo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: promql-generator
Source: https://github.com/nopperabbo/codebuddy2api/tree/main/opencode-config/skills/_archived/promql-generator
Command: npx skills add https://github.com/nopperabbo/codebuddy2api --skill promql-generator-nopperabbo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Generate accurate PromQL queries and Prometheus patterns from natural language goals, enabling teams to plan, build, and validate monitoring queries quickly and safely.

Core Features & Use Cases

  • Interactive planning and requirement gathering to determine the exact monitoring goals.
  • Generates histogram_quantile, rate, and other PromQL patterns with best-practices guidance for dashboards, alerts, and recording rules.
  • Validates queries against PromQL syntax and semantics, with reference patterns to ensure correctness and maintainability.

Quick Start

Provide a clear monitoring goal and I will generate a complete PromQL plan and final query.

Frequently Asked Questions about promql-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PromQL queries for RED and USE monitoring patterns?

To generate PromQL queries for RED and USE monitoring patterns, provide your natural language monitoring goals to get precise queries with proper label filtering and best-practice validation.

What is the correct way to use histogram_quantile for latency percentiles in Prometheus?

Using histogram_quantile for latency percentiles in Prometheus requires proper bucket aggregation and label filtering to ensure accurate percentile calculations across cloud services.

Can I create Prometheus alerting rules and SLO calculations from natural language requirements?

Yes, you can create Prometheus alerting rules and SLO calculations from natural language requirements through interactive planning that determines exact monitoring goals and outputs validated expressions.

What's the best way to validate PromQL syntax before adding recording rules to dashboards?

The best way to validate PromQL syntax before adding recording rules to dashboards is using a PromQL validator that checks query correctness against reference patterns and semantic rules.

Why does my PromQL query fail validation when using rate functions with histogram metrics?

PromQL query validation may fail when rate functions are applied incorrectly to histogram metrics due to improper label matching or missing bucket aggregations required by Prometheus semantics.