Scraping: prometheus.yml, jobs and targets

12 min
Audience
beginner, lesson 01 read
Duration
35 to 45 min
Module
2/7
Target skill
read the kit's prometheus.yml block by block, find each target in Status → Target health and in /api/v1/targets, understand job, instance, the 15 s interval, and read up and scrape_duration_seconds

In one picture

The meter reader of lesson 01 has a route sheet: the list of addresses to visit, grouped by neighborhood, with the time of the visit. That sheet is prometheus.yml. A job is a neighborhood (a group of targets of the same kind: api, node-exporter…); a target is a precise address (api:8000); the scrape is the visit: Prometheus does GET http://api:8000/metrics, reads the page, writes everything in the notebook with the time. Every 15 seconds, for each address, without exception.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Metrics: Prometheus end-to-end” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one