Interface IMetricCollectorBuilder
The common base interface for metric collector builders.
Namespace: PushTechnology.ClientInterface.Client.Features.Metrics
Assembly: Diffusion.Client.dll
Syntax
public interface IMetricCollectorBuilder
Methods
ExportsToPrometheus(Boolean)
Specifies whether the metric collector should export metrics to Prometheus or not.
Declaration
IMetricCollectorBuilder ExportsToPrometheus(bool exportsToPrometheus)
Parameters
Type | Name | Description |
---|---|---|
Boolean | exportsToPrometheus | True to export metrics to Prometheus. |
Returns
Type | Description |
---|---|
IMetricCollectorBuilder | This builder. |
Remarks
The default is that metrics are not exported to Prometheus.
MaximumGroups(Int32)
Sets the maximum number of groups maintained by the metric collector.
Declaration
IMetricCollectorBuilder MaximumGroups(int limit)
Parameters
Type | Name | Description |
---|---|---|
Int32 | limit | A positive integer. |
Returns
Type | Description |
---|---|
IMetricCollectorBuilder | This builder. |
Remarks
By default, the number of groups is not limited.
Reset()
Resets the builder.
Declaration
IMetricCollectorBuilder Reset()
Returns
Type | Description |
---|---|
IMetricCollectorBuilder | This builder. |