Belajar Sendiri

Arahan

curl '<blackbox>:9115/probe?target=<url>&module=http_2xx'

curl '<blackbox>:9115/probe?target=<url>&module=http_2xx'

Risiko: Selamat

Apa ia buat

Minta blackbox exporter ketuk satu URL sekali dan lapor apa yang berlaku.

Bila nak guna

Untuk uji probe sendiri sebelum Prometheus scrape.

Contoh

$ curl -s 'localhost:9115/probe?target=http://prometheus:9090/-/ready&module=http_2xx' | grep -E 'probe_success|probe_http_status_code'

probe_success 1 dan kod status 200 bermaksud laman itu menjawab.