feat 在线人数埋点

This commit is contained in:
2026-01-08 13:36:08 +08:00
parent 2145b07e69
commit 265e522aff
3 changed files with 18 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
package global
import "github.com/prometheus/client_golang/prometheus"
const (
KeyGatewayAccessToken = "gateway:token:access:%v"
KeyGatewayRefreshToken = "gateway:token:refresh:%v"
@@ -17,3 +19,7 @@ const (
var PublicPaths = []string{
"/user/info",
}
var (
OnlineUsersGauge prometheus.Gauge
)