opentsdb

package
v0.9.0-rc22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2015 License: MIT Imports: 8 Imported by: 0

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 SeriesWriter

type SeriesWriter interface {
	WriteSeries(database, retentionPolicy string, points []influxdb.Point) (uint64, error)
}

SeriesWriter defines the interface for the destination of the data.

type Server

type Server struct {
	// contains filtered or unexported fields
}

An InfluxDB input class to accept 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 NewServer

func NewServer(w SeriesWriter, retpol string, db string) *Server

func (*Server) HandleConnection

func (s *Server) HandleConnection(conn net.Conn)

func (*Server) HandleListener

func (s *Server) HandleListener(socket *net.TCPListener)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(listenAddress string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL