qhandler_influxdb

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: Apache-2.0 Imports: 8 Imported by: 3

README

handler-influxdb

InfluxDB handler for the qframe framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	qtypes.Plugin

	SanitizeLabels bool
	// contains filtered or unexported fields
}

func New

func New(qChan qtypes.QChan, cfg *config.Config, name string) (Plugin, error)

func (*Plugin) Connect

func (p *Plugin) Connect()

Connect creates a connection to InfluxDB

func (*Plugin) MetricsToBatchPoint

func (p *Plugin) MetricsToBatchPoint(m qtypes.Metric) (pt *client.Point, err error)

func (*Plugin) NewBatchPoints

func (p *Plugin) NewBatchPoints() client.BatchPoints

func (*Plugin) Run

func (p *Plugin) Run()

Run fetches everything from the Data channel and flushes it to stdout

func (*Plugin) WriteBatch

func (p *Plugin) WriteBatch(points client.BatchPoints) client.BatchPoints

Jump to

Keyboard shortcuts

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