Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Count represents a count metric type. Count = iota // Gauge represents a gauge metric type. Gauge = iota // Histogram represents a histogram metric type. Histogram = iota // Distribution represents a distribution metric type. Distribution = iota )
View Source
const ( // DDEnabled represents the config env var to enabled DD client. DDEnabled = "DOGSTATSD_ENABLED" // DDHost represents the config env var to set DD client's statsd host. DDHost = "DOGSTATSD_HOST" // DDPort represents the config env var to set DD client's statsd port. DDPort = "DOGSTATSD_PORT" )
Variables ¶
View Source
var ( // ErrDDClientDisabled indicates that DataDog metrics client is disabled by config. ErrDDClientDisabled = errors.New("DataDog metrics client disabled") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Push(metric Metric) PushWithRate(ratedMetric RatedMetric) }
Client represents a metrics service client.
type RatedMetric ¶
RatedMetric represents a metric with rate.
Click to show internal directories.
Click to hide internal directories.