What is the difference between push-based and pull-based metric collection?
IntermediateConceptObservability Fundamentals & Signals
Answer
- Pull (Prometheus): the server scrapes targets on a schedule. Easy to know if a target is down (
up == 0), the server controls load, and you can curl a target by hand. - Push (StatsD, OTLP, CloudWatch agent, InfluxDB line protocol): clients send to a collector. Works through NAT/firewalls and for short-lived jobs.
Pull needs service discovery; push needs a separate liveness signal because silence looks the same as "no traffic". Modern stacks mix both: Prometheus scrapes, and the OTel Collector or remote_write pushes.
More on Observability Fundamentals & Signals
What is the difference between monitoring and observability?BeginnerWhat are the "three pillars" of observability, and what is the fourth signal people now add?BeginnerWhen would you reach for metrics, logs, traces or profiles during an incident?BeginnerWhat are the four Prometheus metric types?BeginnerWhy should you never use a gauge to count requests?BeginnerHistogram vs summary: what is the real difference, and which do you choose?Intermediate