ytsync/metrics/metrics.go

18 lines
426 B
Go
Raw Permalink Normal View History

2020-05-19 23:13:01 +02:00
package metrics
import (
"github.com/lbryio/ytsync/v5/configs"
2020-05-19 23:13:01 +02:00
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
Durations = promauto.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "ytsync",
Subsystem: configs.Configuration.GetHostname(),
2020-05-19 23:13:01 +02:00
Name: "duration",
Help: "The durations of the individual modules",
}, []string{"path"})
)