PromQL and checking status
The web UI is on :9090. Example queries:
http://<prom>:9090/targets shows the status of every target (UP/DOWN and
scrape errors).
Collecting metrics with a pull model — targets, PromQL, exporters, alerts.
promtool check config prometheus.yml
check the config
curl http://target:9100/metrics
is the exporter serving metrics
Prometheus collects metrics using a pull model: it periodically
scrapes HTTP /metrics endpoints on its targets. It stores time series,
lets you query them with PromQL, and sends alerts.
Exporters expose services' metrics: node_exporter (the host),
nginx-exporter, and so on.
prometheus.yml — what to scrape and how often:
The web UI is on :9090. Example queries:
http://<prom>:9090/targets shows the status of every target (UP/DOWN and
scrape errors).
Check the metric name and labels in the UI (autocomplete). up{job="x"}
tells you whether the job is being scraped.
That's retention and the number of series. Use
--storage.tsdb.retention.time=15d; cut down high-cardinality labels.
Check the rules (promtool check rules), the connection to Alertmanager,
and its routes.
Found an inaccuracy? Report an error in the article