22.170. 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

22.170.1. Inheritance

objectMeterHolder

22.170.2. Inherited Members

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

22.170.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.

22.170.4. Constructors

22.170.4.1. MeterHolder(IMeterFactory, AgentIdentifier)

Initializes a new instance of the class.

public MeterHolder(IMeterFactory meterFactory, AgentIdentifier identifier)

22.170.4.1.1. Parameters

meterFactory IMeterFactory

The factory used to create meter instances.

identifier AgentIdentifier

The agent identifier containing pod information.

22.170.5. Fields

22.170.5.1. Name

The name of the meter instance used for metrics collection.

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

22.170.5.1.1. Field Value

string