| 1 |
# This section can be removed |
| 2 |
[provision] |
| 3 |
# The basic provisioner simply deletes and creates database. |
| 4 |
# If `reset_database` is false, it will not attempt to delete the database |
| 5 |
[provision.basic] |
| 6 |
# If enabled the provisioner will actually run |
| 7 |
enabled = true |
| 8 |
# Address of the instance that is to be provisioned |
| 9 |
address = "localhost:8086" |
| 10 |
# Database that will be created/deleted |
| 11 |
database = "stress" |
| 12 |
# Attempt to delete database |
| 13 |
reset_database = true |
| 14 |
|
| 15 |
# This section cannot be commented out |
| 16 |
# To prevent writes set `enabled=false` |
| 17 |
# in [write.influx_client.basic] |
| 18 |
[write] |
| 19 |
[write.point_generator] |
| 20 |
# The basic point generator will generate points of the form |
| 21 |
# `cpu,host=server-%v,location=us-west value=234 123456` |
| 22 |
[write.point_generator.basic] |
| 23 |
# number of points that will be written for each of the series |
| 24 |
point_count = 100 |
| 25 |
# number of series |
| 26 |
series_count = 100000 |
| 27 |
# How much time between each timestamp |
| 28 |
tick = "10s" |
| 29 |
# Randomize timestamp a bit (not functional) |
| 30 |
jitter = true |
| 31 |
# Precision of points that are being written |
| 32 |
precision = "s" |
| 33 |
# name of the measurement that will be written |
| 34 |
measurement = "cpu" |
| 35 |
# The date for the first point that is written into influx |
| 36 |
start_date = "2006-Jan-02" |
| 37 |
# Defines a tag for a series |
| 38 |
[[write.point_generator.basic.tag]] |
| 39 |
key = "host" |
| 40 |
value = "server" |
| 41 |
[[write.point_generator.basic.tag]] |
| 42 |
key = "location" |
| 43 |
value = "us-west" |
| 44 |
# Defines a field for a series |
| 45 |
[[write.point_generator.basic.field]] |
| 46 |
key = "value" |
| 47 |
value = "float64" # supported types: float64, int, bool |
| 48 |
|
| 49 |
|
| 50 |
[write.influx_client] |
| 51 |
[write.influx_client.basic] |
| 52 |
# If enabled the writer will actually write |
| 53 |
enabled = true |
| 54 |
# Addresses is an array of the Influxdb instances |
| 55 |
addresses = ["localhost:8086"] # stress_test_server runs on port 1234 |
| 56 |
# Database that is being written to |
| 57 |
database = "stress" |
| 58 |
# Precision of points that are being written |
| 59 |
precision = "s" |
| 60 |
# Size of batches that are sent to db |
| 61 |
batch_size = 10000 |
| 62 |
# Interval between each batch |
| 63 |
batch_interval = "0s" |
| 64 |
# How many concurrent writers to the db |
| 65 |
concurrency = 10 |
| 66 |
# ssl enabled? |
| 67 |
ssl = false |
| 68 |
# format of points that are written to influxdb |
| 69 |
format = "line_http" # line_udp (not supported yet), graphite_tcp (not supported yet), graphite_udp (not supported yet) |
| 70 |
|
| 71 |
# This section can be removed |
| 72 |
[read] |
| 73 |
[read.query_generator] |
| 74 |
[read.query_generator.basic] |
| 75 |
# Template of the query that will be ran against the instance |
| 76 |
template = "SELECT count(value) FROM cpu where host='server-%v'" |
| 77 |
# How many times the templated query will be ran |
| 78 |
query_count = 250 |
| 79 |
|
| 80 |
[read.query_client] |
| 81 |
[read.query_client.basic] |
| 82 |
# if enabled the reader will actually read |
| 83 |
enabled = true |
| 84 |
# Address of the instance that will be queried |
| 85 |
addresses = ["localhost:8086"] |
| 86 |
# Database that will be queried |
| 87 |
database = "stress" |
| 88 |
# Interval bewteen queries |
| 89 |
query_interval = "100ms" |
| 90 |
# Number of concurrent queriers |
| 91 |
concurrency = 1 |
| 92 |
|