Built-in Servers
Cloudprober has a few built in servers. This is useful when you are probing that a connection is working, or as a baseline to compare the probing results from your actual service to.
HTTP
server {
type: HTTP
http_server {
port: 8080
}
}
This creates an HTTP server that responds on port 8080
. By default it will
respond to the following endpoints:
/healthcheck
/lameduck
server {
type: HTTP
http_server {
port: 8080
pattern_data_handler {
response_size: 1024
}
pattern_data_handler {
response_size: 4
pattern: "four"
}
}
}
This adds two endpoints to the HTTP server:
/data_1024
which responds with 1024 bytes ofcloudprobercloudprobercloudprober
./data_4
which responds withfour
.
See servers/http/proto/config.go for all HTTP server configuration options.
UDP
A Cloudprober UDP server can be configured to either echo or discard packets it receives.
server {
type: UDP
udp_server {
port: 85
type: ECHO
}
}
server {
type: UDP
udp_server {
port: 90
type: DISCARD
}
}
See servers/udp/proto/config.go for all UDP server configuration options.
GRPC
See servers/grpc/proto/config.go for all GRPC server configuration options.