Class PrometheusHandler
Implements legacy Prometheus metrics
Implements
Inherited Members
Namespace: k8s
Assembly: KubernetesClient.dll
Syntax
public class PrometheusHandler : DelegatingHandler, IDisposable
Remarks
Provided for compatibility for existing usages of PrometheusHandler. It is recommended to transition to using OpenTelemetry and the default HttpClient metrics.
Note that the tags/labels are not appropriately named for some metrics. This
incorrect naming is retained to maintain compatibility and won't be fixed on this implementation.
Use OpenTelemetry and the standard HttpClient metrics instead.
Constructors
View SourcePrometheusHandler()
Declaration
public PrometheusHandler()
Methods
View SourceSendAsync(HttpRequestMessage, CancellationToken)
Declaration
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestMessage | request | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<HttpResponseMessage> |