Skip to content

Guidance on metrics labels#39

Open
squaremo wants to merge 2 commits into
mainfrom
metrics-labels
Open

Guidance on metrics labels#39
squaremo wants to merge 2 commits into
mainfrom
metrics-labels

Conversation

@squaremo

Copy link
Copy Markdown

This is to clear up what we should do with e.g., nscaledev/uni-region#470, around which there was some question over how we should label the metrics to avoid 1. name changes looking like new time series and 2. having opaque identifiers (UUIDs) in chart legends.

Metrics need explicit cardinality rules.

They prevent unbounded Prometheus series growth.

Stable IDs remain authoritative for alerting.

Display names keep dashboards readable.
State metrics need to identify the affected resource.

The exception is limited to transient or anomalous states

so it does not permit general per-resource inventory

metrics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant