Add health endpoint
This commit is contained in:
@@ -14,6 +14,8 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
"github.com/rs/zerolog/log"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/health"
|
||||
healthpb "google.golang.org/grpc/health/grpc_health_v1"
|
||||
"google.golang.org/grpc/reflection"
|
||||
|
||||
"github.com/metadata-agregator/internal/config"
|
||||
@@ -67,6 +69,7 @@ func main() {
|
||||
),
|
||||
)
|
||||
metadatav1.RegisterMetadataServiceServer(grpcServer, server.NewMetadataServer(services))
|
||||
healthpb.RegisterHealthServer(grpcServer, health.NewServer())
|
||||
reflection.Register(grpcServer)
|
||||
|
||||
srvMetrics.InitializeMetrics(grpcServer)
|
||||
|
||||
Reference in New Issue
Block a user