add metrics
This commit is contained in:
1 parent
973812230a
commit
8408f574a1
4 files changed
+96
-32
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
"gitlab.alx/msp2.0/msp-lib/backend"
|
||||
"gitlab.alx/msp2.0/msp-lib/bootstrap"
|
||||
"gitlab.alx/msp2.0/msp-lib/database"
|
||||
"gitlab.alx/msp2.0/msp-lib/metric"
|
||||
"gitlab.alx/msp2.0/msp-lib/socket"
|
||||
"msp-admin-service/conf"
|
||||
"msp-admin-service/helper"
|
||||
@@ -45,8 +46,10 @@ func onShutdown(_ context.Context, _ os.Signal) {
|
||||
backend.StopGrpcServer()
|
||||
}
|
||||
|
||||
func onRemoteConfigReceive(remoteConfig, _ *conf.RemoteConfig) {
|
||||
func onRemoteConfigReceive(remoteConfig, oldRemoteConfig *conf.RemoteConfig) {
|
||||
database.InitDb(remoteConfig.Database)
|
||||
metric.InitCollectors(remoteConfig.Metrics, oldRemoteConfig.Metrics)
|
||||
metric.InitHttpServer(remoteConfig.Metrics)
|
||||
}
|
||||
|
||||
func onLocalConfigLoad(cfg *conf.Configuration) {
|
||||
|
||||
Reference in new issue
Block a user