prometheus-targets schema
prometheus/targets.json: the effective scrape interval and timeout of every scraped job, from /api/v1/targets.
Schema file: schema/json/bundle/prometheus-targets.schema.json. Generated from servtuner commit 5b46cdad0e5c.
Top level
Section titled “Top level”| Field | Type | Required | Description |
|---|---|---|---|
fetched_at |
utcTimestamp | Yes | |
targets |
array of scrapedJob | Yes |
Definitions
Section titled “Definitions”jobRole
Section titled “jobRole”What the job scrapes; the stage-length rules use the slowest of target, cadvisor and dcgm.
Type: "target", "cadvisor", "kube_state_metrics", "dcgm", "other"
scrapedJob
Section titled “scrapedJob”| Field | Type | Required | Description |
|---|---|---|---|
job |
string |
Yes | |
role |
jobRole | Yes | |
scrape_interval_seconds |
number |
Yes | > 0 |
scrape_timeout_seconds |
number |
Yes | > 0 |