Feat metrics (#2429)

* feat: register and alert

* feat: grafana
This commit is contained in:
icey-yu
2024-07-19 16:08:39 +08:00
committed by GitHub
parent d945a07549
commit 6c8ac45137
6 changed files with 5403 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
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",
})
)