2020-05-19 23:13:01 +02:00
|
|
|
package metrics
|
|
|
|
|
|
|
|
import (
|
2021-12-30 19:17:11 +01:00
|
|
|
"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",
|
2021-12-30 19:17:11 +01:00
|
|
|
Subsystem: configs.Configuration.GetHostname(),
|
2020-05-19 23:13:01 +02:00
|
|
|
Name: "duration",
|
|
|
|
Help: "The durations of the individual modules",
|
|
|
|
}, []string{"path"})
|
|
|
|
)
|