mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-20 20:47:16 +02:00
envoy: Add GRPC stats handler to control plane service (#744)
* Add GRPC stats handler to control plane service
This commit is contained in:
parent
84378440f0
commit
66e4c7d7ca
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ import (
|
||||||
|
|
||||||
"github.com/pomerium/pomerium/config"
|
"github.com/pomerium/pomerium/config"
|
||||||
"github.com/pomerium/pomerium/internal/log"
|
"github.com/pomerium/pomerium/internal/log"
|
||||||
|
"github.com/pomerium/pomerium/internal/telemetry/metrics"
|
||||||
"github.com/pomerium/pomerium/internal/telemetry/requestid"
|
"github.com/pomerium/pomerium/internal/telemetry/requestid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -60,6 +61,7 @@ func NewServer() (*Server, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
srv.GRPCServer = grpc.NewServer(
|
srv.GRPCServer = grpc.NewServer(
|
||||||
|
grpc.StatsHandler(metrics.NewGRPCServerStatsHandler("control_plane")),
|
||||||
grpc.UnaryInterceptor(requestid.UnaryServerInterceptor()),
|
grpc.UnaryInterceptor(requestid.UnaryServerInterceptor()),
|
||||||
grpc.StreamInterceptor(requestid.StreamServerInterceptor()),
|
grpc.StreamInterceptor(requestid.StreamServerInterceptor()),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue