# querying-mlflow-metrics

> Claude/Codex skill by [@mlflow](https://omgskills.com/library/mlflow/index.md) · 82 stars · Updated 2026-10-23

Fetches aggregated trace metrics (token usage, latency, trace counts, quality evaluations) from MLflow tracking servers. Triggers on requests to show metrics, analyze token usage, view LLM costs, check usage trends, or query trace statistics.

## Install

```sh
git clone https://github.com/mlflow/skills /tmp/skills && ln -s /tmp/skills/querying-mlflow-metrics ~/.claude/skills/querying-mlflow-metrics
```

## From README

MLflow Metrics Run scripts/fetchmetrics.py to query metrics from an MLflow tracking server. Examples Token summary: Output: AVG: 223.91 SUM: 7613 Hourly token trend (last 24h): Output: Time-bucketed token sums per hour Latency percentiles by trace: Error rate by status: Quality scores by evaluator (assessments): Output: Average and median scores for each evaluator (e.g., correctness, relevance) Assessment count by name: JSON output: Add -o json to any command.

## Links

- HTML page: https://omgskills.com/library/mlflow/skills/querying-mlflow-metrics/
- GitHub: https://github.com/mlflow/skills
- Author: [@mlflow](https://omgskills.com/library/mlflow/index.md)

## More from this repo

- [agent-evaluation](https://omgskills.com/library/mlflow/skills/agent-evaluation/index.md) — Use this when you need to EVALUATE OR IMPROVE or OPTIMIZE an existing LLM agent's output quality - including improving...
   - [@mlflow](https://omgskills.com/library/mlflow/index.md) · 82 stars
- [analyzing-mlflow-session](https://omgskills.com/library/mlflow/skills/analyze-mlflow-chat-session/index.md) — Analyzes an MLflow session — a sequence of traces from a multi-turn chat conversation or interaction.
   - [@mlflow](https://omgskills.com/library/mlflow/index.md) · 82 stars
- [analyzing-mlflow-trace](https://omgskills.com/library/mlflow/skills/analyze-mlflow-trace/index.md) — Analyzes a single MLflow trace to answer a user query about it.
   - [@mlflow](https://omgskills.com/library/mlflow/index.md) · 82 stars
