AWS Observability Architecture Mistakes: When Monitoring Becomes a Major Expense
Design CloudWatch logs, metric dimensions, queries and tracing around diagnostic value, bounded cardinality and explicit telemetry budgets.
1. The scenario: monitoring costs more than the application
An API team enables DEBUG logging in production during an incident. Every request emits headers, payload fragments and dependency details. A collector sends the same stream to CloudWatch Logs and another paid destination. Request IDs also become custom metric dimensions.
The incident ends, but the configuration remains. Telemetry grows with traffic, while most of it never answers an operational question. Visibility is necessary; its collection and retention architecture needs an owner and a volume model.
Prices below are illustrative USD assumptions, not current regional quotes. Examples ignore free allowances, tier discounts and taxes to expose the calculation.
2. How it works: logs, metrics and traces have different economics
Logs preserve discrete events. Metrics summarize bounded time series. Traces describe a request across dependencies. All three can contribute to an incident investigation, but copying every request into all three at full fidelity creates avoidable volume.
CloudWatch Logs charges can include ingestion, retained compressed data, queries and other selected features. Logs Insights queries generally charge for scanned data under their applicable pricing. Narrowing query time and log groups can reduce work; a short output table does not imply a cheap scan.
Custom metric identity includes namespace, name and dimension combination. Distinct observed combinations create distinct series. A request identifier is useful in a log or span and usually disastrous as a metric dimension. CloudWatch metric-filter guidance explicitly warns about high cardinality.
3. Cost components: the collection chain is billable
| Layer | Cost driver |
|---|---|
| Application | Serialization, CPU and network for telemetry |
| Collector | Container/VM capacity, buffering and retry volume |
| Logs | Ingestion, storage, subscriptions/exports and queries |
| Metrics | Custom series, API retrieval, alarms and selected feature meters |
| Tracing | Recorded/retrieved/scanned trace data under the selected service |
| Destinations | Second ingestion, storage, transfer and vendor charges |
Standard service metrics and custom metrics do not all have the same price treatment. Container Insights, Application Signals and other selected monitoring features can add their own meters. Follow CloudWatch cost analysis by usage type instead of treating all spend as ordinary log storage.
4. Where things go wrong
High-cardinality metric labels multiply actual series. A metric with 200 tenants, 20 routes and five status groups has a potential 20,000 combinations if all are observed. Adding a unique request ID removes the useful bound. Use aggregate dimensions and query raw events for individual requests.
Default indefinite log retention can preserve old debug data long after its purpose expires. Retention should follow investigation, legal and security needs, with different classes of data assigned different policies.
Duplicate destinations can be deliberate, for example operational search and a security archive. They still need distinct purposes. Trace the source, collector, subscription and destination so multiple pipelines do not independently collect the same event.
Sampling must preserve diagnostic meaning. Head sampling decides before the outcome is known; tail sampling can retain interesting completed traces but requires buffering and processing. Keep reliable unsampled aggregate signals for error-rate and latency objectives. Do not infer exact rare-event counts from a sampled trace stream.
Logs can contain credentials or personal data. Avoid producing sensitive fields in the first place, and apply appropriate access, redaction and retention controls. A cheaper pipeline must still meet audit obligations.
5. Real-world example: volume and cardinality
Assume 50 million requests/month and 4 KB of telemetry per request, using decimal units. That is 200 GB sent to each complete log destination. At an assumed $0.50/GB ingestion rate, one copy costs $100 and two equivalent copies cost $200 before storage, query and export charges.
Reducing routine output to 1 KB/request creates 50 GB and a $25 ingestion line at the same rate. If two full paid copies are still required, they total $50; the modeled ingestion difference from the original two-copy design is $150.
For metrics, assume 2,000 continuously active custom series at a flat illustrative $0.30/series-month: $600/month. Redesigning to 200 useful series gives $60/month, a $540 difference under that simplified rate. Actual pricing tiers, partial-month activity, feature types and API calls can change the billed amount.
Finally, twenty daily queries scanning 100 GB each over 30 days scan 60,000 GB. At an assumed $0.005/GB, queries cost $300/month. Scanning 10 GB per query lowers that example to $30. Query optimization is separate from reducing ingestion.
6. Alternatives: keep useful detail selectively
Use structured application events with severity, operation, outcome and a correlation ID. Keep stable operational aggregates as metrics, and send detailed request context through controlled logs or traces.
Choose the log class and retention design against required features. Standard and Essentials (formerly Infrequent Access) log classes have different capabilities and ingestion prices; storage and Logs Insights query pricing is the same between these classes. Essentials lacks features such as subscription filters, metric filters and Live Tail. The class cannot be changed after a log group is created, so plan migration and collection deliberately. See the current log-class feature matrix.
A durable archive can serve long-term retention while a shorter operational window serves frequent search. Add export, storage, retrieval and restore/search workflow costs before claiming the archive is cheaper.
7. Practical recommendations
Define a telemetry contract per service: expected GB per million requests, bounded metric dimensions, sampling policy and retention owner. Give temporary DEBUG changes an expiry and a rollback mechanism.
Compare ingested bytes with business request volume. Attribute growth to source categories and deployments. Test a representative incident investigation after reducing volume; retaining lots of data is not the same as being able to diagnose failure.
Set budgets and alerts on usage trends, but avoid disabling critical evidence during an incident. Use native metering to distinguish logs, queries, custom metrics, traces and monitoring add-ons.
8. CloudVectra perspective: monitoring should have a business owner
CloudVectra cost insights helps review observability as part of each workload’s complete bill. Cost Centers can make shared collection and security retention costs explicit.
Use anomaly detection to support investigation of telemetry growth. Collection configuration and native CloudWatch usage types identify the source; cost visibility helps prioritize and track a controlled change without replacing the monitoring system.
Continue the architecture series
- Previous: AWS Kubernetes and Container Architecture: The Cost of Overprovisioning
- Next: AWS Disaster Recovery Architecture: Paying for Infrastructure You Rarely Use
- Compare the Azure architecture
- Browse Cloud Architecture & Governance