query-metrics

Query OpenTelemetry metrics in Axiom MetricsDB using MPL-based queries.

1.3k|151|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/pinchbench/skill --skill query-metrics-pinchbench
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query-metrics
Source: https://github.com/pinchbench/skill/tree/main/.agents/skills/query-metrics
Command: npx skills add https://github.com/pinchbench/skill --skill query-metrics-pinchbench

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, jq, date, and includes scripts (resource) components.

What problem does it solve?

Querying and discovering OpenTelemetry metrics stored in Axiom MetricsDB.

Core Features & Use Cases

  • Discover datasets and edge deployments and fetch metrics specifications.
  • List metrics, tags, and tag values, and run MPL-based queries against a dataset.
  • Iterate and refine queries using a guided workflow from discovery to execution across deployments.

Quick Start

Install prerequisites with scripts/setup, then list datasets and fetch metrics information to begin building queries.

Frequently Asked Questions about query-metrics

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

FAQPage Schema
How do I query OpenTelemetry metrics stored in Axiom?

You can query OpenTelemetry metrics in Axiom by running MPL-based queries against a specific dataset. The process involves discovering the dataset, fetching metrics specifications, and executing the query through the Axiom API.

How do I discover available metrics and tags in Axiom MetricsDB?

To discover metrics and tags in Axiom MetricsDB, you can use the provided scripts to list datasets, fetch metrics information, and explore specific metrics, tags, and tag values across your edge deployments.

Do I need curl and jq to query OpenTelemetry metrics in Axiom?

Yes, you need curl and jq installed to query metrics in Axiom. The Skill also requires the date command and a valid ~/.axiom.toml configuration file to authenticate and access the Axiom API.

What's the best way to iterate and refine MPL queries across edge deployments?

The best way to refine MPL queries is to follow the guided workflow from dataset discovery to execution. You can list metrics and fetch metrics-spec to understand the data structure before running queries across edge deployments.

Can I use this approach to fetch metrics specifications before building queries?

Yes, you can fetch metrics specifications before building queries. The workflow supports fetching metrics-spec and metrics-info to help you understand available metrics and tags before executing MPL-based queries.

How do I set up my environment to start querying Axiom MetricsDB?

To set up your environment for querying Axiom MetricsDB, run the scripts/setup process to install prerequisites, ensure a valid ~/.axiom.toml configuration exists, then list datasets and fetch metrics information to begin.