catalyser

package
v0.0.0-...-84c8370 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InfluxDBVersion fixed INfluxDB supported version
	InfluxDBVersion = "1.4.x"
)

Variables

This section is empty.

Functions

func GraphiteHTTP

func GraphiteHTTP(url *url.URL, header *http.Header, r io.Reader, send func([]byte) error, dpCounter prometheus.Counter) (int, int, error)

GraphiteHTTP returns a Graphite catalyser.

func HandlePing

func HandlePing(c echo.Context) error

HandlePing handle /ping call

func InfluxDB

func InfluxDB(url *url.URL, header *http.Header, r io.Reader, send func([]byte) error, dpCounter prometheus.Counter) (int, int, error)

InfluxDB returns an InfluxDB catalyser.

func OpenTSDB

func OpenTSDB(url *url.URL, header *http.Header, reader io.Reader, send func([]byte) error, dpCounter prometheus.Counter) (int, int, error)

OpenTSDB returns an OpenTSDB catalyser.

func Prometheus

func Prometheus(url *url.URL, headers *http.Header, r io.Reader, send func([]byte) error, dpCounter prometheus.Counter) (int, int, error)

Prometheus returns a Prometheus catalyser.

func Warp

func Warp(url *url.URL, header *http.Header, r io.Reader, send func([]byte) error, dpCounter prometheus.Counter) (int, int, error)

Warp returns a Warp catalyser.

func WarpError

func WarpError(err error) error

WarpError handle errors.

Types

type Graphite

type Graphite struct {
	Listen string
	Parse  bool

	ReqTCPCounter       prometheus.Counter
	ReqTCPOKCounter     prometheus.Counter
	ReqTCPErrorCounter  prometheus.Counter
	ReqTCPNoAuthCounter prometheus.Counter
	ReqTCPdp            prometheus.Counter
	ReqTimes            prometheus.Counter
}

Graphite is a Graphite socket who parse to sensision format

func NewGraphite

func NewGraphite(listen string, p bool) *Graphite

NewGraphite return a new Graphite initialized with his output chan

func (*Graphite) OpenTCPServer

func (g *Graphite) OpenTCPServer()

OpenTCPServer opens the Graphite TCP input format and starts processing data.

func (*Graphite) OpenWarp

func (g *Graphite) OpenWarp(token string, txn string) (*core.Warp, error)

OpenWarp Get warp connection

Jump to

Keyboard shortcuts

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