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 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址