metrics-query

Run PromQL queries via cx metrics CLI for production metrics analysis.

114|10|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/coralogix/cx-cli --skill metrics-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metrics-query
Source: https://github.com/coralogix/cx-cli/tree/main/skills/metrics-query
Command: npx skills add https://github.com/coralogix/cx-cli --skill metrics-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps engineers and data teams diagnose production issues by enabling fast discovery and querying of metrics via the cx metrics CLI.

Core Features & Use Cases

  • Discover metrics with cx metrics search to locate metric names across services
  • List available labels for a metric with cx metrics get-labels to refine filters
  • Run instant PromQL queries with cx metrics query for current values
  • Run range PromQL queries with cx metrics query-range to analyze time series
  • Use flexible time arguments like --time, --start, --end, and --step to align with data windows
  • Output results in machine-readable formats such as json or agents to support AI agents

Quick Start

Install cx-cli, locate a metric with cx metrics search, and run an instant query with cx metrics query to see the current value.

Frequently Asked Questions about metrics-query

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

FAQPage Schema
How do I query production metrics using PromQL to diagnose service health?

You can diagnose production metrics by constructing and executing PromQL queries with the cx metrics CLI. It allows you to analyze CPU usage, latency, error rates, and service health across applications and infrastructure to identify performance issues.

How do I discover available metric names across my services before running a query?

Discover available metric names across services using the cx metrics search command. After locating a metric, you can refine filters by listing available labels with cx metrics get-labels before executing your query.

Can I run range queries to analyze time-series metrics over a specific time window?

Yes, you can run range queries using cx metrics query-range to analyze time-series data. It supports flexible time arguments like --start, --end, and --step to align precisely with your desired data analysis windows.

What output formats are supported for integrating metric query results with AI agents?

The query results support machine-readable output formats such as json or agents. This allows you to easily pass the queried metric data to downstream AI agents for automated analysis and issue resolution.

Do I need to install any specific CLI to analyze infrastructure metrics and performance trends?

Yes, you need to install the cx-cli to analyze infrastructure metrics. Once installed, you can locate metrics with cx metrics search and run instant queries with cx metrics query to see current values and trends.