- Run a simple web server
$ while true; do printf 'HTTP/1.1 200 OK\n\n%s' "Hello World" | nc -l 8000; done- Validate it's running
$ curl http://127.0.0.1:8000- Create
cloudprober.cfgFile
probe {
name: "test_server_http"
type: HTTP
targets {
host_names: "127.0.0.1"
}
interval_msec: 10000
timeout_msec: 1000
http_probe {
protocol: HTTP
port: 8000
}
}
probe {
name: "test_server_ping"
type: PING
targets {
host_names: "127.0.0.1"
}
interval_msec: 10000
timeout_msec: 1000
}
surfacer {
type: PROMETHEUS
}- Run
cloudprober
./cloudprober --config_file cloudprober.cfg -logtostderrMetrics will be available on http://localhost:9313/metrics & http://localhost:9313/status