X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4aee7d57faff02fc6b7b6f750dc22a29e58bb963..90d84d8578b760b493ac76b22c42bc284868bc0c:/services/health/main.go diff --git a/services/health/main.go b/services/health/main.go index 2f66b2461e..039954a000 100644 --- a/services/health/main.go +++ b/services/health/main.go @@ -12,14 +12,15 @@ import ( "git.curoverse.com/arvados.git/lib/service" "git.curoverse.com/arvados.git/sdk/go/arvados" "git.curoverse.com/arvados.git/sdk/go/health" + "github.com/prometheus/client_golang/prometheus" ) var ( version = "dev" - command cmd.Handler = service.Command(arvados.ServiceNameController, newHandler) + command cmd.Handler = service.Command(arvados.ServiceNameHealth, newHandler) ) -func newHandler(ctx context.Context, cluster *arvados.Cluster, _ string) service.Handler { +func newHandler(ctx context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler { return &health.Aggregator{Cluster: cluster} }