add rtsp_proxies metrics (#61)

This commit is contained in:
aler9
2020-09-19 23:52:06 +02:00
parent 8180214098
commit a3a52101c0
6 changed files with 33 additions and 16 deletions

30
main.go
View File

@@ -20,20 +20,22 @@ const (
)
type program struct {
conf *conf
logHandler *logHandler
metrics *metrics
pprof *pprof
paths map[string]*path
serverRtp *serverUDP
serverRtcp *serverUDP
serverRtsp *serverTCP
clients map[*client]struct{}
udpPublishersMap *udpPublishersMap
readersMap *readersMap
countClients int64
countPublishers int64
countReaders int64
conf *conf
logHandler *logHandler
metrics *metrics
pprof *pprof
paths map[string]*path
serverRtp *serverUDP
serverRtcp *serverUDP
serverRtsp *serverTCP
clients map[*client]struct{}
udpPublishersMap *udpPublishersMap
readersMap *readersMap
countClients int64
countPublishers int64
countReaders int64
countProxies int64
countProxiesRunning int64
clientNew chan net.Conn
clientClose chan *client