Skip to content

Latest commit

 

History

History

Metrics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Metrics

This example application illustrates how to use the metrics interceptor and middleware, and how to use dotnet-counters to monitor the client invocation metrics and the server dispatch metrics.

To collect counter metrics, you need to install the dotnet-counters tools.

https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-counters

You can build the client and server applications with:

dotnet build

First start the Server program:

cd Server
dotnet run

To monitor the server counter metrics, in a separate window run:

dotnet-counters monitor --name Server --counters IceRpc.Dispatch

In a separate terminal run the client program to send requests to the server:

cd Client
dotnet run

To monitor the client counter metrics, in a separate window run:

dotnet-counters monitor --name Client --counters IceRpc.Invocation