Skip to main content
InterviewHubPRO
Section Overview
Q14

Question 14 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

28%
SRE & Observability (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

How does Prometheus work (The Pull Model vs Push Model)?

senior LevelSystem Design

In Simple Words: Prometheus is an open-source metrics monitoring and time-series database:

  • The Pull Model (Default): Prometheus server periodically scrapes HTTP endpoints (/metrics) exposed by target services:
    • Discovers targets automatically via Kubernetes API or Consul.
    • Server controls the scrape frequency; preventing overloaded services from being hammered by metrics.
  • Pushgateway: For short-lived batch jobs that terminate before a pull scrape occurs; jobs push metrics to Pushgateway, which Prometheus scrapes.