Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a server for collecting OpenTSDB TCP and UDP metrics.
It accepts simultaneously Telnet put requests and HTTP put requests over TCP.
func MustStart ¶
func MustStart(addr string, useProxyProtocol bool, telnetInsertHandler func(r io.Reader) error, httpInsertHandler func(req *http.Request) error) *Server
MustStart starts OpenTSDB collector on the given addr.
If useProxyProtocol is set to true, then the incoming connections are accepted via proxy protocol. See https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
MustStop must be called on the returned server when it is no longer needed.
Click to show internal directories.
Click to hide internal directories.