Skip to content

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.

Field Type Required Description
fetched_at utcTimestamp Yes
targets array of scrapedJob Yes

What the job scrapes; the stage-length rules use the slowest of target, cadvisor and dcgm.

Type: "target", "cadvisor", "kube_state_metrics", "dcgm", "other"

Field Type Required Description
job string Yes
role jobRole Yes
scrape_interval_seconds number Yes > 0
scrape_timeout_seconds number Yes > 0