PlusUltra.AppMetrics.Grpc
1.0.1
Este projeto foi inspirado em e-conômico/csharp-grpc-prometheus
Adicione o servidor Standlone AppMetrics
services . AddStandaloneMetricsServer ( options => {
options . ListenAnyIP ( 1010 ) ; //here you can set target port
options . AllowSynchronousIO = true ;
} ) ;Configure a Interceptor Globaly
services . AddGrpc ( options =>
{
options . Interceptors . Add < ServerMetricsInterceptor > ( ) ;
} ) ;Abra o URL http: // localhost: 1010/métricas