REL06-BP02ReliabilityREL62 of 7 practices publishedReference content

Define and calculate metrics (Aggregation)

Framework question: How do you monitor workload resources?

Risk if not established
High
Framework verified
14 Nov 2026

AWS Well-Architected Framework — REL06-BP02 Define and calculate metrics (Aggregation)

Executive summary

Why this practice matters

Collect logs and metrics from every workload component and the cloud services it depends on, store them centrally, and calculate aggregate measures such as error rates, percentiles and event counts from them. Aggregated, correlated telemetry gives a whole-workload view of behaviour, so teams spot anomalies sooner and find causes of failure faster.

Business impact

  • Shows how the workload behaves as a whole, not just component by component.
  • Surfaces problems that are visible in logs but missing from basic metrics.
  • Shortens the time needed to find the cause of a failure.
  • Keeps enough history to see trends, regressions and recurring issues.

Assign

Accountable and responsible roles

Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.

ResponsibilityAccountability type

Instrument components and collect telemetry

Make sure each component emits well-structured logs and metrics, and that collectors publish them centrally.

Typical roles: Software Engineer, Cloud / Platform Engineer, Software Engineer, Cloud / Platform Engineer

responsible

Define aggregates, queries and dashboards

Calculate aggregate metrics, prepare investigation queries and keep dashboards current.

Typical roles: SRE / Reliability Engineer, Operations Engineer, SRE / Reliability Engineer, Operations Engineer

responsible

Own metric definitions and retention

Approve which metrics matter to the business and the retention policy for telemetry.

Typical roles: Service Owner, Operations Manager, Service Owner, Operations Manager

accountable

Assessment

Assessment and evidence state

States describe how far the practice has moved from intent to something continuously validated.

  1. 0

    Not Assessed

    No documented evaluation of the practice has been performed.

    Indicators

    • No one has examined which logs and metrics the workload produces or how they are combined.
  2. 1

    Not Implemented

    The practice is absent or applied only ad hoc.

    Indicators

    • Logs stay on individual components and are read by hand when something breaks.
    • No aggregate metrics are calculated.
  3. 2

    Partially Implemented

    The practice is applied to some workloads or components, with known gaps.

    Indicators

    • Some components publish logs centrally, but service and business KPI data is missing.
    • A few aggregates exist, and retention follows default settings.
  4. 3

    Implemented

    The practice is applied consistently across defined scope, with evidence.

    Indicators

    • All components and dependencies publish enriched logs centrally.
    • Agreed aggregate metrics and prepared queries support dashboards, and retention follows a defined policy.
  5. 4

    Continuously Validated

    The practice is regularly tested and improved from measured results.

    Indicators

    • Aggregates are reviewed after incidents and new ones added where gaps were found.
    • Trend analysis on retained data drives verified reliability improvements.

Assessment dimensions

  • Telemetry coverage

    Practice-specific

    Absent · Partial · Operational and verified

  • Context and dimensions

    Practice-specific

    Absent · Partial · Operational and verified

  • Aggregate metrics

    Practice-specific

    Absent · Partial · Operational and verified

  • Retention policy

    Practice-specific

    Absent · Partial · Operational and verified

Caution

Do not award maturity for a central logging service alone. Check that logs from all relevant components arrive with useful context, that aggregate metrics are calculated and used, and that retention was chosen deliberately.

Standard

What you should be able to demonstrate

Statements a reviewer should be able to confirm from evidence, not from intent.

  • Logs from workload components and service dependencies are published to a central store.
  • Log entries carry accurate timestamps and context such as a trace identifier, user or account identifier and remote address.
  • Aggregate metrics, such as error rates, latency percentiles and business KPI counts, are calculated from the telemetry and shown on dashboards.
  • Queries for common investigations are prepared in advance and kept with the workload.
  • A retention policy keeps logs long enough for trend analysis and meets legal and contractual requirements.

Trade-offs to hold in view

  • Collecting and storing detailed logs has a cost that grows with volume.
  • Longer retention helps trend analysis but adds cost and may conflict with data rules.
  • Rich context in logs must be balanced against privacy and data protection duties.

Assess

Questions to ask

