-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtaosadapter.toml
266 lines (183 loc) · 6.64 KB
/
taosadapter.toml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
# Enable pprof debug mode. If set to true, pprof debugging is enabled.
debug = true
# The directory where TDengine's configuration file (taos.cfg) is located.
taosConfigDir = ""
# The port on which the server listens.
port = 6041
# When the server returns an error, use a non-200 HTTP status code if set to true.
httpCodeServerError = false
# Automatically create the database when writing data with the schemaless feature if set to true.
smlAutoCreateDB = false
# Instance ID of the taosAdapter.
instanceId = 32
# The maximum number of concurrent calls allowed for the C synchronized method.0 means use CPU core count.
#maxSyncConcurrentLimit = 0
# The maximum number of concurrent calls allowed for the C asynchronous method. 0 means use CPU core count.
#maxAsyncConcurrentLimit = 0
[cors]
# If set to true, allows cross-origin requests from any origin (CORS).
allowAllOrigins = true
[pool]
# The maximum number of connections to the server. If set to 0, use cpu count.
# maxConnect = 0
# The maximum number of idle connections to the server. Should match maxConnect.
# maxIdle = 0
# The maximum number of connections waiting to be established. 0 means no limit.
maxWait = 0
# Maximum time to wait for a connection. 0 means no timeout.
waitTimeout = 60
[ssl]
# Enable SSL. Applicable for the Enterprise Edition.
enable = false
certFile = ""
keyFile = ""
[log]
# The directory where log files are stored.
# path = "/var/log/taos"
# The log level. Options are: trace, debug, info, warning, error.
level = "info"
# Number of log file rotations before deletion.
rotationCount = 30
# The number of days to retain log files.
keepDays = 30
# The maximum size of a log file before rotation.
rotationSize = "1GB"
# If set to true, log files will be compressed.
compress = false
# Minimum disk space to reserve. Log files will not be written if disk space falls below this limit.
reservedDiskSize = "1GB"
# Enable logging of HTTP SQL queries.
enableRecordHttpSql = false
# Number of HTTP SQL log rotations before deletion.
sqlRotationCount = 2
# Time interval for rotating HTTP SQL logs.
sqlRotationTime = "24h"
# Maximum size of HTTP SQL log files before rotation.
sqlRotationSize = "1GB"
[monitor]
# If set to true, disables monitoring.
disable = true
# Interval for collecting metrics.
collectDuration = "3s"
# Indicates if running inside a Docker container.
incgroup = false
# When memory usage reaches this percentage, query execution will be paused.
pauseQueryMemoryThreshold = 70
# When memory usage reaches this percentage, both queries and inserts will be paused.
pauseAllMemoryThreshold = 80
# The identity of the current instance. If empty, it defaults to 'hostname:port'.
identity = ""
[uploadKeeper]
# Enable uploading of metrics to TaosKeeper.
enable = true
# URL of the TaosKeeper service to which metrics will be uploaded.
url = "http://127.0.0.1:6043/adapter_report"
# Interval for uploading metrics.
interval = "15s"
# Timeout for uploading metrics.
timeout = "5s"
# Number of retries when uploading metrics fails.
retryTimes = 3
# Interval between retries for uploading metrics.
retryInterval = "5s"
[opentsdb]
# Enable the OpenTSDB HTTP plugin.
enable = true
[influxdb]
# Enable the InfluxDB plugin.
enable = true
[statsd]
# Enable the StatsD plugin.
enable = false
# The port on which the StatsD plugin listens.
port = 6044
# The database name used by the StatsD plugin.
db = "statsd"
# The username used to connect to the TDengine database.
user = "root"
# The password used to connect to the TDengine database.
password = "taosdata"
# The number of worker threads for processing StatsD data.
worker = 10
# Interval for gathering StatsD metrics.
gatherInterval = "5s"
# The network protocol used by StatsD (e.g., udp4, tcp).
protocol = "udp4"
# Maximum number of TCP connections allowed for StatsD.
maxTCPConnections = 250
# If set to true, enables TCP keep-alive for StatsD connections.
tcpKeepAlive = false
# Maximum number of pending messages StatsD allows.
allowPendingMessages = 50000
# If set to true, deletes the counter cache after gathering metrics.
deleteCounters = true
# If set to true, deletes the gauge cache after gathering metrics.
deleteGauges = true
# If set to true, deletes the set cache after gathering metrics.
deleteSets = true
# If set to true, deletes the timing cache after gathering metrics.
deleteTimings = true
[collectd]
# Enable the Collectd plugin.
enable = false
# The port on which the Collectd plugin listens.
port = 6045
# The database name used by the Collectd plugin.
db = "collectd"
# The username used to connect to the TDengine database.
user = "root"
# The password used to connect to the TDengine database.
password = "taosdata"
# Number of worker threads for processing Collectd data.
worker = 10
[opentsdb_telnet]
# Enable the OpenTSDB Telnet plugin.
enable = false
# Maximum number of TCP connections allowed for the OpenTSDB Telnet plugin.
maxTCPConnections = 250
# If set to true, enables TCP keep-alive for OpenTSDB Telnet connections.
tcpKeepAlive = false
# List of databases to which OpenTSDB Telnet plugin writes data.
dbs = ["opentsdb_telnet", "collectd", "icinga2", "tcollector"]
# The ports on which the OpenTSDB Telnet plugin listens, corresponding to each database.
ports = [6046, 6047, 6048, 6049]
# The username used to connect to the TDengine database for OpenTSDB Telnet.
user = "root"
# The password used to connect to the TDengine database for OpenTSDB Telnet.
password = "taosdata"
# Batch size for processing OpenTSDB Telnet data.
batchSize = 1
# Interval between flushing data to the database. 0 means no interval.
flushInterval = "0s"
[node_exporter]
# Enable the Node Exporter plugin.
enable = false
# The database name used by the Node Exporter plugin.
db = "node_exporter"
# The username used to connect to the TDengine database.
user = "root"
# The password used to connect to the TDengine database.
password = "taosdata"
# List of URLs to gather Node Exporter metrics from.
urls = ["http://localhost:9100"]
# Timeout for waiting for a response from the Node Exporter plugin.
responseTimeout = "5s"
# Username for HTTP authentication, if applicable.
httpUsername = ""
# Password for HTTP authentication, if applicable.
httpPassword = ""
# Bearer token for HTTP requests, if applicable.
httpBearerTokenString = ""
# Path to the CA certificate file for SSL validation.
caCertFile = ""
# Path to the client certificate file for SSL validation.
certFile = ""
# Path to the client key file for SSL validation.
keyFile = ""
# If set to true, skips SSL certificate verification.
insecureSkipVerify = true
# Interval for gathering Node Exporter metrics.
gatherDuration = "5s"
[prometheus]
# Enable the Prometheus plugin.
enable = true