mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 23:32:51 +03:00
92041c4c23
* Add Prometheus for some Owncast metrics. Closes #1303 * Wrap prometheus metrics endpoint in admin middleware
14 lines
340 B
Go
14 lines
340 B
Go
package metrics
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
var (
|
|
labels map[string]string
|
|
activeViewerCount prometheus.Gauge
|
|
activeChatClientCount prometheus.Gauge
|
|
cpuUsage prometheus.Gauge
|
|
chatUserCount prometheus.Gauge
|
|
currentChatMessageCount prometheus.Gauge
|
|
)
|