scrape target
One address Prometheus fetches metrics from, such as service:8000.
In more detail
Targets are listed in the scrape configuration or found through service discovery in a cluster. The Prometheus targets page and API show the health of every target and the last scrape error.
Example
curl -s localhost:9090/api/v1/targetsRelated terms
- scrape job — A named group of scrape targets that do the same work, such as all instances of the checkout service.
- scrape — One fetch by Prometheus of a service's metrics page over HTTP, whose values are then stored with a timestamp.
- instance label — The label Prometheus adds to every scraped series with the address of the target it came from.
Taught in
- Prometheus Scraping And The Pull Model — Full-Stack Observability: Metrics, Tracing & Logging
- The Prometheus Exposition Format — Full-Stack Observability: Metrics, Tracing & Logging
- Twelve Green Panels: Dashboarding Basics — Prometheus Certified Associate (PCA) Exam Prep