opentsdb

package
v1.85.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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, telnetInsertHandler func(r io.Reader) error, httpInsertHandler func(req *http.Request) error) *Server

MustStart starts OpenTSDB collector on the given addr.

MustStop must be called on the returned server when it is no longer needed.

func (*Server) MustStop

func (s *Server) MustStop()

MustStop stops the server.

Jump to

Keyboard shortcuts

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