mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 02:44:31 +08:00
Simple hardware metrics collection + alerting (#115)
* Add CPU and RAM usage alerting * Create basic troubleshooting document to point alerts at * Limit max number of hardware values collected * Save metric value with the point in time it was taken
This commit is contained in:
3
main.go
3
main.go
@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/gabek/owncast/config"
|
||||
"github.com/gabek/owncast/core"
|
||||
"github.com/gabek/owncast/metrics"
|
||||
"github.com/gabek/owncast/router"
|
||||
)
|
||||
|
||||
@ -55,6 +56,8 @@ func main() {
|
||||
config.Config.ChatDatabaseFilePath = "chat.db"
|
||||
}
|
||||
|
||||
metrics.Start()
|
||||
|
||||
// starts the core
|
||||
if err := core.Start(); err != nil {
|
||||
log.Error("failed to start the core package")
|
||||
|
||||
Reference in New Issue
Block a user