Pcornel
Technology Comparisons

Pull vs Push Metrics Collection

Compare metrics collection where the server scrapes targets with collection where targets send data.

DimensionPull (Prometheus scrape)Push (OTLP, remote write, StatsD)What it means in practice
Who connectsThe monitoring server connects to each target.Each target connects to the collector.Firewalls and NAT often decide which model is practical.
Target healthA failed scrape is itself a signal (up == 0).Silence can mean down or just quiet; needs absent checks.Pull gives liveness for free.
Short-lived jobsMay finish before being scraped; needs Pushgateway.Sends results before exiting.Use push for batch jobs and serverless functions.
DiscoveryNeeds service discovery to find targets.Targets need the collector address.Kubernetes service discovery makes pull simple in clusters.
Back pressureThe server controls scrape rate.Senders can overload the collector.Set rate limits and queues on push collectors.
VerificationPrometheus Status → Targets.Collector receiver metrics (accepted/refused).Check both ends when data is missing.

← All comparisons

Confirmation

Confirm action

Continue?