victoriametrics-cardinality-analysis

Analyze VictoriaMetrics TSDB status and metric usage to produce a remediation report.

45|4|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/VictoriaMetrics/skills --skill victoriametrics-cardinality-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: victoriametrics-cardinality-analysis
Source: https://github.com/VictoriaMetrics/skills/tree/main/plugins/diagnostics/skills/victoriametrics-cardinality-analysis
Command: npx skills add https://github.com/VictoriaMetrics/skills --skill victoriametrics-cardinality-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

VictoriaMetrics deployments often suffer from excessive cardinality, unused metrics, and histogram bucket bloat, which inflate storage and slow queries. This skill provides systematic analysis to identify high-impact optimizations.

Core Features & Use Cases

  • Detect high-cardinality labels and their impact on series count and storage.
  • Identify unused metrics and cross-reference with alert rules to assess drop viability.
  • Recommend remediation strategies such as relabeling and stream aggregation to reduce series churn.

Quick Start

Ask the skill to run a cardinality analysis report on my VictoriaMetrics deployment and return actionable recommendations.

Frequently Asked Questions about victoriametrics-cardinality-analysis

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

FAQPage Schema
How do I identify high-cardinality labels causing storage bloat in VictoriaMetrics?

Unused metrics in VictoriaMetrics are identified through metric usage stats and cross-referenced with alert rules to assess drop viability. This analysis evaluates whether metrics are truly unused before recommending removal to reduce series churn.

What is the best way to reduce histogram bucket bloat in a TSDB deployment?

Histogram bucket bloat in a TSDB is reduced by applying relabeling and stream aggregation techniques. This skill analyzes metric usage stats to detect bloat and provides concrete configuration recommendations to optimize storage and series count.

How do I apply relabeling rules to optimize VictoriaMetrics cardinality?

Relabeling rules for VictoriaMetrics cardinality optimization are generated based on label-pattern analysis. This skill produces ready-to-use configuration recommendations that target high-cardinality labels to reduce series churn and storage.

Does stream aggregation help reduce series churn in VictoriaMetrics?

Stream aggregation reduces series churn in VictoriaMetrics by consolidating high-cardinality metric streams. This skill recommends stream aggregation strategies alongside relabeling to lower storage consumption and improve query performance.

Why does my VictoriaMetrics deployment have slow queries and inflated storage?

VictoriaMetrics deployments suffer slow queries and inflated storage due to excessive cardinality, unused metrics, and histogram bucket bloat. This skill systematically analyzes TSDB status and label patterns to identify high-impact optimizations.