influxdb

package
v0.0.0-...-077b43f Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(r metrics.Registry, cf *config) telemetry.Reporter

New creates a InfluxDB reporter which will post the metrics from the given registry at each interval. CREATE RETENTION POLICY two_hours ON food_data DURATION 2h REPLICATION 1 DEFAULT SHOW RETENTION POLICIES ON food_data CREATE CONTINUOUS QUERY cq_30m ON food_data BEGIN SELECT mean(website) AS mean_website,mean(phone) AS mean_phone INTO food_data."default".downsampled_orders FROM orders GROUP BY time(30m) END

func NewConfig

func NewConfig(uri, db, user, pass string, interval time.Duration) (*config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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