tsuga-right-size-metric-cardinality

Official

Stop metric explosions by right-sizing labels

Authortsuga-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

High-cardinality metric labels create too many time series, which drives storage costs up and can degrade query/dashboard performance.

Core Features & Use Cases

  • Diagnose the offending label: Uses audit output like tsuga-audit-metrics to pinpoint the attribute causing a cardinality explosion, then confirms the count with Tsuga aggregations.
  • Choose the right signal placement: Selects whether the value belongs on a span attribute, a structured log field, or via an SDK metric view to preserve the metric while reducing dimensions.
  • Apply changes safely: Enforces a mutation gate with explicit user confirmation, checks downstream monitors/dashboards for breakage risk, and recommends verification via tsuga-smoke-test and tsuga-audit-metrics after deploy.

Quick Start

Use the tsuga-right-size-metric-cardinality skill to refactor a high-cardinality metric attribute by moving it to the correct signal or dropping/bucketing it with an SDK metric view after confirming the downstream impact.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tsuga-right-size-metric-cardinality
Download link: https://github.com/tsuga-dev/agent-plugins/archive/main.zip#tsuga-right-size-metric-cardinality

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.