1package stress 2 3var s = ` 4[provision] 5 [provision.basic] 6 enabled = true 7 address = "localhost:8086" 8 database = "stress" 9 reset_database = true 10 11[write] 12 [write.point_generator] 13 [write.point_generator.basic] 14 enabled = true 15 point_count = 100 16 series_count = 100000 17 tick = "10s" 18 jitter = true 19 measurement = "cpu" 20 start_date = "2006-Jan-02" 21 precision = "n" 22 [[write.point_generator.basic.tag]] 23 key = "host" 24 value = "server" 25 [[write.point_generator.basic.tag]] 26 key = "location" 27 value = "us-west" 28 [[write.point_generator.basic.field]] 29 key = "value" 30 value = "float64" 31 32 33 [write.influx_client] 34 [write.influx_client.basic] 35 enabled = true 36 addresses = ["localhost:8086"] 37 database = "stress" 38 precision = "n" 39 batch_size = 5000 40 batch_interval = "0s" 41 concurrency = 10 42 ssl = false 43 format = "line_http" # line_udp, graphite_tcp, graphite_udp 44 45[read] 46 [read.query_generator] 47 [read.query_generator.basic] 48 template = "SELECT count(value) FROM cpu where host='server-%v'" 49 query_count = 250 50 51 [read.query_client] 52 [read.query_client.basic] 53 enabled = true 54 addresses = ["localhost:8086"] 55 database = "stress" 56 query_interval = "100ms" 57 concurrency = 1 58` 59 60// BasicStress returns a config for a basic 61// stress test. 62func BasicStress() (*Config, error) { 63 return DecodeConfig(s) 64} 65