Quick revision
The short answer
I would not start with the build-or-buy question. First I find which teams and signals drive the cost, because a small share of sources, such as high-cardinality metrics, debug logs and full trace capture, usually drives most of the bill, and I apply controls like sampling, retention tiers, removal of unused metrics and showback before any migration. In parallel I standardise instrumentation on OpenTelemetry so the backend can change, compare an in-house stack on total cost including the platform team, and usually end with a mix decided per signal by a cost model and an agreed quality bar.
What to remember
In this answer, we treated the observability bill as a data problem first: we found which teams and signals drive it, applied sampling, retention tiers, removal of unused metrics and showback before any migration, and compared an in-house open-source stack on total cost including a platform team. We standardised instrumentation on OpenTelemetry so the backend can change and our negotiating position improves, and decided a mix signal by signal with a cost model and an agreed quality bar.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would not start with the build-or-buy question. First I find which teams and signals drive the cost, because a small share of sources, such as high-cardinality metrics, debug logs and full trace capture, usually drives most of the bill, and I apply controls like sampling, retention tiers, removal of unused metrics and showback before any migration. In parallel I standardise instrumentation on OpenTelemetry so the backend can change, compare an in-house stack on total cost including the platform team, and usually end with a mix decided per signal by a cost model and an agreed quality bar.
Why this question is asked
Observability bills grow quietly because every team adds a little, nobody sees the total, and vendors bill by volume, so cost tracks enthusiasm rather than value. Going from 4 to 14 percent of the infrastructure bill in two years is a common story, and finance is right to ask for a plan. Interviewers ask this to see whether a senior leader decides from data and total cost rather than from a preference for building or buying. In this answer, we will find where the money goes, apply controls that work with any backend, cost an in-house stack honestly, use OpenTelemetry to keep options open, and decide on a mix with a cost model.
1Start With Usage: Where the Money Goes
Before comparing options, we need a breakdown. Suppose the infrastructure bill is 50 million a year, so observability is about 7 million. The vendor's usage reports, joined with service ownership, tell us cost per team and per signal. In most companies the shape is similar: logs are the biggest line, a few services produce most of the volume, and a surprising share of data is never queried.
| Source | Share of bill | Typical cause |
|---|---|---|
| Logs from the top 10 services | 40% | debug level left on, full payloads logged |
| Other logs | 15% | normal operational logging |
| Custom metrics | 25% | high-cardinality labels, unused metrics |
| Traces | 20% | every request captured, long retention |
Notice that the first row is not a platform problem at all. Ten services and a few logging habits drive almost half the bill, and that is true whoever stores the data.
2Controls That Work With Any Backend
Several controls cut cost without changing vendors, and they would be needed in-house too. Trace sampling keeps, say, 10 percent of normal requests but 100 percent of errors and slow requests, using tail-based sampling in the OpenTelemetry collector. Retention tiers keep detailed logs for 7 days and archive the rest to cheap storage. Unused metrics, those no dashboard or alert has read in 90 days, are dropped at the collector.
The most powerful control is visibility. Showback sends each team a monthly report of what its telemetry costs; chargeback goes further and charges it to the team's budget. When a team sees that one debug log line costs 200,000 a year, it gets fixed in a sprint. These measures often cut 30 to 50 percent of the bill within a quarter, which changes the rest of the decision.
3The Real Cost of an In-House Stack
An in-house stack on open-source tools, for example Grafana Mimir or Prometheus for metrics, Loki or OpenSearch for logs and Tempo or Jaeger for traces, removes licence fees, and the storage cost on object storage is often a fraction of vendor pricing. That is the attractive part.
The other part is people and risk. Running observability for a large company typically needs a platform team of perhaps 6 to 10 engineers, with on-call for a system that must be up when everything else is down, plus compute and storage, upgrades, and features the vendor provided that we now build or lose. At a loaded cost of around 250,000 per engineer, 8 engineers is 2 million a year before any infrastructure. So we compare total cost of ownership, including people and migration effort, not licence fee against storage price.
4OpenTelemetry Keeps the Options Open
Whatever we decide, I would standardise instrumentation on OpenTelemetry, the vendor-neutral standard for producing metrics, logs and traces. Services emit OTLP to a collector we run, and the collector routes data to whichever backend we choose. Changing the backend then means changing collector configuration, not touching every service.
This also changes the negotiation. A vendor whose customer can move in months, not years, prices differently from one whose customer is locked in by proprietary agents in 400 services. The collector is also where sampling, filtering and routing rules live, so it serves the cost controls from the previous section.
5Deciding the Mix With a Cost Model
In practice, the answer is usually a mix, decided signal by signal. For each class of data we estimate the cost of each backend at our volumes, including people, and check it against an agreed quality bar: query latency during incidents, retention, alerting reliability and features teams actually use.
- Is it queried often during incidents?from query logsYesKeep on the best tool for searchNoCandidate for cheap storage
- Does the cheaper backend meet the quality bar?latency, retention, featuresYesMove it, with a migration planNoKeep it with the vendor
- Cost model includes people?platform team, on-call, migrationYesDecide and record whyNoComplete the model first
3 steps in order. Play them, or step through them one at a time.
A typical outcome is to keep the vendor for traces and the metrics teams rely on for alerting, and to move high-volume, low-value logs to object storage with a label-indexed engine. Each part is decided by numbers we can show finance and revisit next year.
6Presenting the Plan
To finance, I would present three phases with numbers. First, controls and showback within a quarter, with an expected saving range. Second, OpenTelemetry adoption across services, which costs engineering time but creates the option to move. Third, a decision on which signals move in-house, based on the cost model and a pilot with one signal and a few teams.
I would also agree a target, for example observability back under 8 percent of the infrastructure bill within a year, and a quality bar that engineering will not trade away, because the cheapest observability is the one that fails during the outage it exists for.
7Follow-up questions
What if teams resist sampling because they fear losing data?
Tail-based sampling keeps every error and slow request, which are the traces people actually open. We can show from query logs how rarely sampled-away traces would have been viewed, and keep full capture for a short window during incidents if needed.
Is showback enough, or do we need chargeback?
Showback often achieves most of the effect, because engineers fix waste once they can see it. Chargeback adds enforcement but also friction and arguments about allocation. I would start with showback and quotas for the worst outliers, and introduce chargeback only if behaviour does not change.
When does building in-house clearly win?
At very large volumes, where licence fees reach many millions a year and the company already runs a strong platform organisation and object storage at scale. Below that, the people cost and the risk usually outweigh the savings.
8Conclusion
In this answer, we treated the observability bill as a data problem first: we found which teams and signals drive it, applied sampling, retention tiers, removal of unused metrics and showback before any migration, and compared an in-house open-source stack on total cost including a platform team. We standardised instrumentation on OpenTelemetry so the backend can change and our negotiating position improves, and decided a mix signal by signal with a cost model and an agreed quality bar.
Open with
I would start with usage, not with the build-or-buy debate. Using the vendor's usage data joined with service ownership, I find which teams and signals drive the cost, and usually a small share of sources, high-cardinality metrics, debug logs left on, full trace capture, makes up most of the bill.
Then, if they want more
Then I apply controls that help with any backend: tail-based trace sampling that keeps errors and slow requests, retention tiers, dropping metrics nobody has queried in ninety days, and showback so each team sees what its telemetry costs. Those often cut a third or more of the bill in a quarter.
In parallel I standardise instrumentation on OpenTelemetry with our own collectors, so the backend becomes a configuration choice, which also strengthens our position with the vendor.
Only then do I compare an in-house open-source stack honestly: it saves licence fees, but it needs a platform team, perhaps six to ten engineers, on-call, storage and upgrades, so I compare total cost including people.
The usual outcome is a mix: keep the vendor for signals where it adds the most, like traces and alerting metrics, and move high-volume, low-value logs to cheaper storage, decided with a cost model and an agreed quality bar for incident search and alerting.
I would give finance a phased plan with a target, like getting back under eight percent within a year.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "As the senior technical leader, how do you decide between optimising usage with the...": https://scrivio-interview-library.netlify.app/architecture/system-design-problems/10bf39e8e9/