Runs the service discovery and relabeling steps from your scrape config and prints the targets that would be scraped, without scraping them. It takes the config file and job name as arguments, for example promtool check service-discovery /etc/prometheus/prometheus.yml node. Invaluable for debugging relabel rules.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.