func NewMetrics(p fabricmetrics.Provider) *Metrics {
	return &Metrics{
		RefreshTimer: p.NewHistogram(refreshTimer),
	}
}
NewMetrics create new instance of metrics
package service
import (
	fabricmetrics "github.com/hyperledger/fabric/common/metrics"
)
var (
	refreshTimer = fabricmetrics.HistogramOpts{
		Namespace: "snap",
		Subsystem: "config_service",
		Name:      "refresh_duration",
		Help:      "The config refresh duration.",
	}
)
type Metrics struct {
	RefreshTimer fabricmetrics.Histogram
}