influxdb/cmd/influx_stress/examples/template.toml

115 lines
2.5 KiB
TOML
Raw Normal View History

2015-09-25 20:35:24 +00:00
# Set the buffer size for the channel
# that sends points to the influxdb
# client
2015-09-25 04:56:20 +00:00
channel_buffer_size = 100000
2015-09-25 20:35:24 +00:00
# Configuration settings for the
# stress test
2015-09-12 00:23:14 +00:00
[write]
2015-09-25 20:35:24 +00:00
# How many concurrent writers to the db
2015-09-12 00:23:14 +00:00
concurrency = 10
2015-09-25 20:35:24 +00:00
# Size of batches that are sent to db
2015-09-12 00:23:14 +00:00
batch_size = 5000
2015-09-25 20:35:24 +00:00
# Interval between each batch
2015-09-12 00:23:14 +00:00
batch_interval = "0s"
2015-09-25 20:35:24 +00:00
# Database that is being written to
2015-09-12 00:23:14 +00:00
database = "stress"
2015-09-25 20:35:24 +00:00
# Precision of points that are being written
2015-09-18 21:46:21 +00:00
precision = "n"
2015-09-25 20:35:24 +00:00
# Address of the Influxdb instance
address = "localhost:8086"
2015-09-25 20:35:24 +00:00
# Drop and Create new DB
2015-09-12 00:23:14 +00:00
reset_database = true
2015-10-05 19:09:08 +00:00
# The date for the first point that is written into influx
start_date = "2006-Jan-02"
2015-09-12 00:23:14 +00:00
2015-09-25 20:35:24 +00:00
# Describes the schema for series that will be
# written
2015-09-12 00:23:14 +00:00
[[series]]
2015-10-05 19:09:08 +00:00
# How much time between each timestamp
tick = "5s"
# Randomize timestamp a bit
2015-10-05 19:19:59 +00:00
jitter = false
2015-09-25 20:35:24 +00:00
# number of points that will be written for each of the series
point_count = 1000
# name of the measurement that will be written
2015-09-12 00:23:14 +00:00
measurement = "cpu"
series_count = 10000
2015-09-18 21:46:21 +00:00
2015-09-25 20:35:24 +00:00
# number of "generic" tags on a series (e.g. tag-key-1=tag-value, ... ,tag-key-20=tag-value)
# tag_count = 20
2015-09-12 00:23:14 +00:00
2015-09-25 20:35:24 +00:00
# Defines a tag for a series
2015-09-12 00:23:14 +00:00
[[series.tag]]
key = "host"
2015-09-18 21:46:21 +00:00
value = "idk"
2015-09-12 00:23:14 +00:00
[[series.tag]]
key = "location"
2015-09-18 21:46:21 +00:00
value = "lame"
2015-09-12 00:23:14 +00:00
2015-09-25 20:35:24 +00:00
# Defines a field for a series
2015-09-12 00:23:14 +00:00
[[series.field]]
key = "value"
type = "float64"
[[series.field]]
2015-09-18 21:46:21 +00:00
key = "percent"
type = "int"
[[series.field]]
key = "idk"
2015-09-12 00:23:14 +00:00
type = "bool"
2015-09-18 21:46:21 +00:00
[[series.field]]
key = "default"
[[series]]
2015-10-05 19:09:08 +00:00
tick = "1ns"
point_count = 100 # number of points that will be written for each of the series
2015-09-18 21:46:21 +00:00
measurement = "mem"
series_count = 100000
2015-09-18 04:54:04 +00:00
2015-09-18 21:46:21 +00:00
[[series.tag]]
key = "host"
value = "idk"
2015-09-18 04:54:04 +00:00
2015-09-18 21:46:21 +00:00
[[series.tag]]
key = "location"
value = "lame"
2015-09-18 04:54:04 +00:00
2015-09-18 21:46:21 +00:00
[[series.field]]
key = "value"
type = "float64"
2015-09-18 04:54:04 +00:00
2015-09-18 21:46:21 +00:00
[[series.field]]
key = "loc"
type = "float64"
2015-09-18 04:54:04 +00:00
2015-09-18 21:46:21 +00:00
[[series.field]]
key = "sunny"
type = "bool"
2015-09-12 00:23:14 +00:00
2015-09-18 21:46:21 +00:00
[[series.field]]
key = "idk"
type = "int"
2015-09-12 00:23:14 +00:00
2015-09-25 20:35:24 +00:00
# Generates queries of the form
# SELECT aggregates(values) FROM measurements WHERE time > current_timespan - offset
[measurement_query]
enabled = true
2015-09-12 00:23:14 +00:00
concurrency = 10
aggregates = ["mean", "count"]
fields = ["value"]
offset = "5h"
2015-09-12 00:23:14 +00:00
2015-09-25 20:35:24 +00:00
# Generates queries of the form
# SELECT aggregates(values) FROM measurements WHERE tag-key='tag-values-1'
[series_query]
enabled = true
concurrency = 1
aggregates = ["mean", "count"]
fields = ["value"]
2015-09-25 20:35:24 +00:00
# Interval between queries
interval = "50ms"