promql-generator

Generates production-ready PromQL queries for monitoring and alerting.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill promql-generator-sudohakan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: promql-generator
Source: https://github.com/sudohakan/claude-code-dotfiles/tree/main/config/skills/cc-devops-skills/devops-skills-plugin/skills/promql-generator
Command: npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill promql-generator-sudohakan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of accurate and efficient PromQL queries, saving users time and reducing the risk of errors in monitoring and alerting configurations.

Core Features & Use Cases

  • Interactive Query Planning: Guides users through defining monitoring goals, identifying metrics, and specifying query parameters.
  • Best Practice Generation: Produces production-ready PromQL queries adhering to established standards.
  • Validation Integration: Automatically validates generated queries using a dedicated validator skill.
  • Use Case: A user needs to create an alert for high P95 latency on their payment service. This Skill will interactively gather requirements, identify relevant metrics, and generate a validated PromQL query for the alert rule.

Quick Start

Use the promql-generator skill to create a PromQL query for tracking the error rate of the 'api-server' service.

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 monitoring API latency and error rates?

You can generate production-ready PromQL queries by interactively defining monitoring goals, identifying relevant metrics, and specifying parameters to receive validated alerting rules.

What is the best way to write PromQL alert rules following RED and USE methods?

The best way to write PromQL alert rules is to use an interactive generator that supports common patterns like RED and USE methods, ensuring queries adhere to established best practices.

Can I validate PromQL syntax and semantics before creating a Prometheus alert?

Yes, you can validate PromQL syntax and semantics before creating a Prometheus alert by using an integrated validator that checks generated queries for correctness.

Does the query generator support native histogram and SLO calculations?

Yes, the query generator supports native histogram queries and SLO calculations, allowing you to create production-ready observability metrics following best practices.

How do I calculate high P95 latency for a specific service using PromQL?

To calculate high P95 latency for a specific service, interactively provide the service name and latency requirements to generate a validated PromQL query for your alert rule.