influxdb

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package influxdb implements a backend to InfluxDB (https://influxdata.com)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) (*backend, error)

New creates an instance of the InfluxDB backend using specified configuration

Types

type Config

type Config struct {
	// URL defines the InfluxDB endpoint
	URL string
	// Database for health metrics.  Will be created if not yet existing
	Database string
	// Timeout is the write timeout for the InfluxDB client
	Timeout time.Duration
	// Username for the database
	Username string
	// Password for the database
	Password string
	// Precision defines the timestamp format for metric points
	// (rfc3339: one of `h, m, s, ms, u, ns`)
	Precision string
}

Config defines the configuration for setting up InfluxDB backend

Jump to

Keyboard shortcuts

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