mirror of
https://github.com/screego/server.git
synced 2026-10-31 18:42:44 +08:00
22 lines
522 B
Go
22 lines
522 B
Go
package ws
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
roomGauge = promauto.NewGauge(prometheus.GaugeOpts{
|
|
Name: "screego_room_total",
|
|
Help: "The total number of rooms",
|
|
})
|
|
userGauge = promauto.NewGauge(prometheus.GaugeOpts{
|
|
Name: "screego_user_total",
|
|
Help: "The total number of users",
|
|
})
|
|
sessionGauge = promauto.NewGauge(prometheus.GaugeOpts{
|
|
Name: "screego_session_total",
|
|
Help: "The total number of sessions",
|
|
})
|
|
)
|