promql-generator

Generates PromQL queries for metrics, alerts, and SLO burn-rate.

9|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/pantheon-org/tekhne --skill promql-generator-pantheon-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: promql-generator
Source: https://github.com/pantheon-org/tekhne/tree/main/skills/observability/promql/generator
Command: npx skills add https://github.com/pantheon-org/tekhne --skill promql-generator-pantheon-org

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation of complex PromQL queries, saving you time and reducing errors when working with Prometheus monitoring data.

Core Features & Use Cases

  • Query Generation: Creates PromQL for error rates, aggregations, percentiles, recording rules, and SLO alerts.
  • Best Practice Adherence: Ensures queries follow Prometheus best practices for performance and accuracy.
  • Use Case: You need to create a new alert for high error rates on your API service. This Skill will guide you through the process and generate the correct PromQL query, including validation.

Quick Start

Use the promql-generator skill to create a PromQL query for calculating the 95th percentile latency of your API service over the last 5 minutes.

Frequently Asked Questions about promql-generator

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

FAQPage Schema
How do I generate a PromQL query for calculating API error rates and latency percentiles?

To generate a PromQL query for API error rates and latency percentiles, provide your service metrics and requirements to get accurate, optimized query expressions following Prometheus best practices for performance and robust alerting.

What is the best way to create SLO burn-rate alerts using Prometheus monitoring?

The best way to create SLO burn-rate alerts is by generating optimized PromQL queries that calculate burn rates against your service objectives, ensuring robust alerting and adherence to Prometheus monitoring best practices.

Can I automatically generate Prometheus recording rules for metric aggregation?

Yes, you can automatically generate Prometheus recording rules for metric aggregation by specifying your required aggregations, which outputs optimized PromQL syntax designed to improve dashboard performance and observability data analysis.

Does generated PromQL follow Prometheus best practices for efficient querying?

Generated PromQL strictly follows Prometheus best practices for efficient querying and robust alerting, ensuring that queries for error rates, aggregations, and percentiles are optimized for performance and accuracy in dashboard creation.

Why do my manual PromQL queries for observability data analysis return inaccurate metric aggregations?

Manual PromQL queries for observability data analysis often return inaccurate aggregations due to syntax errors or inefficient structures; generating queries automatically ensures adherence to Prometheus best practices for accurate metric calculation.

When should I use recording rules instead of direct queries for dashboard creation in Prometheus?

You should use recording rules instead of direct queries for dashboard creation when you need to pre-compute frequently used or computationally expensive metric aggregations, optimizing query performance and adhering to Prometheus best practices.