maddy/internal/target/queue/metrics.go
2020-06-10 00:23:12 +03:00

17 lines
338 B
Go

package queue
import "github.com/prometheus/client_golang/prometheus"
var queuedMsgs = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Namespace: "maddy",
Subsystem: "queue",
Name: "length",
Help: "Amount of queued messages",
},
[]string{"module", "location"},
)
func init() {
prometheus.MustRegister(queuedMsgs)
}