Scans for open ports to be used for Prometheus HTTP Service Discovery
go build
./open_metric_ports <host_address> <start_port_range> <end_port_range>
curl localhost:8888/hosts
{
"targets": [
"hostname.com:36036",
"hostname.com:36018",
"hostname.com:36006"
],
"labels": { "key": "value" }
}
- Add config file to start the server
- Allow multiple servers to be scanned parallely
- Allow multiple handlers params based on different host/group scanner
- Add AWS api integration to autofetch list of hostnames