I have trouble accessing the SignalR Performance Counters; How can I access the performance counters for SignalR in .NET Core using C#? I've sucessfully installed them via
signalr.exe ipc
But I haven't found any way to access them from my program, which I assume is via the PerformanceCounter
class. The documentation is completely unhelpful on how to continue after installing them to using them programmatically.
I assumed I could use them the same way as any performance counter;
Process p = <My process>;
PerformanceCounter totalErrorsCounter= new PerformanceCounter("Process", "Message Bus Busy Workers", p.ProcessName);
The above results in:
System.InvalidOperationException: 'Could not locate Performance Counter with specified category name 'Process', counter name 'Message Bus Busy Workers'.'
Where am I wrong?
How about following this guide.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.