---
title: "Scaling down to speed up: How we improved efficiency of live process metrics by 100x"
description: "Datadog cut real-time process and container metric traffic by about 100x by enabling 2-second live collection only on hosts whose processes a user is actually viewing (at most 50 per user), instead of on every host in the tenant."
url: "https://swe.quest/articles/scaling-down-to-speed-up-how-we-improved-efficiency-of-live-process-metrics-by-db520ecc99ab0c49"
canonical: "https://www.datadoghq.com/blog/engineering/scaling-process-pipeline-efficiency/"
source: "Datadog Engineering"
published: "2025-08-12"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["observability","scalability","cost-optimization","messaging","system-design"]
---

# Scaling down to speed up: How we improved efficiency of live process metrics by 100x

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2025-08-12, 8 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/scaling-process-pipeline-efficiency/](https://www.datadoghq.com/blog/engineering/scaling-process-pipeline-efficiency/)

## Summary

Datadog cut real-time process and container metric traffic by about 100x by enabling 2-second live collection only on hosts whose processes a user is actually viewing (at most 50 per user), instead of on every host in the tenant. Sorting switched to the existing 10-second data, which removed the need to hold all live metrics in a single server's memory. Host subscriptions are published over Kafka at 1-second intervals to the intake service, which keeps a TTL-based in-memory cache of viewed hosts. Peak volume fell from 500,000 to 5,000 messages per second, the live data service shrank by about 98% (over 600 cores and 1 TiB of memory freed), and Agent CPU usage dropped about 2%.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- Kafka basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- stream ingestion pipelines

## Keywords

Datadog Agent, Kafka, Datadog Live Processes, htop

## Related posts

- [How we scaled metrics aggregation by moving durable state into storage](https://swe.quest/articles/how-we-scaled-metrics-aggregation-by-moving-durable-state-into-storage-09bea3fd544962da.md): Datadog Engineering · 2026-11-17 · Medium · 12 min read · Stream processing, Scaling, Observability, Storage engines, Distributed systems
  Datadog's metrics aggregation service, which merges DDSketch distributions to reduce tag dimensions, went through three generations as volume grew roughly 10× each time.
- [Observability At Scale — Every Byte Counts](https://swe.quest/articles/observability-at-scale-every-byte-counts-3491ffe2c3088798.md): Wise Engineering · 2026-10-20 · Medium · 14 min read · Observability, Cost optimization, Performance engineering, Kubernetes
  Five observability changes at Wise cut monthly spend by 40%.
- [Scaling our Observability platform beyond 100 Petabytes by embracing wide events and replacing OTel](https://swe.quest/articles/scaling-our-observability-platform-beyond-100-petabytes-by-embracing-wide-c75d29b3bcaf1192.md): ClickHouse · 2025-06-19 · Medium · 26 min read · Observability, Scaling, Cost optimization, Analytics & OLAP, Go
  ClickHouse's internal LogHouse platform grew from 19 PiB to over 100 PB of uncompressed logs (about 500 trillion rows), mostly by replacing the OpenTelemetry pipeline for ClickHouse server telemetry with SysEx.
- [How we scaled fast, reliable configuration distribution to thousands of workload containers](https://swe.quest/articles/how-we-scaled-fast-reliable-configuration-distribution-to-thousands-of-workload-e29683144db0f208.md): Datadog Engineering · 2025-06-17 · Medium · 13 min read · Configuration management, Distributed systems, Resilience, Multi-tenancy, Caching
  Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka.
- [How Uken Games reduces observability costs by 87% with ClickHouse](https://swe.quest/articles/how-uken-games-reduces-observability-costs-by-87-with-clickhouse-b3d46180eaebbbed.md): ClickHouse · 2026-09-01 · Medium · 7 min read · Observability, Cost optimization, Analytics & OLAP, Games
  Uken Games replaced Datadog with an open-source observability stack: OpenTelemetry collectors in an agent-plus-gateway layout, SigNoz on a single ClickHouse node for traces, AWS-managed Prometheus for metrics, CloudWatch for logs, and Grafana alerts defined as code via a custom CloudFormation resource.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
