Table of Contents

Class PrometheusOptions

Namespace
Temporalio.Runtime
Assembly
Temporalio.dll

Prometheus metric export options. BindAddress is required.

public class PrometheusOptions : ICloneable
Inheritance
PrometheusOptions
Implements
Inherited Members

Constructors

PrometheusOptions()

Initializes a new instance of the PrometheusOptions class.

public PrometheusOptions()

PrometheusOptions(string)

Initializes a new instance of the PrometheusOptions class.

public PrometheusOptions(string bindAddress)

Parameters

bindAddress string

BindAddress.

Properties

BindAddress

Gets or sets the address to expose Prometheus metrics on.

public string? BindAddress { get; set; }

Property Value

string

HasCounterTotalSuffix

Gets or sets a value indicating whether counters will have a "_total" suffix.

public bool HasCounterTotalSuffix { get; set; }

Property Value

bool

HasUnitSuffix

Gets or sets a value indicating whether metrics will have a unit suffix.

public bool HasUnitSuffix { get; set; }

Property Value

bool

UseSecondsForDuration

Gets or sets a value indicating whether duration values will be emitted as float seconds. If false, it is integer milliseconds.

public bool UseSecondsForDuration { get; set; }

Property Value

bool

Methods

Clone()

Create a shallow copy of these options.

public virtual object Clone()

Returns

object

A shallow copy of these options.