Class StatsDConfig
Configuration class for the StatsD monitoring system.
Inheritance
System.Object
StatsDConfig
Namespace:Phobos.Monitoring.StatsD
Assembly:Phobos.Monitoring.StatsD.dll
Syntax
public sealed class StatsDConfig
Constructors
StatsDConfig(EndPoint, Boolean, Int32, StatsDEndpointType)
Declaration
public StatsDConfig(EndPoint endpoint, bool useMultiFrame = true, int frameSize = 512, StatsDEndpointType endpointType = StatsDEndpointType.Udp)
Parameters
Type | Name | Description |
---|---|---|
System.Net.EndPoint | endpoint | |
System.Boolean | useMultiFrame | |
System.Int32 | frameSize | |
StatsDEndpointType | endpointType |
Fields
MulitMetricFrameSizeCommodityInternet
Recommended packet size for multi-metric frames running over commodity internet. https://github.com/etsy/statsd/blob/master/docs/metric_types.md#multi-metric-packets
Declaration
public const int MulitMetricFrameSizeCommodityInternet = 512
Field Value
Type | Description |
---|---|
System.Int32 |
MultiMetricFrameSizeFastEthernet
Declaration
public const int MultiMetricFrameSizeFastEthernet = 1432
Field Value
Type | Description |
---|---|
System.Int32 |
MultiMetricFrameSizeGigabitEthernet
Declaration
public const int MultiMetricFrameSizeGigabitEthernet = 8932
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
EndPoint
The host of the StatsD endpoint.
Declaration
public EndPoint EndPoint { get; }
Property Value
Type | Description |
---|---|
System.Net.EndPoint |
EndpointType
The type of socket endpoint supported by this StatsD server.
Declaration
public StatsDEndpointType EndpointType { get; }
Property Value
Type | Description |
---|---|
StatsDEndpointType |
FrameSize
The maximum number of bytes to fit into a single StatsD frame.
Declaration
public int FrameSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
UseMultiFrame
Indicates if we should try to pack multiple StatsD signals into a single frame.
Declaration
public bool UseMultiFrame { get; }
Property Value
Type | Description |
---|---|
System.Boolean |