Self-hosted LGTM stack or a SaaS like Datadog: how do you decide?
IntermediateProductionObservability as Code, Security & Vendor Choices
Answer
Compare total cost, not license cost:
| Factor | Self-hosted (Prometheus, Loki, Tempo, Mimir) | SaaS (Datadog, New Relic, Grafana Cloud) |
|---|---|---|
| Spend | Infra plus 1–3 engineers to run it | Per host, per GB, per custom metric; grows fast |
| Time to value | Weeks | Days |
| Control | Full: retention, data residency, cardinality | Vendor limits and pricing levers |
| Features | Assemble yourself | APM, RUM, security, ML alerts included |
Rule of thumb: small teams without platform capacity buy; large fleets where SaaS bills reach the cost of a team often self-host or go hybrid (SaaS for APM, self-hosted metrics and logs). Instrument with OpenTelemetry either way so switching stays possible.
More on Observability as Code, Security & Vendor Choices
What does "observability as code" cover, and why insist on it?BeginnerHow do you manage Grafana with Terraform?IntermediateHow do you validate Alertmanager configuration in CI?BeginnerWhat does a CI pipeline for Prometheus rules look like?IntermediateRaw dashboard JSON, Jsonnet/Grafonnet or the Grafana Foundation SDK: which do you pick?AdvancedWhat are monitoring mixins and how do you consume them?Advanced