stream-aggregation-helper

Design VictoriaMetrics stream aggregation rules for vmagent deployments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

VictoriaMetrics stream aggregation reduces cardinality, ingestion load, and query cost by processing data at vmagent before storage.

Core Features & Use Cases

  • Phase-guided design: Guides through gate, intake, decide, config, and verify phases for safe aggregation planning.
  • Flexible topology and outputs: Supports various by/without configurations and outputs like rate_sum, total, min/max, quantiles, histogram_bucket, with HA/sharding considerations.
  • Rollout and verification: Provides a structured rollout and cross-check queries to confirm equivalence with raw data.

Quick Start

Draft a ready-to-apply stream-aggregation rule and rollout plan for a target metric to reduce cardinality and ingestion load.

Frequently Asked Questions about stream-aggregation-helper

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

FAQPage Schema
How do I reduce high cardinality and ingestion load in VictoriaMetrics?

VictoriaMetrics stream aggregation reduces cardinality, ingestion load, and query cost by processing metrics at vmagent before storage. It groups data by selected labels and applies output functions like rate_sum or quantiles.

What outputs and label configurations can I use for VictoriaMetrics stream aggregation?

VictoriaMetrics stream aggregation supports by/without label configurations and outputs including rate_sum, total, min/max, quantiles, and histogram_bucket. These options allow flexible metric grouping for cardinality reduction.

How do I roll out and verify stream aggregation rules in vmagent?

Rolling out stream aggregation in vmagent follows a structured phase-guided process spanning planning, deployment, and verification. Cross-check queries confirm data equivalence between aggregated and raw metrics.

Does VictoriaMetrics stream aggregation work with high availability and sharded architectures?

VictoriaMetrics stream aggregation supports high availability and sharded vmagent deployments. The design phase includes topology considerations to ensure aggregation rules function correctly across distributed architectures.

When should I use stream aggregation instead of recording rules for metrics?

Use stream aggregation when you need to reduce cardinality and sample frequency at ingestion time via vmagent, before data reaches storage. Recording rules query existing stored data, whereas stream aggregation pre-processes incoming streams.

What phases are involved in designing a VictoriaMetrics stream aggregation rule?

Designing stream aggregation rules follows five phases: gate, intake, decide, config, and verify. This structured approach ensures safe aggregation planning by evaluating requirements for labels, intervals, outputs, and rollout steps.