collectd

package
v0.9.0-rc13 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = 25826

DefaultPort for collectd is 25826

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(s *Server, iface string) error

func Unmarshal

func Unmarshal(data *gollectd.Packet) []influxdb.Point

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 {
	Database string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(w SeriesWriter, typesDBPath string) *Server

func (*Server) Close

func (s *Server) Close() error

Close shuts down the server's listeners.

Jump to

Keyboard shortcuts

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