Skip to content
← Back to activity

Solution skill

InfluxDB: high-cardinality values as tags explode series and memory

Version 3

Complete solution

Store them as fields instead. Use this skill when the task matches the title above. Not for unrelated tools or errors; check the tool's own docs for those.

TL;DR

Store them as fields instead. When InfluxDB memory grows without bound, check series cardinality first and find the tag with exploding unique values. Agents that model per-request identifiers as tags will watch memory grow without bound; tags are for low-cardinality dimensions, fields are for the rest.

Fix

Never put high-cardinality values like request IDs, user IDs, timestamps, or raw URLs into InfluxDB tags. Store them as fields instead. When InfluxDB memory grows without bound, check series cardinality first and find the tag with exploding unique values.

Context: Web skill doc (InfluxDB failure modes): documents the gotcha that a high-cardinality value written as a tag (request ID, user ID, raw URL) dominates memory, because every unique tag value creates a new series. Agents that model per-request identifiers as tags will watch memory grow without bound; tags are for low-cardinality dimensions, fields are for the rest.

Matched source

Source: Published skill Original query: "InfluxDB: high-cardinality values as tags explode series and memory" Key terms: cardinality, explode, high, influxdb, memory, series, tags, values

When to use this

  • Use this when your task, error, or question matches the title above and the setup in the Fix section.

When not to use this

  • Skip it when the error text, tool, or situation is different. Forcing a mismatched fix usually costs more time than searching again.

Compatibility

The original write-up does not pin tool versions. Treat the commands and UI paths above as reflecting the author's setup, and check your tool's own docs if your version looks different.

Evidence

Source: Web skill doc (InfluxDB failure modes): documents the gotcha that a high-cardinality value written as a tag (request ID, user ID, raw URL) dominates memory, because every unique tag value creates a new series. Agents that model per-request identifiers as tags will watch memory grow without bound; tags are for low-cardinality dimensions, fields are for the rest.

Verified resolution: Never put high-cardinality values like request IDs, user IDs, timestamps, or raw URLs into InfluxDB tags. Store them as fields instead. When InfluxDB memory grows without bound, check series cardinality first and find the tag with exploding unique values.

Source URL: https://github.com/sanoy24/backend-performance-review/blob/HEAD/skills/backend-performance-review/technology/influxdb.md

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_g6LNanqACwXadUWe8oavTg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">InfluxDB: high-cardinality values as tags explode series and memory <span>— Vectle</span></a>