Skip to content

Commit

Permalink
Merge pull request #10353 from 2403905/issue-10281-server-probs-fix
Browse files Browse the repository at this point in the history
nats checks fixed
  • Loading branch information
butonic authored Oct 18, 2024
2 parents 290477b + b82ad12 commit c009da4
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion services/activitylog/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/antivirus/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion services/audit/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/clientlog/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/eventhistory/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/frontend/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/graph/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion services/notifications/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion services/policies/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/search/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion services/sse/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion services/userlog/pkg/server/debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c009da4

Please sign in to comment.