metrics-query
Metrics Query Skill
Use this skill to investigate production issues, answer performance questions, and explore metrics data using the cx metrics CLI commands. The workflow guides metric discovery, label exploration, and PromQL query construction.
CLI Commands
All metrics operations use cx metrics with four subcommands:
| Command | Purpose | Key flags |
|---|---|---|
cx metrics search --name <pattern> |
Find metrics by name (wildcard or substring) | --name |
cx metrics get-labels <metric> |
List available label names for a metric | — |
cx metrics query '<expr>' |
Instant PromQL query (single point in time) | --time <timestamp> |
cx metrics query-range '<expr>' |
Range PromQL query (time series) | --start, --end, --step |
Output format: append --output json or --output agents to any command for machine-readable output.
Search examples
More from coralogix/cx-cli
cx-telemetry-querying
|
176cx-alerts
This skill should be used when the user asks to "manage alerts", "create alert", "list alerts", "check alert status", "enable alert", "disable alert", "investigate firing alerts", "check which alerts are active", "find alerting rules", "set up an alert", "configure alerting", "mute an alert", "silence an alert", "see alert definitions", "check alert priority", or wants to manage Coralogix alert definitions using the cx CLI.
159cx-create-dashboard
>
150cx-observability-setup
>
149cx-incident-management
>
147cx-cost-optimization
>
141