Also track subscriber streams by type.

This commit is contained in:
Joachim Bauch
2021-08-10 08:50:40 +02:00
parent f758f8a5e7
commit 70f9f7ea91
5 changed files with 259 additions and 29 deletions
+7
View File
@@ -62,6 +62,12 @@ var (
Name: "messages_total",
Help: "The total number of MCU messages",
}, []string{"type"})
statsMcuSubscriberStreamTypesCurrent = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: "signaling",
Subsystem: "mcu",
Name: "subscriber_streams",
Help: "The current number of subscribed media streams",
}, []string{"type"})
statsMcuPublisherStreamTypesCurrent = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: "signaling",
Subsystem: "mcu",
@@ -76,6 +82,7 @@ var (
statsSubscribersTotal,
statsWaitingForPublisherTotal,
statsMcuMessagesTotal,
statsMcuSubscriberStreamTypesCurrent,
statsMcuPublisherStreamTypesCurrent,
}