1
0
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:
Alexandre Iooss
2020-09-21 21:33:32 +02:00
parent ad75d2c774
commit 7cdd78a70e
6 changed files with 116 additions and 12 deletions

View File

@ -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 {}
}