influxdbv2

package module
v0.0.0-...-b669e12 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 7 Imported by: 0

README

xk6-influxdbv2

This is a influxdb(v2) output library for k6, implemented as an extension using the xk6 system.

❗ This is a proof of concept, isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK!

The extension in this current repo served as an example for an xk6 output tutorial, but using one or the other is up to the user. :)

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

Then:

  1. Install xk6:
go get -u github.com/k6io/xk6/cmd/xk6
  1. Build the binary:
xk6 build latest --with github.com/BrynCooke/xk6-influxdbv2

Run

To run a k6 case with this extension, first ensure you have environment variables:

  • influxDBv2Url
  • influxDBv2Token
  • influxDBv2Organization
  • influxDBv2Bucket

Then run case:

k6 run ./test.js --out influxdbv2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sample2Point

func Sample2Point(sample stats.Sample) *write.Point

Types

type Output

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

func (*Output) AddMetricSamples

func (o *Output) AddMetricSamples(sampleContainers []stats.SampleContainer)

func (*Output) Description

func (o *Output) Description() string

func (*Output) Start

func (o *Output) Start() error

func (*Output) Stop

func (o *Output) Stop() error

Jump to

Keyboard shortcuts

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