outputs

package
v0.0.0-...-8ee51b3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteOutputInflux

func WriteOutputInflux(values map[string]int, fieldName string)

WriteOutputInflux Creates a Batch of points given a map

func WriteOutputPushGateway

func WriteOutputPushGateway(values map[string]int)

WriteOutputPushGateway pushes metrics to the pushgatewayw

Types

type InfluxDBServer

type InfluxDBServer struct {
	Host     string
	Port     string
	Database string
}

InfluxDBServer This struct contains the information necessary to connect to a InfluxDB server such as host, port and database

func GetInfluxdbConfig

func GetInfluxdbConfig() InfluxDBServer

GetInfluxdbConfig Generates a server config from environment variables

type PushGatewayServer

type PushGatewayServer struct {
	Host string
	Port string
}

PushGatewayServer This struct contains the information necessary to connect to a PushGateway server such as host and port

func GetPushGatewayConfig

func GetPushGatewayConfig() PushGatewayServer

GetPushGatewayConfig Generates a server config from environment variables

Jump to

Keyboard shortcuts

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