icey-yu 6c8ac45137
Feat metrics (#2429)
* feat: register and alert

* feat: grafana
2024-07-19 08:08:39 +00:00

11 lines
226 B
Go

package prommetrics
import "github.com/prometheus/client_golang/prometheus"
var (
UserRegisterCounter = prometheus.NewCounter(prometheus.CounterOpts{
Name: "user_register_total",
Help: "The number of user login",
})
)