influx

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePoint

func CreatePoint(obs *wsupload.Observation, measurementName string) (*write.Point, error)

func NewDebugPublisher

func NewDebugPublisher(options DebugPublisherOptions) (wsupload.Publisher, error)

func NewPublisher

func NewPublisher(options PublisherOptions) (wsupload.Publisher, error)

Types

type DebugPublisherOptions

type DebugPublisherOptions struct {
	MeasurementName string `env:"MEASUREMENT_NAME" flag:"measurement-name" desc:"InfluxDB measurement name"`
}

type PublisherOptions

type PublisherOptions struct {
	Addr            string `env:"INFLUX_ADDR" flag:"addr" desc:"InfluxDB HTTP address, set empty to disable"`
	AuthToken       string `env:"INFLUX_AUTH_TOKEN" flag:"auth-token" desc:"InfluxDB auth token, use username:password for InfluxDB 1.8"`
	Organization    string `env:"INFLUX_ORGANIZATION" flag:"organization" desc:"InfluxDB organization, do not set if using InfluxDB 1.8"`
	Bucket          string `env:"INFLUX_BUCKET" flag:"bucket" desc:"InfluxDB bucket, set to database/retention-policy or database for InfluxDB 1.8"`
	MeasurementName string `env:"MEASUREMENT_NAME" flag:"measurement-name" desc:"InfluxDB measurement name"`
}

Jump to

Keyboard shortcuts

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