advancedTop 100 Interview Questions
How does Prometheus's pull-based model differ from a push-based metrics system?
Prometheus actively scrapes (pulls) metrics from configured target endpoints at intervals, rather than targets pushing metrics to a central collector. This simplifies target-side implementation (just expose an HTTP endpoint) and gives Prometheus direct control over scrape timing and the ability to detect a target being unreachable.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response