Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

victoriametrics-unused-metrics-analysis

Skill by VictoriaMetrics

Finds unused and rarely queried metrics in VictoriaMetrics using the metric_names_stats API, then suggests drop rules and relabel configs. Built for operators who want to cut wasted storage and ingestion.

  • Score 70
  • 64 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install victoriametrics-unused-metrics-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/VictoriaMetrics/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/diagnostics/skills/victoriametrics-unused-metrics-analysis ~/.claude/skills/victoriametrics-unused-metrics-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install victoriametrics-unused-metrics-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill finds metrics that VictoriaMetrics ingests but never or rarely queries. It uses the metric_names_stats API, available since v1.113.0, which records how many times each metric name is fetched during queries and when it was last fetched. The skill first checks that the tracker returns data, then compares ingested metrics against queried ones. It separates metrics with active series from historical names that have no active series.

The skill reports findings by category, with series counts and an estimated impact. It suggests drop rules through vmagent metric_relabel_configs or a global -relabelConfig, and advises keeping rarely queried metrics under review. It is meant for operators who want to reduce wasted storage, lower cardinality, or cut VictoriaMetrics resource use by removing unneeded metrics. It also lists safety checks, such as testing drops on staging and checking alert and recording rules.

Written from the project's SKILL.md and checked against it.

What it can do

  • Verify tracker availabilityChecks that the metric_names_stats API returns data before starting the analysis.
  • Find never-queried metricsLists metric names with zero query requests, using the le=0 filter.
  • Separate active from historical metricsCounts series per metric group to tell active waste from names with no active series.
  • Find rarely-queried metricsLists metrics queried only a few times, filtered with le=5, for manual review.
  • Categorize unused metricsGroups unused metrics into categories such as Kubernetes, application, and exporter metrics.
  • Recommend drop rulesSuggests metric_relabel_configs or global -relabelConfig drop rules for unused metrics.
  • Produce a usage reportWrites a report with collection window, series counts, and estimated impact of dropping metrics.

What you need

  • VictoriaMetrics v1.113.0 or newer with metric names stats tracking enabled
  • VM_METRICS_URL environment variable set to the VictoriaMetrics base URL
  • VM_CURL_CONFIG curl config file with auth header, if the endpoint requires auth
  • curl and jq available in the shell

Try asking

  • Find unused metrics in my VictoriaMetrics instance and estimate the series saved
  • Which metrics are never queried, and how can I drop them with relabel rules?
  • Show rarely queried metrics from the last collection window for manual review

Good to know

  • Data depends on the collection window; under one day is too early for firm conclusions.
  • Dashboards and alerts are only tracked when they run queries, so some used metrics may look unused.
  • In cluster mode the stats flag must be set on vmstorage nodes.
  • Metrics used only by seasonal reports may show low query counts.

Security check

F
  • Sends keys or private files to a web addressIn plugins/diagnostics/skills/victoriametrics-unused-metrics-analysis/SKILL.md: CURL_CONFIG="$HOME

Checked automatically: plugins/diagnostics/skills/victoriametrics-unused-metrics-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash(curl:*)Bash(jq:*)

Alternatives to victoriametrics-unused-metrics-analysis

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

victoriametrics-unused-metrics-analysis: common questions

What does the metric_names_stats API track?

It tracks how many times each metric name is fetched during queries and when it was last fetched. The feature is enabled by default since v1.113.0.

How do I know if the collection window is long enough?

The skill uses the statsCollectedSince timestamp. It suggests more than 7 days for good confidence and more than 30 days for high confidence.

Does the skill drop metrics automatically?

No. It suggests drop rules and relabel configs, and advises testing them on a staging vmagent before permanent changes.

How do I install victoriametrics-unused-metrics-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is victoriametrics-unused-metrics-analysis free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is victoriametrics-unused-metrics-analysis safe to use?

It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade F (sends keys or private files to a web address). Review the code before you install. How grades work.

What are alternatives to victoriametrics-unused-metrics-analysis?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

victoriametrics-unused-metrics-analysis Install

Add to stack

Loading.