Expose publisher streams by type through metrics.

This commit is contained in:
Joachim Bauch
2021-08-10 08:50:39 +02:00
parent c01caa94e6
commit f758f8a5e7
2 changed files with 54 additions and 5 deletions
+7
View File
@@ -62,6 +62,12 @@ var (
Name: "messages_total",
Help: "The total number of MCU messages",
}, []string{"type"})
statsMcuPublisherStreamTypesCurrent = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: "signaling",
Subsystem: "mcu",
Name: "publisher_streams",
Help: "The current number of published media streams",
}, []string{"type"})
commonMcuStats = []prometheus.Collector{
statsPublishersCurrent,
@@ -70,6 +76,7 @@ var (
statsSubscribersTotal,
statsWaitingForPublisherTotal,
statsMcuMessagesTotal,
statsMcuPublisherStreamTypesCurrent,
}
statsConnectedProxyBackendsCurrent = prometheus.NewGaugeVec(prometheus.GaugeOpts{