mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 11:28:51 +02:00
Do not read prometheus metrics
This commit is contained in:
@ -6,8 +6,8 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/markbates/pkger"
|
||||
"github.com/pion/webrtc/v3"
|
||||
"gitlab.crans.org/nounous/ghostream/internal/monitoring"
|
||||
"gitlab.crans.org/nounous/ghostream/stream/webrtc"
|
||||
)
|
||||
|
||||
// Handle WebRTC session description exchange via POST
|
||||
@ -90,5 +90,5 @@ func statisticsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
enc := json.NewEncoder(w)
|
||||
enc.Encode(struct {
|
||||
ConnectedViewers int
|
||||
}{int(monitoring.GetGaugeValue(monitoring.WebRTCConnectedSessions))})
|
||||
}{webrtc.GetNumberConnectedSessions()})
|
||||
}
|
||||
|
Reference in New Issue
Block a user