Show / Hide Table of Contents

Class PrometheusHandler

Implements legacy Prometheus metrics

Inheritance
object
HttpMessageHandler
DelegatingHandler
PrometheusHandler
Implements
IDisposable
Inherited Members
DelegatingHandler.Send(HttpRequestMessage, CancellationToken)
DelegatingHandler.Dispose(bool)
DelegatingHandler.InnerHandler
HttpMessageHandler.Dispose()
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 Source

PrometheusHandler()

Declaration
public PrometheusHandler()

Methods

View Source

SendAsync(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>
Overrides
DelegatingHandler.SendAsync(HttpRequestMessage, CancellationToken)

Implements

IDisposable
  • View Source
In this article
Back to top Generated by DocFX