Build Status Nuget

C# gRPC interceptors for AppMetrics Prometheus monitoring

This project was inspired by e-conomic/csharp-grpc-prometheus

Usage

Add AppMetrics standlone server

services.AddStandaloneMetricsServer(options => {
    options.ListenAnyIP(1010); //here you can set target port
    options.AllowSynchronousIO = true;
});

Configure interceptor globaly

services.AddGrpc(options =>
{
    options.Interceptors.Add<ServerMetricsInterceptor>();
});

Open the url http://localhost:1010/metrics