route template
The pattern of a web path with its variable parts left as placeholders, such as /orders/{id}, used instead of the raw path.
In more detail
A raw path such as /orders/1071 contains an ID, so using it as a label value creates a new series for every order. The route template has a small, fixed set of values, which keeps cardinality bounded while still telling you which endpoint was slow.
Related terms
- metric label — A name and value attached to a metric, such as status="200", that splits one metric into separate series you can compare.
- cardinality — The number of distinct values a metric label can take, which multiplies how many separate series a metric creates.
- semantic conventions — OpenTelemetry's agreed names for common attributes, such as http.route and db.system, so every library records the same fact the same way.
Taught in
- The Three Signals: Logs, Metrics And Traces — Full-Stack Observability: Metrics, Tracing & Logging
- Cardinality And How It Bankrupts You — Full-Stack Observability: Metrics, Tracing & Logging
- Milliseconds Versus Seconds: Naming Metrics And Labels — Prometheus Certified Associate (PCA) Exam Prep