mirror of
https://github.com/trafficlunar/api.git
synced 2026-08-12 12:29:39 +00:00
feat: expose prometheus metrics on different port
This commit is contained in:
parent
d93f3f2797
commit
498b45eab3
5 changed files with 19 additions and 4 deletions
2
main.go
2
main.go
|
|
@ -38,6 +38,7 @@ func main() {
|
|||
go worker.StartWorkers()
|
||||
|
||||
// Shutdown-chan~~
|
||||
// this joke sucks
|
||||
shutdownChan := make(chan os.Signal, 1)
|
||||
signal.Notify(shutdownChan, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
|
|
@ -53,5 +54,6 @@ func main() {
|
|||
os.Exit(0)
|
||||
}()
|
||||
|
||||
server.StartPrometheusServer()
|
||||
server.NewRouter()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue