-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtelegraf_test_results.conf
54 lines (48 loc) · 1.67 KB
/
telegraf_test_results.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Configuration for telegraf agent
[agent]
## Default data collection interval for all inputs
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = "ns"
hostname = ""
omit_hostname = true
# Configuration for sending metrics to InfluxDB
[[outputs.influxdb]]
urls = ["INFLUX_HOST"]
database = "INFLUX_DB"
username = "INFLUX_USER"
password = "INFLUX_PASSWORD"
# Stream a log file, like the tail -f command
[[inputs.tail]]
files = ["/opt/gatling/bin/logs/test_results.log"]
from_beginning = false
pipe = false
watch_method = "poll"
data_format = "csv"
csv_header_row_count = 0
csv_column_names = ["time", "simulation", "request_name", "response_time", "method", "status", "status_code", "user_id", "env", "test_type", "build_id", "lg_id"]
csv_delimiter = "\t"
csv_tag_columns = ["lg_id", "build_id", "user_id", "test_type", "request_name", "env", "method"]
csv_timestamp_column = "time"
csv_timestamp_format = "unix_ms"
csv_measurement_column = "simulation"
tagexclude = ["path"]
[[inputs.tail]]
files = ["/opt/gatling/bin/logs/users.log"]
from_beginning = false
pipe = false
watch_method = "poll"
data_format = "csv"
csv_header_row_count = 0
csv_column_names = ["time", "measurement_name", "active", "waiting", "done", "user_count", "env", "test_type", "build_id", "lg_id", "simulation"]
csv_delimiter = "\t"
csv_tag_columns = ["build_id", "lg_id", "simulation", "test_type"]
csv_timestamp_column = "time"
csv_timestamp_format = "unix_ms"
csv_measurement_column = "measurement_name"
tagexclude = ["path"]