Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDebugStats ¶
FormatDebugStats returns a printable version of debug stats.
Types ¶
type Server ¶
type Server struct { Statistics *util.Stats Started bool Debug *dsdServerDebug // ServerlessMode is set to true if we're running in a serverless environment. ServerlessMode bool UdsListenerRunning bool // contains filtered or unexported fields }
Server represent a Dogstatsd server
func NewServer ¶
func NewServer(aggregator *aggregator.BufferedAggregator, extraTags []string) (*Server, error)
NewServer returns a running DogStatsD server. If extraTags is nil, they will be read from DD_DOGSTATSD_TAGS if set.
func (*Server) DisableMetricsStats ¶
func (s *Server) DisableMetricsStats()
DisableMetricsStats disables the debug mode of the DogStatsD server and stops the debug mainloop.
func (*Server) EnableMetricsStats ¶
func (s *Server) EnableMetricsStats()
EnableMetricsStats enables the debug mode of the DogStatsD server and start the debug mainloop collecting the amount of metrics received.
func (*Server) Flush ¶
func (s *Server) Flush()
Flush flushes all the data to the aggregator to them send it to the Datadog intake.
func (*Server) GetJSONDebugStats ¶
GetJSONDebugStats returns jsonified debug statistics.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.