Class HttpMetrics
Represents metrics reported by the System.Net.Http event counters.
Inheritance
Namespace: Yarp.Telemetry.Consumption
Assembly: Yarp.Telemetry.Consumption.dll
Syntax
public sealed class HttpMetrics : object
Constructors
| Improve this Doc View SourceHttpMetrics()
Declaration
public HttpMetrics()
Properties
| Improve this Doc View SourceCurrentHttp11Connections
Number of currently open HTTP 1.1 connections.
Declaration
public long CurrentHttp11Connections { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
CurrentHttp20Connections
Number of currently open HTTP 2.0 connections.
Declaration
public long CurrentHttp20Connections { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
CurrentRequests
Number of active HTTP requests that have started but not yet completed or failed.
Declaration
public long CurrentRequests { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Http11RequestsQueueDuration
Average time spent on queue for HTTP 1.1 requests that hit the MaxConnectionsPerServer limit in the last metrics interval.
Declaration
public TimeSpan Http11RequestsQueueDuration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Http20RequestsQueueDuration
Average time spent on queue for HTTP 2.0 requests that hit the MAX_CONCURRENT_STREAMS limit on the connection in the last metrics interval.
Declaration
public TimeSpan Http20RequestsQueueDuration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
RequestsFailed
Number of HTTP requests that failed since telemetry was enabled.
Declaration
public long RequestsFailed { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
RequestsFailedRate
Number of HTTP requests that failed in the last metrics interval.
Declaration
public long RequestsFailedRate { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
RequestsStarted
Number of HTTP requests started since telemetry was enabled.
Declaration
public long RequestsStarted { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
RequestsStartedRate
Number of HTTP requests started in the last metrics interval.
Declaration
public long RequestsStartedRate { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Timestamp
Timestamp of when this KestrelMetrics instance was created.
Declaration
public DateTime Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTime |