92041c4c23
* Add Prometheus for some Owncast metrics. Closes #1303 * Wrap prometheus metrics endpoint in admin middleware
15 lines
340 B
Go
15 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
|
|
)
|