query-metrics
Skill by openclaw
Runs MPL metrics queries against Axiom MetricsDB through scripts. It discovers metrics, tags and tag values, for engineers who investigate OTel metrics data in Axiom.
Install query-metrics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/openclaw/clawhub /tmp/clawhub && mkdir -p ~/.claude/skills && cp -r /tmp/clawhub/.agents/skills/query-metrics ~/.claude/skills/query-metricsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/openclaw/clawhub /tmp/clawhub && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/clawhub/.agents/skills/query-metrics ~/.gemini/antigravity-cli/skills/query-metricsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The query-metrics skill runs MPL metrics queries against Axiom MetricsDB through a set of scripts. It lists metrics datasets, explores metric names, tags and tag values, and executes queries. Before composing a query, the assistant reads the metrics-spec and checks each metric's type, temporality and unit to choose the right query shape. Adaptive resolution with $__interval is supported when a chart width is passed.
The skill works with datasets of kind otel:metrics:v1. The scripts read each dataset's edgeDeployment and route requests to the right regional endpoint without extra configuration. Setup and the ~/.axiom.toml file are described in the README. The skill suits engineers and analysts who investigate OTel metrics data in Axiom and want help writing and checking MPL queries.
Written from the project's SKILL.md and checked against it.
What it can do
- scripts/datasetsLists datasets, optionally filtered by kind such as otel:metrics:v1.
- scripts/metrics-specFetches the MPL query spec, which the skill requires before composing queries.
- scripts/metrics-infoDiscovers metrics with their type, temporality and unit, plus tags and tag values.
- scripts/metrics-queryExecutes an MPL query over a time range, with optional chart width and parameters.
- scripts/axiom-apiMakes low-level API calls to Axiom with a chosen method, path and body.
- scripts/resolve-urlResolves a dataset to its edge deployment URL.
What you need
- An Axiom deployment configured in ~/.axiom.toml
- A dataset of kind otel:metrics:v1
- Shell access to run the scripts
Try asking
- List the metrics datasets in my prod Axiom deployment
- Show the metrics and tags for http.server.duration in my dataset
- Query the average http.server.duration for frontend over the last hour
Good to know
- find-metrics searches tag values, not metric names.
- Group by a high-cardinality tag returns one series per value with no cap.
- Client-side requests time out after 120 seconds by default.
- CounterNonMonotonic metrics need the user to choose the intent before querying.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/query-metrics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to query-metrics
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
query-metrics: common questions
What kind of dataset does query-metrics work with?
It works with datasets of kind otel:metrics:v1. The skill stops using a dataset that is of another kind.
Does the skill need me to set the regional endpoint?
No. The scripts read each dataset's edgeDeployment and route to the right regional endpoint automatically.
How does the skill choose a query shape for a metric?
It reads the metric's type, temporality and unit from metrics-info. Gauges, counters, histograms and null temporality each have their own rules in the skill.
How do I install query-metrics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is query-metrics free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is query-metrics safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to query-metrics?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
