func NopMetrics() *Metrics {
	return &Metrics{
		Peers: discard.NewGauge(),
	}
}
NopMetrics returns no-op Metrics.
package p2p
import (
	"github.com/go-kit/kit/metrics"
	"github.com/go-kit/kit/metrics/discard"
	prometheus "github.com/go-kit/kit/metrics/prometheus"
	stdprometheus "github.com/prometheus/client_golang/prometheus"
)
type Metrics struct {
	Peers metrics.Gauge
}
func PrometheusMetrics() *Metrics {
	return &Metrics{
		Peers: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{
			Subsystem: "p2p",
			Name:      "peers",
			Help:      "Number of peers.",
		}, []string{}),
	}
}