status-go/metrics/metrics_expvar.go

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}
}