मापनकार्डिनैलिटीधर्मः। वितरितान्वेषणे (११ नव) कुत्र। अत्र कति श्रेण्यः मापने। labels, series budget। न user-id label; कार्डिनैलिटीधर्मः।
English (minimizable)
After distributed tracing (11 Nov), this post covers metrics cardinality: label rules, series budgets, aggregation and exemplars, path templates, growth alerts, edge relabel drops, histogram buckets and when to use events instead of series.
पूर्ण-शीर्षकम् / Full title
मापनकार्डिनैलिटीधर्मः: A Metrical Codification of Metrics Cardinality (with English glosses)
English · overview and topics (minimizable)
What this post is about
Metrics cardinality is the count of unique time series created by label combinations. Unbounded labels are an availability and cost incident in slow motion.
Topics covered
- Series explosion risk
- Labels as finite dimensions
- Per-service series budgets
- Aggregate plus exemplars
- Path template normalization
- Growth detection alerts
- Drop at scrape edge
- Bounded histogram buckets
- Metrics vs events for detail
- Trace vs metric vs budget roles
Sanskrit title
मापनकार्डिनैलिटीधर्मः = māpana-kārḍinailiṭī-dharmaḥ “dharma of measurement cardinality”.
English
Minimizable; Sanskrit-first.
परम्परा-सन्धिः / Series links
| पूर्वं / Prior | अत्र / Adds | न पुनः / Does not repeat |
|---|---|---|
| वितरितान्वेषणधर्मः (११ नव) | traces | wider attributes ok |
| दोषकोषधर्मः (१० नव) | budgets | need clean SLI series |
| संपीडनधर्मः (२० अक्टो) | compression | related cost |
| लघुटिप्पणीधर्मः (१८ अक्टो) | annotations | not series |
| इदम् | metrics cardinality control | - |
ग्राह्य-त्याज्य-विवेकः / Keep and avoid
ग्राह्यम् / Keep
१. finite enum labels only: no user ids
२. series budget per service: enforce
३. counters/histograms first: not gauge-per-entity
४. template paths/methods: before label
५. alert on series growth: before invoice
६. relabel/drop at edge: not after store
७. bounded hist buckets: intentional
त्याज्यम् / Avoid
- label raw URLs and user ids
- unlimited custom metrics with no quota
- dynamic unbounded histogram buckets as default
अध्याय-योजना / Chapter plan
| प्रकरणम् | विषयः | छन्दः | श्लोकाः |
|---|---|---|---|
| १ | मङ्गलं बीजं च / Opening | अनुष्टुभ् | २ |
| २ | मूलतत्त्वानि / Core | अनुष्टुभ् | २ |
| ३ | मुख्यविधिः / Method | उपजाति | १ |
| ४ | रक्षा · विधिः / Guards | अनुष्टुभ् | २ |
| ५ | विवेक · सीमा / Judgment | अनुष्टुभ् | २ |
| ६ | पूर्वसन्धिः / Series links | उपजाति | १ |
| ७ | उपसंहारः / Close | अनुष्टुभ् | २ |
पारिभाषिक-कोशः / Glossary
| Modern English | संस्कृतम् | Note |
|---|---|---|
| cardinality | कार्डिनैलिटी | |
| time series | कालश्रेणी | |
| label | लेबलः / label | |
| series budget | श्रेणीकोषः | |
| exemplar | उदाहरणबिन्दुः | |
| relabel | पुनर्लेबलम् | |
| histogram bucket | ऐतिह्यद्रोणी | |
| scrape | मार्जनम् / scrape | |
| high cardinality | उच्चकार्डिनैलिटी | |
| normalization | सामान्यीकरणम् |
श्लोकः १ (अनुष्टुभ्)
मापनकार्डिनैलिटीधर्मस्तस्माद् मितलेबलम् ॥१॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
मापने यदि अनन्तलेबलाः तदा कोषो दह्यते ।
मापनकार्डिनैलिटीधर्मस्तस्माद् मितलेबलम् ॥१॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| मापने | in metrics |
| अनन्तलेबलाः | endless labels |
| कोषः | treasury |
| दह्यते | burns |
| मापनकार्डिनैलिटीधर्मः | metrics-cardinality dharma |
| मितलेबलम् | measured labels |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| मापनकार्डिनैलिटीधर्मः | metrics-cardinality dharma |
| मितलेबलम् | bounded labels |
English sense
Metrics cardinality is how many unique time series your label combinations create. Unbounded labels bankrupt scrapers and bills.
Context / topic
Topic: why cardinality. Distinct from tracing span attributes which are event-scoped.
वृत्तमिति: ८-८-८-८।
श्लोकः २ (अनुष्टुभ्)
user id label युद्धाय ॥२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
labels = dimensions not free text ।
user id label युद्धाय ॥२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| labels | labels |
| dimensions | dimensions |
| not | not |
| free | free |
| text | text |
| user | user |
| id | id |
| label | label |
| युद्धाय | for war |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| dimensions | finite enums |
| user id label | explosion |
English sense
Use low-cardinality dimensions such as region method status class. Never put user ids or URLs raw into metric labels.
Context / topic
Topic: label rules.
वृत्तमिति: ८-८-८-८।
श्लोकः ३ (अनुष्टुभ्)
unlimited custom metrics fashion ॥३॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
budget series per service ।
unlimited custom metrics fashion ॥३॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| budget | budget |
| series | series |
| per | per |
| service | service |
| unlimited | unlimited |
| custom | custom |
| metrics | metrics |
| fashion | fashion |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| series budget | quota |
| unlimited custom | bill shock |
English sense
Give each service a series budget and reject or aggregate overflows. Custom metrics without quotas are a shared fire.
Context / topic
Topic: budgets.
वृत्तमिति: ८-८-८-८।
श्लोकः ४ (अनुष्टुभ्)
every unique as gauge अपूर्णम् ॥४॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
aggregate first then exemplars ।
every unique as gauge अपूर्णम् ॥४॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| aggregate | aggregate |
| first | first |
| exemplars | exemplars |
| every | every |
| unique | unique |
| gauge | gauge |
| अपूर्णम् | incomplete |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| aggregate | histograms counters |
| every unique gauge | anti-pattern |
English sense
Prefer counters and histograms with exemplars linking to traces over a gauge per entity.
Context / topic
Topic: aggregation.
वृत्तमिति: ८-८-८-८।
श्लोकः ५ (उपजाति)
/users/42 मा ।
/users/:id
योग्यम् ॥५॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
path templates not raw paths
/users/42 मा ।
/users/:id
योग्यम् ॥५॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| path | path |
| templates | templates |
| raw | raw |
| paths | paths |
| /users/42 | /users/42 |
| मा | not |
| /users/:id | /users/:id |
| योग्यम् | fit |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| path templates | normalize |
| raw paths | card bomb |
English sense
Normalize HTTP paths and gRPC methods to templates before labeling.
Context / topic
Topic: normalization.
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ६ (अनुष्टुभ्)
bill surprise अन्धता ॥६॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
detect card growth with series count alerts ।
bill surprise अन्धता ॥६॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| detect | detect |
| card | card |
| growth | growth |
| series | series |
| count | count |
| alerts | alerts |
| bill | bill |
| surprise | surprise |
| अन्धता | blindness |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| series count alerts | early warn |
| bill surprise | too late |
English sense
Alert when series count or scrape size jumps. Waiting for the invoice teaches nothing useful.
Context / topic
Topic: detection.
वृत्तमिति: ८-८-८-८।
श्लोकः ७ (अनुष्टुभ्)
store then filter waste ॥७॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
drop or relabel at scrape edge ।
store then filter waste ॥७॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| drop | drop |
| relabel | relabel |
| scrape | scrape |
| edge | edge |
| store | store |
| then | then |
| filter | filter |
| waste | waste |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| edge drop | cheap |
| store then filter | expensive |
English sense
Cull bad labels at the agent or gateway. Ingesting garbage to delete later still costs write amplification.
Context / topic
Topic: edge control.
वृत्तमिति: ८-८-८-८।
श्लोकः ८ (अनुष्टुभ्)
infinite dynamic buckets करः ॥८॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
histograms: bounded buckets ।
infinite dynamic buckets करः ॥८॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| histograms | histograms |
| bounded | bounded |
| buckets | buckets |
| infinite | infinite |
| dynamic | dynamic |
| buckets | buckets |
| करः | tax |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| bounded buckets | stable |
| infinite dynamic | series churn |
English sense
Keep latency bucket boundaries intentional. Unbounded dynamic buckets recreate cardinality under a kinder name.
Context / topic
Topic: histograms.
वृत्तमिति: ८-८-८-८।
श्लोकः ९ (अनुष्टुभ्)
metric per ticket id मा ॥९॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
metrics for SLOs; events for rare detail ।
metric per ticket id मा ॥९॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| metrics | metrics |
| SLOs | SLOs |
| events | events |
| rare | rare |
| detail | detail |
| metric | metric |
| per | per |
| ticket | ticket |
| id | id |
| मा | not |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| SLO metrics | steady signals |
| per ticket metric | wrong tool |
English sense
Use metrics for continuous signals and logs or traces for rare high-cardinality detail.
Context / topic
Topic: right tool.
वृत्तमिति: ८-८-८-८।
श्लोकः १० (उपजाति)
मापन labels tight ।
दोषकोषः
uses clean SLI ॥१०॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
अन्वेषण attributes wide
मापन labels tight ।
दोषकोषः
uses clean SLI ॥१०॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| अन्वेषण | trace |
| attributes | attributes |
| wide | wide |
| मापन | metrics |
| labels | labels |
| tight | tight |
| दोषकोषः | error budget |
| uses | uses |
| clean | clean |
| SLI | SLI |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| अन्वेषण | tracing |
| दोषकोषः | error budget |
English sense
Traces may carry wider attributes per event; metrics must stay tight; clean SLIs feed honest error budgets.
Context / topic
Topic: series distinctions.
सन्धिः: अन्वेषण घटनाविस्तार; मापन संक्षिप्तआयाम; कोष शुद्धSLI।
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ११ (अनुष्टुभ्)
एभिर्मापनकार्डिनैलिटीधर्मो मितलेबलसमन्वितः ॥११॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
label-rules budget normalize detect edge पञ्चकम् ।
एभिर्मापनकार्डिनैलिटीधर्मो मितलेबलसमन्वितः ॥११॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| label-rules | label-rules |
| budget | budget |
| normalize | normalize |
| detect | detect |
| edge | edge |
| पञ्चकम् | five-set |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| पञ्चकम् | label-rules budget normalize detect edge |
English sense
Five limbs: finite label rules, per-service series budgets, path normalization, growth alerts and edge drop or relabel.
Context / topic
Topic: checklist.
वृत्तमिति: ८-८-८-८।
श्लोकः १२ (अनुष्टुभ्)
मितं मापकोषं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
इति मापनकार्डिनैलिटीधर्मसारो मितलेबलसमन्वितः ।
मितं मापकोषं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| इति | thus |
| मापनकार्डिनैलिटीधर्मसारः | cardinality essence |
| मितलेबलम् | bounded labels |
| मितम् | measured |
| मापकोषम् | metrics treasury |
| क्रियायोग्यम् | operable |
| तन्त्रधर्मः | system dharma |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| मितं मापकोषम् | measured metrics treasury |
| तन्त्रधर्मः | platform dharma |
English sense
Closing: count what matters, label what is finite and keep the metrics treasury from burning.
Context / topic
Topic: close.
उपसंहारन्यायः: लेबलं सीमां देहि; पथं संक्षिप; वृद्धिम् पश्य।
वृत्तमिति: ८-८-८-८।
श्लोकसूची / Verse index
१. Why card
२. Label rules
३. Budgets
४. Aggregate
५. Normalize
६. Detect
७. Edge drop
८. Histograms
९. vs events
१०. Series
११. Five limbs
१२. Close
सन्दर्भाः / References
- Prior: tracing 2026-11-11; error budgets 2026-11-10.
- Domain: metrics cardinality control.
- English minimizable; Sanskrit-first.
- Style: no em dash; no Oxford comma in English clauses.