Interview Prep/Monitoring & Observability/Observability Fundamentals & Signals

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Observability Fundamentals & Signals