mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Unified Storage: When prom registry is nil, use the default registry (#97491)
when prom registry is nil, use the default registry
This commit is contained in:
parent
addbdb0545
commit
39aede9802
@ -71,6 +71,11 @@ func ProvideUnifiedStorageGrpcService(
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// reg can be nil when running unified storage in standalone mode
|
||||||
|
if reg == nil {
|
||||||
|
reg = prometheus.DefaultRegisterer
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: This is a temporary solution while we are migrating to the new authn interceptor
|
// FIXME: This is a temporary solution while we are migrating to the new authn interceptor
|
||||||
// grpcutils.NewGrpcAuthenticator should be used instead.
|
// grpcutils.NewGrpcAuthenticator should be used instead.
|
||||||
authn, err := grpcutils.NewGrpcAuthenticatorWithFallback(cfg, prometheus.DefaultRegisterer, tracing, &grpc.Authenticator{})
|
authn, err := grpcutils.NewGrpcAuthenticatorWithFallback(cfg, prometheus.DefaultRegisterer, tracing, &grpc.Authenticator{})
|
||||||
|
Loading…
Reference in New Issue
Block a user