Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

VictoriaMetrics High Cardinality Time Series Churn Sentinel

Audits VictoriaMetrics TSDB status to detect time-series churn and tag cardinality explosion.

Categories
CloudInfrastructure

How it works

This workflow connects to the VictoriaMetrics Prometheus-compatible TSDB status endpoint (/api/v1/status/tsdb) to audit time series cardinality and index churn. In modern Kubernetes and microservice observability stacks, misconfigured Prometheus exporters or ad-hoc application metrics that embed user IDs or UUIDs into metric labels cause massive time-series churn. When active series counts surge, VictoriaMetrics indexdb memory consumption explodes, increasing disk I/O and slowing down dashboard queries. This sentinel identifies high-churn metric names and alerts observability engineers before storage bounds are violated.

What you get

  • Real-time visibility into VictoriaMetrics active series and label cardinality.
  • Identification of culprit metric names responsible for cardinality explosion.
  • Actionable Slack notifications detailing total series and top churning metrics.

Who it's for

  • Observability and Monitoring Engineers running VictoriaMetrics and Prometheus.
  • SREs safeguarding Grafana dashboard responsiveness and metrics query SLAs.
  • Platform Infrastructure teams operating centralized telemetry backends.

Why orchestrate this with Kestra

  • Automated Metric Surveillance: Periodically inspects internal TSDB indices without deploying extra monitoring agents.
  • Native API Capabilities: Interacts directly with standard HTTP endpoints from ephemeral runners.
  • Incident Orchestration: Notifies platform engineers directly in team collaboration channels.

Prerequisites

  • VictoriaMetrics single-node or vmselect service accessible over port 8428.
  • Slack incoming webhook URL configured in SLACK_WEBHOOK secret.

Quick start

  1. Import this blueprint into your Kestra workspace.
  2. Add SLACK_WEBHOOK secret to your namespace.
  3. Specify vm_select_url and max_churn_rate_per_hour.
  4. Enable the schedule trigger for continuous TSDB surveillance.

How to extend

  • Inspect label value cardinality via /api/v1/status/tsdb?topN=20.
  • Trigger an automated metric drop relabeling rule via vmagent.
  • Route critical alerts to PagerDuty or Opsgenie.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.