mirror of https://github.com/linkerd/linkerd2.git
Make Identity use GRPC Server with Prom Metrics (#3457)
* make identity use grpc server with prom metrics Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com> * linting fix Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
This commit is contained in:
parent
49d39e5a12
commit
139c64132d
|
@ -17,9 +17,9 @@ import (
|
|||
"github.com/linkerd/linkerd2/pkg/identity"
|
||||
"github.com/linkerd/linkerd2/pkg/k8s"
|
||||
consts "github.com/linkerd/linkerd2/pkg/k8s"
|
||||
"github.com/linkerd/linkerd2/pkg/prometheus"
|
||||
"github.com/linkerd/linkerd2/pkg/tls"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// TODO watch trustAnchorsPath for changes
|
||||
|
@ -118,7 +118,7 @@ func Main(args []string) {
|
|||
log.Fatalf("Failed to listen on %s: %s", *addr, err)
|
||||
}
|
||||
|
||||
srv := grpc.NewServer()
|
||||
srv := prometheus.NewGrpcServer()
|
||||
identity.Register(srv, svc)
|
||||
go func() {
|
||||
log.Infof("starting gRPC server on %s", *addr)
|
||||
|
|
Loading…
Reference in New Issue