new CounterProfile{ Name="current-requests", Description="Current number of requests" },
new CounterProfile{ Name="failed-requests", Description="Failed number of requests" },
});
+ yield return new CounterProvider(
+ "Microsoft-AspNetCore-Server-Kestrel", // Name
+ "A set of performance counters provided by Kestrel.", // Description
+ "0x0", // Keywords
+ "4", // Level
+ new[] {
+ new CounterProfile{ Name="connections-per-second", Description="Connection Rate" },
+ new CounterProfile{ Name="total-connections", Description="Total Connections" },
+ new CounterProfile{ Name="tls-handshakes-per-second", Description="Rate at which TLS Handshakes are made" },
+ new CounterProfile{ Name="total-tls-handshakes", Description="Total number of TLS handshakes made" },
+ new CounterProfile{ Name="current-tls-handshakes", Description="Number of currently active TLS handshakes" },
+ new CounterProfile{ Name="failed-tls-handshakes", Description="Total number of failed TLS handshakes" },
+ new CounterProfile{ Name="current-connections", Description="Number of current connections" },
+ new CounterProfile{ Name="connection-queue-length", Description="Length of Kestrel Connection Queue" },
+ new CounterProfile{ Name="request-queue-length", Description="Length total HTTP request queue" },
+ });
+ yield return new CounterProvider(
+ "System.Net.Http",
+ "A set of performance counters for System.Net.Http",
+ "0x0", // Keywords
+ "4", // Level
+ new[] {
+ new CounterProfile{ Name="requests-started", Description="Requests Started" },
+ new CounterProfile{ Name="requests-started-rate", Description="Requests Started Rate" },
+ new CounterProfile{ Name="requests-aborted", Description="Requests Aborted" },
+ new CounterProfile{ Name="requests-aborted-rate", Description="Requests Aborted Rate" },
+ new CounterProfile{ Name="current-requests", Description="Current Requests" }
+ });
}
public static IReadOnlyList<CounterProvider> GetAllProviders() => _knownProviders.Values.ToList();