Each question exposes the difference between an intention and an operating practice.

  • discovery

    Which components and service dependencies send logs to our central store, and which do not?

    Finds blind spots in telemetry collection.

    Usually asked by: SRE / Reliability Engineer, Cloud / Platform Engineer

  • challenge

    Could we calculate the error rate for a single customer journey from our logs today, without writing new code?

    Tests whether logs carry enough context to be aggregated.

    Usually asked by: Software Engineer, SRE / Reliability Engineer

  • evidence

    Can we show the dashboards and saved queries built from aggregated metrics, and the retention policy behind them?

    Requires working aggregates and a deliberate retention choice.

    Usually asked by: Operations Engineer, DevOps Engineer

  • executive

    Which business measures could we not report on during an incident because the data is not collected?

    Links telemetry gaps to business visibility.

    Usually asked by: Service Owner, Technology Executive

Evidence

Required and expected evidence

Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.

EVD-COST-015coreReusable

Workload Business Output Metric Catalogue

A controlled catalogue of workload output metrics, definitions, owners, data sources and aggregation rules used for cost-efficiency and unit-economics analysis.

Shows the business and operational metrics that are calculated from collected telemetry.

Minimum expected content

  • Workload/service scope
  • Business output metric name
  • Definition/formula
  • Business meaning
  • Unit of measure
  • Data source
  • Aggregation period
  • Owner
  • Quality/availability expectations
  • Known caveats
  • Version/change history

Anti-patterns

  • Infrastructure utilization is presented as the only business output metric
  • Hundreds of metrics are collected with no prioritization
  • Metric definitions change silently
  • Business output is manually entered once per quarter while cost is hourly
  • The chosen metric rewards behavior that harms customer value

Review: Review quarterly and when workload purpose, customer behavior or business process materially changes.

EVD-REQ-002supportingReusable

Non-Functional Requirements Specification

A structured set of measurable quality-attribute requirements defining how well a workload or service must perform and operate across areas such as reliability, performance, scalability, security, recovery, usability and maintainability.

Records the observability and log retention requirements the workload must meet.

Minimum expected content

  • Quality attribute/category
  • Requirement identifier and clear requirement statement
  • Business/stakeholder/risk source or rationale
  • Measurable target, threshold or acceptance condition where applicable
  • Scope, workload component, user journey or operating condition to which the requirement applies
  • Measurement/verification method and evidence source
  • Priority or criticality
  • Owner accountable for the requirement
  • Dependencies, assumptions and exceptions
  • Traceability to architecture decisions, tests/SLOs/controls and review status

Anti-patterns

  • Statements such as 'highly available', 'fast', 'secure' or 'scalable' with no acceptance condition
  • Copying generic example thresholds into a workload without rationale
  • Using a solution prescription such as a particular database or scaling mechanism as a substitute for the required outcome
  • Treating every quality attribute as equally important
  • Defining targets with no measurement or test approach
  • NFRs captured once during design and never compared with production evidence
  • Security/compliance claims represented as NFRs without linking to the relevant control or regulatory evidence

Review: Establish during discovery/design and review whenever business criticality, workload demand, threat/compliance context, service commitments or architecture materially change.

Diagnosis

Common evidence gaps

  • Missing sources

    Logs from compute hosts or managed services the workload relies on are never collected.

  • Business KPIs left out

    Telemetry covers infrastructure health but not the business outcomes the workload exists to deliver.

  • Analysis in isolation

    Each component's data is viewed separately, so failures that span components are hard to see.

  • History lost too soon

    Logs and metrics expire before trends or recurring issues can be analysed.

Implementation

Implementation guidance

Identify telemetry sources

List the metrics and logs each component produces, including operating system, runtime, application and cloud service logs such as load balancer and storage access logs.

Collect reliably and centrally

Use collectors that restart automatically and buffer data locally, so a temporary publishing failure does not lose data or affect the application.

Add useful dimensions

Tag telemetry with dimensions such as zone, instance or container ID so correlated failures can be traced to a group of components.

Define and calculate aggregates

Agree the operational and business metrics that matter, and calculate sums, rates, percentiles and histograms from the raw data to show both normal and tail behaviour.

Set retention deliberately

Choose how long to keep logs by weighing the value of history against cost and any legal or contractual limits, and delete data the policy no longer permits.

Measure

Measurements

  • Share of workload components and dependencies sending logs centrally
  • Business KPIs with an aggregate metric on a dashboard
  • Time to identify the failing component during incidents
  • Telemetry history available against the retention policy

Related

Outcomes and practices

Business outcomes

    Practices