This is a HTTP statistic gathering script written in Go to export metrics to Prometheus.
The config file allows for adding multiple links, and changing the port. Default port is ":7777", just remember to change it in the dockerfile as well if you want a different port.
go get github.com/prometheus/client_golang/prometheus
go get github.com/tkanos/gonfig
go run main.go
The original idea came from httpstat command (and Dave Cheney's golang implementation), and Taichi Nakashima's package go-httpstat.
refs: https://github.com/davecheney/httpstat and https://github.com/tcnksm/go-httpstat