promql-cli

Query Prometheus data with PromQL expressions from the CLI.

178|15|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/samber/cc-skills --skill promql-cli-samber
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: promql-cli
Source: https://github.com/samber/cc-skills/tree/main/skills/promql-cli
Command: npx skills add https://github.com/samber/cc-skills --skill promql-cli-samber

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Query Prometheus data and PromQL expressions from the CLI to diagnose monitoring issues.

Core Features & Use Cases

  • Instant and range PromQL queries against Prometheus
  • Metric discovery with metrics/labels/meta information
  • Flexible output formats (table, csv, json, graph) for reporting and automation
  • Use Case: quickly verify alert rules, troubleshoot latency, and compare performance across time ranges

Quick Start

Ask me to run a PromQL query against a Prometheus instance using promql-cli to fetch current or range metrics.

Frequently Asked Questions about promql-cli

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

FAQPage Schema
How do I run PromQL queries from the CLI to diagnose Prometheus monitoring issues?

You can run PromQL queries from the CLI to diagnose Prometheus monitoring issues by executing instant and range queries, discovering metrics and labels, and formatting outputs for reports across multiple hosts.

What output formats can I use when querying Prometheus metrics from the command line?

When querying Prometheus metrics from the command line, you can format outputs as table, csv, json, or graph to support reporting and automation workflows.

Can I discover metrics, labels, and metadata using PromQL?

Yes, you can discover metrics, labels, and metadata using PromQL to explore available monitoring data and understand the structure of your Prometheus instance before running complex queries.

Does promql-cli support advanced PromQL functions like rate() and histogram_quantile()?

Yes, promql-cli supports advanced PromQL functions including rate() and histogram_quantile() to calculate rates and quantiles for troubleshooting latency and verifying alert rules.

What is the best way to compare Prometheus performance across time ranges?

The best way to compare Prometheus performance across time ranges is by running range queries with flexible output formats, allowing you to analyze metrics differences and troubleshoot issues effectively.

Do I need to specify host and config options to run PromQL queries in DevOps and SRE contexts?

Yes, you need to specify host and config options to connect to your Prometheus instance and run PromQL queries, ensuring accurate metric retrieval and proper output formatting across multiple hosts.