21.174. Class MeterHolder

Namespace: ArmoniK.Core.Common.Meter
Assembly: ArmoniK.Core.Common.dll

Holds and manages meter instances for collecting metrics in ArmoniK components.

[UsedImplicitly]
public class MeterHolder

21.174.1. Inheritance

objectMeterHolder

21.174.2. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

21.174.3. Remarks

This class serves as a central holder for metrics instrumentation, providing a common meter instance with consistent tags to be used across the application. It helps to maintain identity and context for metrics collected from different agent instances by incorporating agent identification in the metric tags.

21.174.4. Constructors

21.174.4.1. MeterHolder(IMeterFactory, AgentIdentifier)

Initializes a new instance of the class.

public MeterHolder(IMeterFactory meterFactory, AgentIdentifier identifier)

21.174.4.1.1. Parameters

meterFactory IMeterFactory

The factory used to create meter instances.

identifier AgentIdentifier

The agent identifier containing pod information.

21.174.5. Fields

21.174.5.1. Name

The name of the meter instance used for metrics collection.

public const string Name = "ArmoniK.Core.MeterHolder"

21.174.5.1.1. Field Value

string