package
3.0.0+incompatible
Repository: https://github.com/segmentio/stats.git
Documentation: pkg.go.dev
# Functions
Dial opens a new dogstatsd connection to address.
DialConfig opens a new dogstatsd connection using config.
ListenAndServe starts a new dogstatsd server, listening for UDP datagrams on addr and forwarding the metrics to handler.
NewClient creates and returns a new datadog client publishing metrics to the dogstatsd server listening for UDP datagram at addr.
NewClientWith creates and returns a new datadog client configured with config.
NewConn creates a new dogstatsd connection with conn and buff.
Serve runs a dogstatsd server, listening for datagrams on conn and forwarding the metrics to handler.
# Constants
No description provided by the author
DefaultAddress is the default address to which clients connection to.
DefaultBufferSize is the default size of the client buffer.
DefaultFlushInterval is the default interval at which clients flush metrics from their stats engine.
No description provided by the author
No description provided by the author
MaxBufferSize is a hard-limit on the max size of the datagram buffer.
No description provided by the author
# Structs
Client represents a datadog client that pulls metrics from a stats engine and forward them to a dogstatsd agent.
The ClientConfig type is used to configure datadog clients.
A Conn represents a UDP connection to a dogstatsd server.
ConnConfig carries the configuration options that can be set when creating a connection.
The Metric type is a representation of the metrics supported by datadog.
# Interfaces
Handler defines the interface that types must satisfy to process metrics received by a dogstatsd server.
# Type aliases
HandlerFunc makes it possible for function types to be used as metric handlers on dogstatsd servers.
MetricType is an enumeration providing symbols to represent the different metric types upported by datadog.