Add Prometheus for some Owncast metrics (#1744)
* Add Prometheus for some Owncast metrics. Closes #1303 * Wrap prometheus metrics endpoint in admin middleware
This commit is contained in:
@@ -26,6 +26,7 @@ func collectCPUUtilization() {
|
||||
|
||||
metricValue := timestampedValue{time.Now(), int(v[0])}
|
||||
Metrics.CPUUtilizations = append(Metrics.CPUUtilizations, metricValue)
|
||||
cpuUsage.Set(float64(metricValue.Value))
|
||||
}
|
||||
|
||||
func collectRAMUtilization() {
|
||||
|
||||
Reference in New Issue
Block a user