mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
89d89681a3
It adds support for metrics (expvar and Prometheus) along with docker-compose files to run a Whisper test cluster.
14 lines
275 B
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}
|
|
}
|