
# The job name is added as a label to any timeseries scraped from this config. # A scrape configuration containing exactly one endpoint to scrape: # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. # scrape_timeout is set to the global default (10s). Prometheus does one thing, and it does it well. The repo has a good sample docker-compose setup that can be used for this purpose. Default is every 1 minute.Įvaluation_interval: 5s # Evaluate rules every 15 seconds. What is Prometheus Blackbox As everyone knows, Prometheus is an open source, metrics-based monitoring system. The quickest way to run Prometheus and Grafana for testing purposes is to use docker-compose.

Scrape_interval: 5s # Set the scrape interval to every 15 seconds. This allows for the collection of blackbox metrics (probes) and exposing them as Prometheus metrics. blackbox exporter tcp example mean blackboxconfig Grafana Agent. The blackboxconfig block configures the blackboxexporter integration, which is an embedded version of blackboxexporter. Docker run -name=prometheus -d -p 9090:9090 -v /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheusĭocker run -rm -d -p 9115:9115 -name blackbox -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro -v /etc/blackbox:/config prom/blackbox-exporter:master -config.file=/config/blackbox.yml -log.level=debugĭocker run -d -name grafana -p 3000:3000 -v /data/grafana:/var/lib/grafana grafana/grafana:8.2.1ĭocker run -d -name=grafana-image-renderer -p 8088:8088 -env GF_RENDERER_PLUGIN_TZ=Asia/Shanghai -env GF_RENDERER_PLUGIN_IGNORE_HTTPS_ERRORS=true grafana/grafana-image-renderer Prometheus Blackbox Exporter TCP probe returns value.
