influxdb

package
Version: v0.0.0-...-96daba7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: GPL-3.0, BSD-2-Clause-Views Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Create = iota
	Start
	Stop
)
View Source
const DefaultTimeout = 0

DefaultTimeout is the default connection timeout used to connect to an InfluxDB instance

Variables

This section is empty.

Functions

func InfluxDB

func InfluxDB(r metrics.Registry, d time.Duration, url, database, username, password, namespace string)

InfluxDB starts chain InfluxDB reporter which will post the from the given metrics.Registry at each d interval.

func InfluxDBWithTags

func InfluxDBWithTags(r metrics.Registry, d time.Duration, url, database, username, password, namespace string, tags map[string]string)

InfluxDBWithTags starts chain InfluxDB reporter which will post the from the given metrics.Registry at each d interval with the specified tags

Types

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

func NewReporter

func NewReporter(r metrics.Registry, d time.Duration, url, database, username, password, namespace string, tags map[string]string) (*Reporter, error)

func (*Reporter) Start

func (r *Reporter) Start()

InfluxDBWithTags starts chain InfluxDB reporter which will post the from the given metrics.Registry at each d interval with the specified tags

func (*Reporter) Stop

func (r *Reporter) Stop()

Source Files

Jump to

Keyboard shortcuts

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