wallet-sync-server/metrics/metrics.go
2022-07-23 16:47:18 -04:00

22 lines
425 B
Go

package metrics
import (
"github.com/prometheus/client_golang/prometheus"
)
var (
RequestsCount = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "wallet_sync_requests_count",
// TODO For some reason, help text nor type seem to show up in
// Prometheus?
Help: "Total number of requests to various endpoints",
},
[]string{"method"},
)
)
func init() {
prometheus.MustRegister(RequestsCount)
}