PlusUltra.AppMetrics.Grpc
1.0.1
이 프로젝트는 e-conomic/csharp-grpc prometheus에서 영감을 얻었습니다
AppMetrics Standlone 서버를 추가하십시오
services . AddStandaloneMetricsServer ( options => {
options . ListenAnyIP ( 1010 ) ; //here you can set target port
options . AllowSynchronousIO = true ;
} ) ;인터셉터 globaly를 구성하십시오
services . AddGrpc ( options =>
{
options . Interceptors . Add < ServerMetricsInterceptor > ( ) ;
} ) ;URL http : // localhost : 1010/metrics를 엽니 다