2022-07-23 01:49:30 +02:00
|
|
|
package metrics
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
RequestsCount = prometheus.NewCounterVec(
|
|
|
|
prometheus.CounterOpts{
|
2022-07-23 22:44:11 +02:00
|
|
|
Name: "wallet_sync_requests_count",
|
|
|
|
|
|
|
|
// TODO For some reason, help text nor type seem to show up in
|
|
|
|
// Prometheus?
|
2022-07-23 01:49:30 +02:00
|
|
|
Help: "Total number of requests to various endpoints",
|
|
|
|
},
|
|
|
|
[]string{"method"},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
prometheus.MustRegister(RequestsCount)
|
|
|
|
}
|