|
|
|
|
@ -17,6 +17,7 @@ import ( |
|
|
|
|
|
|
|
|
|
"github.com/cortexproject/cortex/pkg/util/fakeauth" |
|
|
|
|
"github.com/cortexproject/cortex/pkg/util/flagext" |
|
|
|
|
"github.com/cortexproject/cortex/pkg/util/grpc/healthcheck" |
|
|
|
|
"github.com/cortexproject/cortex/pkg/util/modules" |
|
|
|
|
"github.com/prometheus/client_golang/prometheus" |
|
|
|
|
"github.com/weaveworks/common/signals" |
|
|
|
|
@ -36,6 +37,7 @@ import ( |
|
|
|
|
"github.com/weaveworks/common/middleware" |
|
|
|
|
"github.com/weaveworks/common/server" |
|
|
|
|
"google.golang.org/grpc" |
|
|
|
|
"google.golang.org/grpc/health/grpc_health_v1" |
|
|
|
|
|
|
|
|
|
"github.com/grafana/loki/pkg/distributor" |
|
|
|
|
"github.com/grafana/loki/pkg/ingester" |
|
|
|
|
@ -283,6 +285,8 @@ func (t *Loki) Run() error { |
|
|
|
|
// before starting servers, register /ready handler. It should reflect entire Loki.
|
|
|
|
|
t.Server.HTTP.Path("/ready").Handler(t.readyHandler(sm)) |
|
|
|
|
|
|
|
|
|
grpc_health_v1.RegisterHealthServer(t.Server.GRPC, healthcheck.New(sm)) |
|
|
|
|
|
|
|
|
|
// This adds a way to see the config and the changes compared to the defaults
|
|
|
|
|
t.Server.HTTP.Path("/config").HandlerFunc(configHandler(t.Cfg, newDefaultConfig())) |
|
|
|
|
|
|
|
|
|
|