status-go/metrics/metrics_expvar.go
Adam Babik 89d89681a3
Add support for metrics (#558)
It adds support for metrics (expvar and Prometheus) along with docker-compose files to run a Whisper test cluster.
2018-01-30 12:51:48 +01:00

14 lines
275 B
Go

// +build metrics,!prometheus
package metrics
import (
"net/http"
)
// NewMetricsServer starts a new HTTP server with expvar handler.
// By default, "/debug/vars" handler is registered.
func NewMetricsServer(addr string) *http.Server {
return &http.Server{Addr: addr}
}