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
Properties
BindAddress
Gets or sets the address to expose Prometheus metrics on.
public string? BindAddress { get; set; }
Property Value
HasCounterTotalSuffix
Gets or sets a value indicating whether counters will have a "_total" suffix.
public bool HasCounterTotalSuffix { get; set; }
Property Value
HasUnitSuffix
Gets or sets a value indicating whether metrics will have a unit suffix.
public bool HasUnitSuffix { get; set; }
Property Value
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
Methods
Clone()
Create a shallow copy of these options.
public virtual object Clone()
Returns
- object
A shallow copy of these options.