Scraping and targets
Prometheus pulls samples from configured endpoints. The up metric describes scrape success, not business success; a healthy scrape can still expose failing requests. If a target answers /metrics successfully, up{job="api"}=1 even when http_requests_total{status="500"} increases. A scrape timeout makes up=0, so investigate collection failure separately from application errors.
If a target answers /metrics successfully, up{job="api"}=1 even when http_requests_total{status="500"} increases. A scrape timeout makes up=0, so investigate collection failure separately from application errors.A scrape interval schedules collection; a target is the endpoint being collected; an exporter translates another system's measurements into an exposition format. Imagine a node exporter reachable from a developer laptop but blocked from the Prometheus host. The browser test establishes only the laptop path. Inspect the configured target address, the server-to-target network route and scrape error, then compare the last successful sample time. Collection is pull-based for ordinary targets, so application permission to reach Prometheus does not prove the reverse connection works. Scrape duration approaching the timeout predicts missing observations. Faster intervals improve temporal detail but increase collection load and storage. Monitor the collection path itself so a broken observer cannot make an unavailable application appear merely quiet. Inspect the actual scrape error.
A scrape timeout makes up=0, so investigate collection failure separately from application errors.
A successful scrape proves every customer request succeeded.