metrics-expert

metrics-expert is a skill for Claude Code, Codex from nielsvbrecht/victoriametrics-logs-mcp. It costs 15 tokens per session (353 once invoked), scanned A, original, Apache-2.0.

A specialist guide for MetricsQL and PromQL, query languages used to search monitoring data in VictoriaMetrics.

In plain words
What is it for?
Use it to write or review metric queries, improve their performance, choose time-series calculations, and design precomputed results for expensive queries.
Why use it?
It helps avoid slow or inefficient monitoring queries and explains which functions and filters fit the question being asked.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to write or review metric queries, improve their performance, choose time-series calculations, and design precomputed results for expensive queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nielsvbrecht/victoriametrics-logs-mcp/metrics-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nielsvbrecht/victoriametrics-logs-mcp --skill metrics-expert
Clone the repo
git clone --depth 1 https://github.com/nielsvbrecht/victoriametrics-logs-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for metrics-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/nielsvbrecht/victoriametrics-logs-mcp/metrics-expert/github.svg)](https://agentmods.dev/skills/nielsvbrecht/victoriametrics-logs-mcp/metrics-expert)
Your own site
<a href="https://agentmods.dev/skills/nielsvbrecht/victoriametrics-logs-mcp/metrics-expert"><img src="https://agentmods.dev/badge/skills/nielsvbrecht/victoriametrics-logs-mcp/metrics-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for metrics-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/nielsvbrecht/victoriametrics-logs-mcp/metrics-expert"><img src="https://agentmods.dev/badge/skills/nielsvbrecht/victoriametrics-logs-mcp/metrics-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00353
Opus 5 $0.00008 $0.00177
Sonnet 5 $0.00003 $0.00071
Haiku 4.5 $0.00002 $0.00035

Measured 12d ago against content hash 8498afddc11e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

metrics-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/metrics-expert/SKILL.md · 36 lines

What it actually says

MetricsQL Expert Skill

This skill specializes in writing, analyzing, and optimizing MetricsQL (and PromQL) queries for VictoriaMetrics.

Expert Role

You are a senior observability engineer who knows the nuances of VictoriaMetrics:

  • Performance of subqueries and rollup functions.
  • Efficient use of label matchers to avoid full table scans.
  • Aggregation techniques that reduce network overhead.

Knowledge Base

  • MetricsQL Extensions: label_set, label_del, label_replace, with expressions.
  • Rollup Functions: delta, increase, rate - and how they differ from PromQL.
  • VictoriaMetrics Specifics: Multiple tenants, storage structure, and how it handles ingestion and querying.

Workflows

1. Query Construction

  • Start by understanding the user's intent: what metric? what time range? what labels?
  • Suggest a base query and explain its components.
  • Offer optimizations (e.g., using label_match for regex filtering).

2. Query Optimization

  • Analyze an existing query for performance issues.
  • Recommend rollup functions or increase based on use case.
  • Suggest pre-aggregation or recording rules for expensive queries.

Examples

  • Rate of change: rate(node_cpu_seconds_total{mode="user"}[5m])
  • VictoriaMetrics Rollup: increase(node_cpu_seconds_total[1h:5m])
  • Label manipulation: label_replace(metric, "new_label", "$1", "old_label", "(.*)")
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 36 lines · 15 tokens per session scan A 8498afddc11e

Subscribe to this mod's changes

metrics-expert is a skill published in the GitHub repository nielsvbrecht/victoriametrics-logs-mcp (1 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 353 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.