Describe SRE/Tools/CloudProber here.
Config
cat > /tmp/cloudprober.cfg << 'EOF' probe { name: "ping-8.8.8.8" type: PING targets { host_names: "8.8.8.8" } interval: "5s" timeout: "2s" ping_probe { use_datagram_socket: false # change to true if you ever get permission issues } } # Optional: also ping Cloudflare and Quad9 for comparison probe { name: "ping-cloudflare" type: PING targets { host_names: "1.1.1.1" } interval: "10s" timeout: "2s" } surfacer { type: PROMETHEUS } EOFRun the prober
docker run -it --rm \ --cap-add=NET_RAW \ -v /tmp/cloudprober.cfg:/etc/cloudprober.cfg \ -p 9313:9313 \ ghcr.io/cloudprober/cloudprober \ --config_file=/etc/cloudprober.cfg
View the prometheus export
# 3. Watch live (updates every few seconds) watch -n 2 'curl -s http://localhost:9313/metrics | grep -E "(total|success|latency)" | grep ping-google-dns'
