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
+2
View File
@@ -52,6 +52,8 @@ func GetGrpcCusMetrics(registerName string, share *config.Share) []prometheus.Co
return []prometheus.Collector{MsgOfflinePushFailedCounter}
case share.RpcRegisterName.Auth:
return []prometheus.Collector{UserLoginCounter}
case share.RpcRegisterName.User:
return []prometheus.Collector{UserRegisterCounter}
default:
return nil
}