test2influxdb

command
v0.0.0-...-cc18b67 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

test2influxdb writes results from 'go test -json' to an influxdb database.

Example usage:

go test -json | test2influxdb [options...]

Points are written to influxdb with tags:

package
type    "package" for a package result; "test" for a test result
Additional tags set by -tags flag

And fields:

test    string  // "NONE" for whole package results
elapsed float64 // in seconds
pass    float64 // 1 for PASS, 0 for FAIL
Additional fields set by -fields flag

"test" is a field instead of a tag to reduce cardinality of data.

Jump to

Keyboard shortcuts

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