Prometheus configuration
From wikinotes
Prometheus
Consuming Exporters
Configure jobs to poll prometheus metric endpoints within
scrape_configs
.
For example, the following config polls metrics fromhttp://localhost:9115/metrics
every5s
.# /usr/local/etc/prometheus.yml global: scrape_interval: 5s scrape_configs: - job_name: blackbox # To get metrics about the exporter itself metrics_path: /metrics static_configs: - targets: - localhost:9115