Skip to main content
When you view a single line on a metric chart — for example, http.client.request.duration — that line often aggregates measurements coming from multiple sources. Dimensions (also called attributes or labels) are key-value pairs attached to each metric data point. They let you split, filter, and group an aggregated metric into meaningful time series so you can investigate and act on what matters. Consider two calls that use the same metric name but originate from different services:
  • cart-service called api.payments.com and returned quickly (245 ms).
  • notification-service called api.email.example.com and was slow (5.12 s).
Each measurement uses the same metric name but includes different attributes (dimensions):
Split the metric by service.name and the single aggregated line becomes two lines — one for cart-service and one for notification-service — making it obvious which service is experiencing higher latency or variability.
The image shows two line graphs comparing HTTP client request durations for two different servers, "api.email-provider.com" and "api.payments.com", over a sequence of intervals.
Below is a realistic representation of what each metric data point might look like in a telemetry export. The two examples share the same metric name, description, and unit, but differ in attributes and value. Example: cart-service data point
Example: notification-service data point
Note the user.id attribute in both examples. While it could be useful for certain analyses, attributes like raw user identifiers are high-cardinality and can drastically increase the number of unique time series, complicating queries and increasing storage and cost. A dimension (attribute) provides context to a metric data point as a key-value pair. That context enables:
  • Filtering the metric data to focus on a subset (for example, one service or one server).
  • Grouping to form multiple time series from one metric (for example, one time series per service.name).
  • Building dashboards that present richer perspectives by combining multiple dimensions.
The image is a presentation slide titled "Dimensions – Why It Matters" highlighting the importance of enabling filtering, grouping, dashboards, and forming unique timeseries, alongside an illustration of a dashboard interface.
When you break an aggregated metric down by relevant dimensions, you turn one line into multiple meaningful time series. This enables targeted investigation: instead of guessing which component caused a latency spike, you can filter or group by service.name, server.address, http.response.status_code, or other attributes to quickly localize the issue.
The image is a table titled "Same Metric, Different Dimensions," showing data about various services, their server addresses, HTTP response status codes, user IDs, and request durations.
Quick reference — how dimensions are commonly used:
OperationPurposeExample
FilterNarrow metric data to a subset for focused inspectionservice.name = "cart-service"
Group / SplitProduce multiple time series from one metric for comparisongroup by service.name
AggregateCompute summaries across groups (sum, avg, p99)avg(http.client.request.duration) by server.address
Annotate / TagAdd context for dashboards and alertshttp.response.status_code = "500"
Best practices and considerations:
  • Choose stable, meaningful keys (e.g., service.name, region, env).
  • Avoid high-cardinality attributes (raw user.id, request paths with IDs) on frequently queried metrics.
  • Use dimensions to narrow the scope of queries and reduce costs without losing actionable context.
  • Follow naming and semantic conventions (e.g., OpenTelemetry attribute names) for consistency across tools.
Use dimensions that assist analysis but avoid introducing unnecessary high-cardinality attributes (like raw user IDs) into frequently queried metrics. High cardinality increases storage, query complexity, and cost.
Dimensions are fundamental to observability: they transform aggregated metrics into actionable time series and provide the context needed to detect, investigate, and resolve issues more efficiently. Links and references

Watch Video