PlusUltra.AppMetrics.Grpc
1.0.1
该项目的灵感来自电子经济学/csharp-grpc-prometheus
添加AppMetrics Standlone Server
services . AddStandaloneMetricsServer ( options => {
options . ListenAnyIP ( 1010 ) ; //here you can set target port
options . AllowSynchronousIO = true ;
} ) ;配置Interceptor Globaly
services . AddGrpc ( options =>
{
options . Interceptors . Add < ServerMetricsInterceptor > ( ) ;
} ) ;打开URL http:// localhost:1010/量表