Comparison

Metrics cardinality pitfalls in bots

Do not label metrics with raw chat ids at high volume.

Comparison1 min readUpdated

Labels like chat_id or user_id explode time-series cardinality and bills. Aggregate or sample instead.

Checklist

  • Allowlist label keys
  • Hash or bucket high-cardinality ids
  • Alert on series count growth
  • Prefer logs for per-chat forensics

Operator notes

Revisit this choice when your traffic, team size or compliance needs change. Keep a one-line decision log in the repo.

Frequently asked questions

Is this exhaustive?

No. It is a practical starting point; verify details in official docs before production.

Related comparisons and tools