diff --git a/services/activitylog/pkg/server/debug/server.go b/services/activitylog/pkg/server/debug/server.go index f2c235c77..95979961a 100644 --- a/services/activitylog/pkg/server/debug/server.go +++ b/services/activitylog/pkg/server/debug/server.go @@ -18,7 +18,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("http reachability", checks.NewHTTPCheck(options.Config.HTTP.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/antivirus/pkg/server/debug/server.go b/services/antivirus/pkg/server/debug/server.go index 180fe4c25..687e47013 100644 --- a/services/antivirus/pkg/server/debug/server.go +++ b/services/antivirus/pkg/server/debug/server.go @@ -19,7 +19,7 @@ func Server(opts ...Option) (*http.Server, error) { readyHandlerConfiguration := handlers.NewCheckHandlerConfiguration(). WithLogger(options.Logger). - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)). + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)). WithCheck("antivirus reachability", func(ctx context.Context) error { cfg := options.Config switch cfg.Scanner.Type { diff --git a/services/audit/pkg/server/debug/server.go b/services/audit/pkg/server/debug/server.go index 4ca2a6c8f..fb423a820 100644 --- a/services/audit/pkg/server/debug/server.go +++ b/services/audit/pkg/server/debug/server.go @@ -15,7 +15,7 @@ func Server(opts ...Option) (*http.Server, error) { readyHandlerConfiguration := handlers.NewCheckHandlerConfiguration(). WithLogger(options.Logger). - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/clientlog/pkg/server/debug/server.go b/services/clientlog/pkg/server/debug/server.go index 4ca2a6c8f..fb423a820 100644 --- a/services/clientlog/pkg/server/debug/server.go +++ b/services/clientlog/pkg/server/debug/server.go @@ -15,7 +15,7 @@ func Server(opts ...Option) (*http.Server, error) { readyHandlerConfiguration := handlers.NewCheckHandlerConfiguration(). WithLogger(options.Logger). - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/eventhistory/pkg/server/debug/server.go b/services/eventhistory/pkg/server/debug/server.go index e3259472e..24f2e6791 100644 --- a/services/eventhistory/pkg/server/debug/server.go +++ b/services/eventhistory/pkg/server/debug/server.go @@ -18,7 +18,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("grpc reachability", checks.NewGRPCCheck(options.Config.GRPC.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/frontend/pkg/server/debug/server.go b/services/frontend/pkg/server/debug/server.go index a05655afb..e7a3edba5 100644 --- a/services/frontend/pkg/server/debug/server.go +++ b/services/frontend/pkg/server/debug/server.go @@ -18,7 +18,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("web reachability", checks.NewHTTPCheck(options.Config.HTTP.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/graph/pkg/server/debug/server.go b/services/graph/pkg/server/debug/server.go index 747367e3f..be4b6ddf2 100644 --- a/services/graph/pkg/server/debug/server.go +++ b/services/graph/pkg/server/debug/server.go @@ -18,7 +18,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("web reachability", checks.NewHTTPCheck(options.Config.HTTP.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)). + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)). WithCheck("ldap reachability", checks.NewTCPCheck(options.Config.Identity.LDAP.URI)) return debug.NewService( diff --git a/services/notifications/pkg/server/debug/server.go b/services/notifications/pkg/server/debug/server.go index 4e32fb362..50db21ecd 100644 --- a/services/notifications/pkg/server/debug/server.go +++ b/services/notifications/pkg/server/debug/server.go @@ -16,7 +16,7 @@ func Server(opts ...Option) (*http.Server, error) { readyHandlerConfiguration := handlers.NewCheckHandlerConfiguration(). WithLogger(options.Logger). - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Notifications.Events.Cluster)). + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Notifications.Events.Endpoint)). WithCheck("smtp-check", checks.NewTCPCheck(options.Config.Notifications.SMTP.Host+":"+strconv.Itoa(options.Config.Notifications.SMTP.Port))) return debug.NewService( diff --git a/services/policies/pkg/server/debug/server.go b/services/policies/pkg/server/debug/server.go index e3259472e..24f2e6791 100644 --- a/services/policies/pkg/server/debug/server.go +++ b/services/policies/pkg/server/debug/server.go @@ -18,7 +18,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("grpc reachability", checks.NewGRPCCheck(options.Config.GRPC.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/search/pkg/server/debug/server.go b/services/search/pkg/server/debug/server.go index ddaf60865..2fef371c2 100644 --- a/services/search/pkg/server/debug/server.go +++ b/services/search/pkg/server/debug/server.go @@ -19,7 +19,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("grpc reachability", checks.NewGRPCCheck(options.Config.GRPC.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)). + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)). WithCheck("tika-check", func(ctx context.Context) error { if options.Config.Extractor.Type == "tika" { return checks.NewTCPCheck(options.Config.Extractor.Tika.TikaURL)(ctx) diff --git a/services/sse/pkg/server/debug/server.go b/services/sse/pkg/server/debug/server.go index 4409dfeac..f8fc90aef 100644 --- a/services/sse/pkg/server/debug/server.go +++ b/services/sse/pkg/server/debug/server.go @@ -18,7 +18,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("web reachability", checks.NewHTTPCheck(options.Config.HTTP.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger), diff --git a/services/userlog/pkg/server/debug/server.go b/services/userlog/pkg/server/debug/server.go index 4409dfeac..f8fc90aef 100644 --- a/services/userlog/pkg/server/debug/server.go +++ b/services/userlog/pkg/server/debug/server.go @@ -18,7 +18,7 @@ func Server(opts ...Option) (*http.Server, error) { WithCheck("web reachability", checks.NewHTTPCheck(options.Config.HTTP.Addr)) readyHandlerConfiguration := healthHandlerConfiguration. - WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Cluster)) + WithCheck("nats reachability", checks.NewNatsCheck(options.Config.Events.Endpoint)) return debug.NewService( debug.Logger(options.Logger),