mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-29 09:50:56 +02:00
Add prometheus monitoring endpoint
This commit is contained in:
6
main.go
6
main.go
@ -4,6 +4,7 @@ import (
|
||||
"log"
|
||||
|
||||
"gitlab.crans.org/nounous/ghostream/internal/config"
|
||||
"gitlab.crans.org/nounous/ghostream/monitoring"
|
||||
"gitlab.crans.org/nounous/ghostream/web"
|
||||
)
|
||||
|
||||
@ -19,6 +20,11 @@ func main() {
|
||||
web.ServeHTTP(cfg)
|
||||
}()
|
||||
|
||||
// Start monitoring server routine
|
||||
go func() {
|
||||
monitoring.ServeHTTP(cfg)
|
||||
}()
|
||||
|
||||
// Wait for routines
|
||||
select {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user