Show / Hide Table of Contents

Class MetricsExtensions

Extension utilities for metrics.

Inheritance
object
MetricsExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extractor.Metrics
Assembly: Cognite.Metrics.dll
Syntax
public static class MetricsExtensions

Methods

| Edit this page View Source

AddCogniteMetrics(IServiceCollection, int)

Adds a configured metrics service to the services collection Also adds a named IHttpClientFactory to be used by the push gateways, with simple retry policy to handle transient http errors configured (5 retries with exponential backoff).

Declaration
public static void AddCogniteMetrics(this IServiceCollection services, int pushTimeout = 80000)
Parameters
Type Name Description
IServiceCollection services
int pushTimeout

Timeout in milliseconds for each push attempt

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