influxdb

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2017 License: MIT Imports: 13 Imported by: 0

README

InfluxDB Plugin

The InfluxDB plugin sends flushed metrics to InfluxDB.

This plugin is still in an experimental state.

Configuration

This plugin can be enabled using the following configuration:

influx_address: http://localhost:8086
influx_consistency: one
influx_db_name: mydb

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfluxDBPlugin

type InfluxDBPlugin struct {
	Logger     *logrus.Logger
	InfluxURL  string
	HTTPClient *http.Client
	Statsd     *statsd.Client
}

InfluxDBPlugin is a plugin for emitting metrics to InfluxDB.

func NewInfluxDBPlugin

func NewInfluxDBPlugin(logger *logrus.Logger, addr string, consistency string, db string, client *http.Client, stats *statsd.Client) *InfluxDBPlugin

NewInfluxDBPlugin creates a new Influx Plugin.

func (*InfluxDBPlugin) Flush

func (p *InfluxDBPlugin) Flush(metrics []samplers.DDMetric, hostname string) error

Flush sends a slice of metrics to InfluxDB

func (*InfluxDBPlugin) Name

func (p *InfluxDBPlugin) Name() string

Name returns the name of the plugin.

Jump to

Keyboard shortcuts

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