-
Notifications
You must be signed in to change notification settings - Fork 308
/
Copy pathinfluxdbwriter.json
78 lines (78 loc) · 1.7 KB
/
influxdbwriter.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"job": {
"setting": {
"speed": {
"channel": 1,
"bytes": -1
}
},
"content": {
"reader": {
"name": "streamreader",
"parameter": {
"column": [
{
"random": "2001-01-01 00:00:00, 2016-07-07 23:59:59",
"type": "date"
},
{
"random": "1,1000",
"type": "long"
},
{
"random": "1,10",
"type": "string"
},
{
"random": "1000,50000",
"type": "double"
}
],
"sliceRecordCount": 10
}
},
"writer": {
"name": "influxdbwriter",
"parameter": {
"connection": {
"endpoint": "http://localhost:8086",
"database": "addax",
"table": "addax_tbl"
},
"connTimeout": 15,
"readTimeout": 20,
"writeTimeout": 20,
"username": "influx",
"password": "influx123",
"column": [
{
"name": "time",
"type": "timestamp"
},
{
"name": "user_id",
"type": "int"
},
{
"name": "user_name",
"type": "string"
},
{
"name": "salary",
"type": "double"
}
],
"preSql": [
"delete from addax_tbl"
],
"batchSize": 1024,
"retentionPolicy": {
"name": "one_day_only",
"duration": "1d",
"replication": 1
}
}
}
}
}
}