For many engineering leaders, the observability bill has become one of the largest infrastructure expenses. OpenAI reportedly spends $170 million annually on Datadog alone. While most companies aren't operating at OpenAI's scale, teams consistently report that observability tools consume a significant portion of their total cloud spend, and the trend only goes in one direction: up.
The root cause? Observability bills can combine ingestion, hosts, indexed events, retention, queries, and other charges. As telemetry grows, inefficient storage and complex pricing can force teams to choose between visibility and budget. Compare the total cost of keeping the evidence you need, not just one billing unit.
You can reduce these costs by improving storage and query efficiency and choosing the right operating model. This guide shows how to calculate observability Total Cost of Ownership (TCO) for a unified architecture powered by ClickHouse and open source ClickStack. It also compares self-hosted deployments, Self-managed ClickHouse Observability, and the fully managed ClickHouse Observability experience.
Key takeaways
- Observability costs depend on the whole model: Compare ingestion, retention, queries, infrastructure, and engineering time. Efficient storage and clear pricing help teams retain useful telemetry within budget.
- Incumbent architectures are inefficient: Traditional tools built on search indexes are ill-suited for observability workloads. They suffer from massive storage overhead and fail at high-cardinality analytics, causing costs to explode.
- Columnar architecture is the solution: Shifting to a columnar database like ClickHouse is the single biggest cost-reduction lever. It provides superior compression (15-50x) and excels at high-cardinality queries that cripple other systems.
- A true TCO must include "people costs": A self-hosted stack is not free. The "People TCO" for engineering maintenance and on-call duties can add $1,600-$4,800 per month, which can change the comparison between self-hosted deployments and the two ClickHouse Observability experiences, especially for bursty workloads.
- A unified stack (ClickStack) eliminates silos: Adopting a unified architecture like the open-source ClickStack consolidates logs, metrics, and traces, eliminating data duplication and the high TCO of managing multiple, federated systems.
- Significant savings are achievable: Industry leaders like Anthropic, Didi (30% cost cut, 4x faster), and Tesla (1 quadrillion rows ingested) have used this approach to achieve substantial savings.
Why your observability bill is exploding (and it's not your fault)
The explosion in observability costs comes down to architectural failure, not budget failure. Two core problems drive these costs: inefficient technology and misaligned pricing models.
Many traditional observability platforms rely on search indexes like Lucene. While these work well for text search, they're fundamentally mismatched for the aggregation-heavy analytical workloads that modern observability demands.
This mismatch creates two major cost drivers:
- Massive storage and operational overhead: The Lucene inverted index creates huge storage overhead, often multiplying data size, and compresses data poorly. A team ingesting 100TB daily could face storage costs exceeding $100,000 per month. Worse, this architecture is fragile at scale. A single node failure can trigger a massive data rebalancing process that throttles the cluster and can take days to recover, severely impacting stability.
- The high-cardinality crisis: Modern distributed systems generate telemetry rich with unique dimensions (user_id, session_id, pod_name). Systems like Prometheus struggle because every unique combination of labels creates a new time series, leading to an explosion in memory usage and slow queries. Index-based systems crumble under this load. Query times balloon, memory errors appear, and clusters become unstable.
Beyond architecture, misaligned pricing models penalize scale. SaaS vendors often charge a "tax" on visibility: you pay for ingestion, but to keep that data indexed and searchable requires a separate, expensive retention SKU. Furthermore, pricing models based on "per-host" or "per-container" counts punish modern microservices architectures, where infrastructure is ephemeral and highly distributed.
The fix requires two changes: switch to a columnar database like ClickHouse that compresses data properly and handles analytics efficiently, then separate storage from compute using cheap object storage like S3 as your primary data tier. This approach tackles both cost problems head-on.
Columnar storage groups similar data types together, enabling specialized compression codecs that achieve remarkable compression ratios. ClickHouse's internal observability platform compresses 100 PB of raw data down to just 5.6 PB. This level of efficiency contributes to significant cost savings, with our internal use case proving to be up to 200x cheaper than a leading SaaS vendor. These are historical results for ClickHouse's internal workload, not guaranteed compression or savings for the managed ClickHouse Observability service.
ClickHouse was built specifically for fast analytical queries scanning select columns across billions of rows. It handles high-cardinality aggregations that would bring other systems to their knees. Tesla's platform demonstrates this power, ingesting over one quadrillion rows with flat CPU consumption, solving the high-cardinality problem that cripples other metrics systems.
How to calculate your observability TCO: a practical framework
To make good financial decisions, you need a comprehensive Total Cost of Ownership (TCO) model. A proper TCO analysis includes all direct and indirect costs, especially engineering time that often gets overlooked.
This framework compares three primary architectural models:
- SaaS platforms (e.g., Datadog, Splunk): All-in-one vendor solutions priced on data ingestion, hosts, or users.
- Federated OSS (e.g., "LGTM" Stack): Self-hosted stacks using separate open-source tools (Loki for logs, Mimir for metrics, Tempo for traces).
- Unified OSS database (e.g., ClickHouse): Self-hosted or cloud-hosted stacks built on a single, high-performance database for all telemetry.
Use this table as your TCO calculation template:
The table compares architectural cost categories. Self-hosted deployments include infrastructure and database administration costs. Self-managed ClickHouse Observability combines ClickHouse Cloud resource charges with customer time for database configuration and optimization. ClickHouse Observability manages the backend and prices logs and traces by ingested GB and metrics by data points. Use the relevant pricing terms and engineering effort in each calculation.
| Cost category | Variable / calculation method | Key considerations by model (SaaS, Federated, Unified) |
|---|---|---|
| Licensing and service fees | ($/GB Ingested) + ($/Host) + ($/User) + (Add-on Features) | SaaS: This is the primary cost. It is highly variable and scales directly with data volume and system complexity. Federated/Unified (OSS): $0 for open-source licenses. Self-managed ClickHouse Observability: Resource charges for the database, plus any applicable support or service fees. |
| Infrastructure - compute | Instance Cost/hr × Hours/mo × # Nodes | SaaS: Bundled into the service fee. Federated OSS: very high. Requires provisioning and managing separate compute clusters for logs, metrics, and traces. Unified database: medium. A single cluster handles all data types. Cloud models can scale compute to zero. |
| Infrastructure - storage | (Price/GB-mo × Hot Data) + (Price/GB-mo × Cold Data) | SaaS: Bundled, but often with high markups and expensive "rehydration" fees to query older data. Federated OSS: medium. Data and metadata (e.g., labels) are often duplicated across three different systems. Unified database: low. A single store with high-compression (15-20x) and native tiering to object storage minimizes this cost. |
| Operational - personnel | SRE Hourly Rate × Hours/mo (for Maintenance, Upgrades, On-call) | SaaS: minimal. Covered by the vendor's service fee. Federated OSS: very high. Requires 24/7 on-call expertise for 3+ complex distributed systems. Unified database: requires customer operations when self-hosted; Self-managed ClickHouse Observability retains database configuration and optimization work. ClickHouse Observability manages ingestion, schemas, storage, optimization, and scaling. |
| Migration and training | (Engineer Hours × Rate) to rebuild assets & train staff | SaaS: High lock-in. Migrating off requires rebuilding all assets. Federated OSS: High. Team must learn and use 3+ different query languages and datastores (LogQL, PromQL, TraceQL), each with their own scaling properties and considerations. Unified database: Medium. Team learns one powerful, standard language (SQL). |
The 'People TCO': a deeper look at personnel and training costs
The "Operational - personnel" and "Migration and training" line items deserve special attention. While they're easy to list, these "People TCO" categories often become the most significant and unpredictable factors in your entire cost model.
The operational personnel cost varies dramatically by architecture. SaaS platforms require minimal personnel investment. A unified database demands dedicated database and systems engineering expertise. But federated OSS stacks often cost the most, requiring 24/7 on-call coverage for three or more separate distributed systems. The dedicated database expertise described here applies when you operate and configure the backend. ClickHouse Observability manages that work for you; your team still owns instrumentation and incident response.
Migration and training present two distinct challenges:
- Asset migration: For established organizations, this is a large engineering project. You'll need to recreate hundreds or thousands of dashboards, alerts, and service integrations.
- Cultural and educational shift: The ongoing training burden varies significantly. Federated OSS stacks force teams to learn multiple domain-specific query languages (LogQL, PromQL, TraceQL). A unified SQL approach consolidates training onto a single standard, though teams still need to transition from proprietary tools like Splunk's SPL.
Budget for this transition using:
Training Cost = (Number of Engineers x Avg. Training Hours x Loaded Engineer Hourly Rate) + (Productivity Dip %)
While this represents a real short-term cost, the long-term benefits are substantial. Engineers can grow from dashboard operators into data analysts. They gain the ability to run deep, ad-hoc SQL analyses and correlate observability telemetry directly with production business data. This level of insight remains impractical, if not outright impossible with proprietary, siloed tools.
But SQL empowerment brings its own challenge: incident response. When production is on fire, SREs don't have time to craft complex SQL joins. They need answers fast. That's why a database alone won't cut it. ClickStack includes the ClickStack UI, which puts a familiar Datadog-style interface on top of the SQL engine. You get Lucene-style querying for quick debugging during incidents, plus full SQL access when you need to dig deeper for root cause analysis. Your on-call team stays productive while your senior engineers retain full analytical power. The same ClickStack UI is available in ClickHouse Observability, with backend operations managed for you. Agents can access the telemetry through MCP and SQL.
Architectural trade-off: unified SQL vs. federated OSS stacks
Once you select the OSS deployment model for observability, you face a more fundamental decision: why choose a unified SQL database over popular alternatives like the federated "LGTM" stack?
The federated model follows a "divide and conquer" principle. Loki optimizes for index-free log ingestion and label-based querying. Mimir provides horizontally scalable Prometheus-compatible metric storage. Tempo handles high-volume trace ingestion and lookup by ID. Each component scales independently and excels at its specific task.
But this specialization creates significant long-term TCO and usability challenges. You're deploying and securing three or more complex distributed systems because the individual tools have no native support for other signals. For example, Prometheus cannot store logs or traces, and Loki cannot process metrics. Data remains siloed. This forces a choice between label-driven search (Loki) or fast aggregations (Mimir), but you cannot get both in one system. While Grafana provides correlation, it forces engineers into a rigid, opinionated workflow (e.g., metrics-to-traces-to-logs) and fails when exploratory analysis is needed. This model has two critical flaws:
- It fails on high-cardinality data and encourages pre-aggregation. Prometheus's data model struggles with high-cardinality dimensions, leading to performance issues and cost explosion. The common workaround is pre-aggregation, which destroys data fidelity and prevents true root cause analysis because the raw, detailed data is lost before it's even stored.
- Loki's design blocks exploratory analysis. It's fast for lookups by indexed labels (like a trace ID) but cannot be used for the 'search-style' discovery that SREs rely on in a crisis.
The unified SQL model treats observability as a single analytical data problem. All telemetry flows into one database, one system. This brings several key advantages:
- True correlation: Engineers use standard SQL to JOIN across all three signals and correlate with business data to find root causes.
- Operational simplicity: Manage a single, scalable data store instead of three.
- No data duplication: Labels and metadata get stored once, not triplicated across separate databases.
- A single query language: SQL provides a powerful, universal standard most engineers already know.
Furthermore, a unified database is the only architecture that enables true "observability science." This is the ability to JOIN observability data with business data (e.g., user signups, revenue tables) for deeper, more impactful root cause analysis. This strategic differentiator, highlighted by customers like Sierra, connects system performance with business outcomes in a way that siloed tools cannot.
While federated stacks offer specialized tools, the unified SQL approach delivers more power, better economics, and simpler operations by solving signal correlation at the database level.
Designing a cost-effective observability architecture
ClickHouse enables you to abandon the siloed "three pillars" model for a unified architecture where logs, metrics, and traces live in a single database. This eliminates data duplication and unlocks powerful cross-signal analysis through standard SQL.
This unified model also handles high-performance text search for logs, using features like inverted indices (currently in beta) and bloom filters, allowing it to replace both analytical (Prometheus) and search (ELK) backends in a single system.

The following options cover self-hosted deployments and the two ways to use ClickHouse Observability, each with distinct TCO implications:
- Self-hosted ClickHouse: Deploy and manage open-source ClickHouse on your infrastructure. Maximum control comes with the highest operational burden. Collect data with agents like OpenTelemetry Collector and visualize with tools like Grafana.
- Self-hosted ClickStack: An end-to-end open-source stack bundling OpenTelemetry Collector, ClickHouse, and ClickStack UI for a cohesive, ready-to-deploy experience.
- Self-managed ClickHouse Observability: Use the ClickStack UI with a database that your team configures and optimizes. ClickHouse Cloud manages the underlying infrastructure. This option suits engineering teams with database expertise seeking the lowest possible unit costs. Grafana can be used alongside the ClickStack UI.
- ClickHouse Observability: The fully managed experience powered by open source ClickStack. Send OpenTelemetry data to one endpoint; ClickHouse handles ingestion, schemas, storage, optimization, and scaling. Retain full-fidelity telemetry without forced sampling, with affordable long-term history for agent investigations. The ClickStack MCP server provides specialist search, trace, event-pattern, event-delta, and SQL tools, with fast concurrent queries and no API limits. Use the ClickStack UI without SQL expertise. Logs and traces are priced by ingested GB, and metrics by data points. See the pricing page for current terms.
Choose based on your team's expertise, budget, and strategic priorities:
The self-hosted operational-hour estimates below are illustrative. Actual effort depends on workload and team expertise. For both managed experiences, your team still owns instrumentation, access policies, and incident response.
| Feature | Self-hosted ClickHouse | Self-hosted ClickStack | Self-managed ClickHouse Observability | ClickHouse Observability |
|---|---|---|---|---|
| Typical cost model | Fixed infrastructure cost (CapEx/OpEx) | Fixed infrastructure cost (CapEx/OpEx) | Usage-based (compute, storage, egress) | Ingested GB for logs and traces; metric data points |
| Operational hours/week | High (5-15+ hours) | Medium (2-5 hours) | Infrastructure managed; customer time required for database configuration and optimization | Ingestion, schemas, storage, optimization, and scaling managed for you |
| High availability (HA) | Manual setup (replication, keepers) | Manual setup (replication, keepers) | Built-in (2+ availability zones) | Managed by ClickHouse Cloud |
| Security and compliance | User-managed | User-managed | Managed (SAML, HIPAA/PCI options) | Managed infrastructure; customer-configured access policies |
| Best for | Large teams with deep infra expertise and strict data residency needs. | Teams wanting a unified OSS experience without building from scratch. | Engineering teams with database expertise seeking the lowest possible unit costs. | Teams seeking turnkey, fully managed observability without operating the backend. |
Building your own observability on ClickHouse: ClickHouse Cloud with Grafana or a custom UI is also supported. Budget for configuring the database, ingestion, and user experience. This is separate from Self-managed ClickHouse Observability, which uses the ClickStack UI.
Comparing deployment options: a break-even analysis
Compare self-hosted deployments, Self-managed ClickHouse Observability, and ClickHouse Observability using the same telemetry volume, retention period, and query workload. Include the concurrent queries your agents will issue and the history they need. No API limits does not make query execution resource-free; compare the applicable service pricing and engineering effort. Add infrastructure or service charges to the engineering time each option requires. The break-even point depends on which responsibilities your team retains.
With a self-hosted deployment, your team operates the infrastructure and the database. Self-managed ClickHouse Observability removes infrastructure management while leaving database configuration and optimization with your team. ClickHouse Observability also handles ingestion, schemas, storage, optimization, and scaling. In all three cases, your team still owns instrumentation, access policies, and incident response.
Just 5 hours of engineering time per month, at $150/hour, adds $750/month to your TCO. If a managed option saves those five hours, include that $750 saving when comparing it with your self-hosted infrastructure bill. Apply the same calculation to the database work retained in Self-managed ClickHouse Observability. Use your own engineering rate, workload, and service quote; lower unit costs do not automatically mean lower total cost.
Bursty or unpredictable workloads make the case even clearer. Self-hosted clusters must handle peak load, leaving you paying for idle resources during quiet periods. This wastes 40-60% of your compute budget. ClickHouse Cloud's architecture, which separates compute from storage (using object storage), enables automatic scaling (including scale-to-zero) and converts that waste into savings. Users can also take advantage of compute-compute separation to isolate read and write workloads. This allows a lightweight, continuous compute layer for ingestion, while scaling read capacity dynamically based on demand - consuming only the resources required at any given time and keeping costs low. Combined with high compression and object storage, long-term data retention becomes exceptionally cost-efficient, approaching cloud storage provider pricing per terabyte.
These are ClickHouse Cloud database capabilities. With Self-managed ClickHouse Observability, your team configures and optimizes the database and decides how to use them. ClickHouse Observability manages the backend for you, so compare its product pricing with the resource charges and engineering work of the other options rather than treating the billing models as interchangeable.
Self-hosting can make sense when infrastructure control, predictable workloads, and an experienced operations team justify running the stack yourself. Self-managed ClickHouse Observability suits teams with database expertise seeking the lowest possible unit costs on managed infrastructure. ClickHouse Observability is the fully managed choice for teams that want ingestion and database operations handled for them. Compare all three using total cost, available expertise, and the operational responsibilities you want to retain.
Frequently asked questions
To calculate your Total Cost of Ownership (TCO), you must account for all direct and indirect costs. This includes infrastructure (compute, storage, network egress), operational costs (SRE/personnel time for setup, maintenance, and on-call duties), and any software licensing or support fees. The article provides a detailed TCO framework to compare self-hosted deployments, Self-managed ClickHouse Observability, and ClickHouse Observability.
High costs are driven by two main factors: inefficient technology and pricing models that penalize high data volume. Traditional platforms built on search indexes have massive storage overhead and struggle with high-cardinality data (user_id, pod_name). This leads to slow queries and instability. Unpredictable costs stem from ingest-based pricing (per-GB) and per-host fees, which cause your bill to spike with any increase in data volume or system scaling.
ClickHouse reduces costs at an architectural level. Its columnar storage enables highly efficient data compression (often 15-20x), drastically cutting storage needs. It is purpose-built for fast analytical queries on high-cardinality data, which eliminates performance bottlenecks common in other systems. This allows you to store more data for longer at a fraction of the cost and choose between infrastructure billing for customer-configured deployments and GB/data-point pricing for ClickHouse Observability.
Self-hosted ClickHouse or ClickStack runs on infrastructure your team operates, with responsibility for setup, maintenance, scaling, and on-call support. Self-managed ClickHouse Observability uses the ClickStack UI on ClickHouse Cloud: ClickHouse manages the infrastructure, while your team configures and optimizes the database. ClickHouse Observability also handles ingestion, schemas, storage, optimization, and scaling. Cloud infrastructure provides elastic scaling and managed security capabilities; compare the relevant service terms and your remaining engineering work. All options still require your team to instrument applications, configure access, and respond to incidents.
The break-even point typically occurs when a company's Datadog bill for data ingestion and indexing exceeds the cost of hiring 1-2 full-time engineers to manage an observability stack. For organizations ingesting more than a few terabytes of data per day, the savings from switching to a ClickHouse architecture (either self-hosted or cloud) become substantial, often exceeding 90%. For instance, ClickHouse's internal observability use case proved to be 200x cheaper than Datadog, demonstrating what is possible at a very large scale. These thresholds and savings illustrate customer-operated database economics and a historical internal workload. They are not a guaranteed break-even point or a price comparison for the new managed service.
Yes. Pairing the open-source OpenTelemetry (OTel) Collector with ClickHouse is a highly effective and recommended architecture. OTel standardizes data collection for logs, metrics, and traces, preventing vendor lock-in. You can use the OTel Collector to intelligently filter, sample, and transform data at the edge before sending it to ClickHouse, further reducing storage and query costs.
The primary hidden cost of self-hosting is engineering time. This includes the initial setup (2-4 weeks), ongoing maintenance, software upgrades, performance tuning, and 24/7 on-call responsibility. These operational duties can consume 10-20% of a full-time engineer's time, adding thousands of dollars per month to your TCO. These are planning estimates; use your team's actual workload and experience when budgeting.
ClickHouse is a high-performance database, not a full SaaS platform. It replaces the expensive backend of tools like Datadog. Create a complete solution by pairing ClickHouse with open-source tools for collection (OpenTelemetry) and visualization (Grafana or the ClickStack UI). The open-source ClickStack bundles these components for an experience closer to all-in-one platforms. For a ready-to-use managed product, ClickHouse Observability provides the ClickStack UI with ingestion, schemas, storage, optimization, and scaling handled for you.