# Functions
BufPoolCapacity controls size of pre-allocated buffer cache
Each buffer is MaxPacketSize.
DefaultTags defines a list of tags to be applied to every metric.
FlushInterval controls flushing incomplete UDP packets which makes sure metric is not delayed longer than FlushInterval
Default value is 100ms, setting FlushInterval to zero disables flushing.
Int64Tag creates Tag with integer value.
IntTag creates Tag with integer value.
Logger is used by statsd client to report errors and lost packets
If not set, default logger to stderr with metricPrefix `[STATSD] ` is being used.
MaxPacketSize control maximum UDP packet size
Default value is DefaultMaxPacketSize.
MetricPrefix is metricPrefix to prepend to every metric being sent
Usually metrics are prefixed with app name, e.g.
New initializes a new Meter.
ReconnectInterval controls UDP socket reconnects
Reconnecting is important to follow DNS changes, e.g.
ReportInterval instructs client to report number of packets lost each interval via Logger
By default lost packets are reported every minute, setting to zero disables reporting.
RetryTimeout controls how often client should attempt reconnecting to statsd server on failure
Default value is 5 seconds.
SendLoopCount controls number of goroutines sending UDP packets
Default value is 1, so packets are sent from single goroutine, this value might need to be bumped under high load.
SendQueueCapacity controls length of the queue of packet ready to be sent
Packets might stay in the queue during short load bursts or while client is reconnecting to statsd
Default value is DefaultSendQueueCapacity.
StringTag creates Tag with string value.
TagStyle controls formatting of StatsD tags
There are two predefined formats: for InfluxDB and Datadog, default format is InfluxDB tag format.
# Constants
Default settings.
Default settings.
Default settings.
Default settings.
Default settings.
Default settings.
Default settings.
Default settings.
Default settings.
Default settings.
Tag placement constants.
Tag placement constants.
# Variables
TagFormatDatadog is format for DogStatsD (Datadog Agent)
Docs: https://docs.datadoghq.com/developers/dogstatsd/#datagram-format.
TagFormatInfluxDB is format for InfluxDB StatsD telegraf plugin
Docs: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/statsd.
# Structs
ClientOptions are statsd client settings.
Config holds Meter initialization parameters.
Meter holds event durations and counts.
Tag is metric-specific tag.
TagFormat controls tag formatting style.
# Interfaces
SomeLogger defines logging interface that allows using 3rd party loggers (e.g.
# Type aliases
Option is type for option transport.