Documentation ¶
Overview ¶
Package influxdb is a k6 output that sends metrics to an InfluxDB v2 database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addr null.String `json:"addr" envconfig:"K6_INFLUXDB_ADDR"` Organization null.String `json:"organization" envconfig:"K6_INFLUXDB_ORGANIZATION"` Bucket null.String `json:"bucket" envconfig:"K6_INFLUXDB_BUCKET"` Token null.String `json:"token" envconfig:"K6_INFLUXDB_TOKEN"` InsecureSkipTLSVerify null.Bool `json:"insecureSkipTLSVerify,omitempty" envconfig:"K6_INFLUXDB_INSECURE"` PushInterval types.NullDuration `json:"pushInterval,omitempty" envconfig:"K6_INFLUXDB_PUSH_INTERVAL"` ConcurrentWrites null.Int `json:"concurrentWrites,omitempty" envconfig:"K6_INFLUXDB_CONCURRENT_WRITES"` Precision types.NullDuration `json:"precision,omitempty" envconfig:"K6_INFLUXDB_PRECISION"` TagsAsFields []string `json:"tagsAsFields,omitempty" envconfig:"K6_INFLUXDB_TAGS_AS_FIELDS"` }
Config contains the configuration for the Output.
func GetConsolidatedConfig ¶
func GetConsolidatedConfig( jsonRawConf json.RawMessage, env map[string]string, url string, ) (Config, error)
GetConsolidatedConfig combines {default config values + JSON config + environment vars + URL config values}, and returns the final result.
type Output ¶
type Output struct { output.SampleBuffer // contains filtered or unexported fields }
Output is the influxdb Output struct
func (*Output) Description ¶
Description returns a human-readable description of the output.
Click to show internal directories.
Click to hide internal directories.