Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPort represents the default OpenTSDB port. DefaultPort = 4242 // DefaultDatabaseName is the default OpenTSDB database if none is specified. DefaultDatabaseName = "opentsdb" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type SeriesWriter ¶
type SeriesWriter interface {
WriteSeries(database, retentionPolicy string, points []tsdb.Point) (uint64, error)
}
SeriesWriter defines the interface for the destination of the data.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an InfluxDB input class to implement OpenTSDB's input protocols.
func (*Server) HandleConnection ¶
HandleConnection takes each new connection and attempts to determine if it should be handled by the HTTP handler, if parsing as a HTTP request fails, we'll pass it to the telnet handler
func (*Server) HandleTelnet ¶
HandleTelnet accepts OpenTSDB's telnet protocol Each telnet command consists of a line of the form:
put sys.cpu.user 1356998400 42.5 host=webserver01 cpu=0
func (*Server) ListenAndServe ¶
ListenAndServe start the OpenTSDB compatible server on the given ip and port.
Click to show internal directories.
Click to hide internal directories.