提交 50f0d969 编写于 作者: S slguan

fix issue #313

上级 eb82d869
...@@ -132,8 +132,36 @@ ...@@ -132,8 +132,36 @@
# start system monitor module in the cluster # start system monitor module in the cluster
# enableMonitor 1 # enableMonitor 1
# number of threads used to process http requests
# httpMaxThreads 2 # httpMaxThreads 2
# pre-allocated number of http sessions
# httpCacheSessions 100
# whether the telegraf table name contains the number of tags and the number of fields
# telegrafUseFieldNum 0
# enable table names generated by telegraf can be configured
# use /etc/taos/taos.telegraf.cfg as the configuration file, such as
# {
# "metrics": [
# {
# "name" : "system",
# "tbname" : "system_uptime",
# "fields": [
# "uptime"
# ]
# },
# {
# "name": "system",
# "tbname" : "system_uptime_format",
# "fields": [
# "uptime_format"
# ]
# }
# ]
# }
# The following parameter is used to limit the maximum number of lines in log files. # The following parameter is used to limit the maximum number of lines in log files.
# max number of rows per log filters # max number of rows per log filters
# numOfLogLines 10000000 # numOfLogLines 10000000
...@@ -169,13 +197,3 @@ ...@@ -169,13 +197,3 @@
# debug flag for TAOS TIMER # debug flag for TAOS TIMER
# tmrDebugFlag 131 # tmrDebugFlag 131
########################### data directory configuration ############################
# option mount_path tier_level
# dataDir /mnt/disk1/taos 0
# dataDir /mnt/disk2/taos 0
# dataDir /mnt/disk3/taos 0
# dataDir /mnt/disk4/taos 0
# dataDir /mnt/disk5/taos 0
# dataDir /mnt/disk6/taos 1
# dataDir /mnt/disk7/taos 1
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
}, },
{ {
"name": "cpu", "name": "cpu",
"tbname" : "cpu_time", "tbname" : "cpu_usage",
"fields": [ "fields": [
"time_active", "usage_active",
"time_guest" "usage_guest"
] ]
} }
] ]
...@@ -68,7 +68,7 @@ static const char DEFAULT_TELEGRAF_CFG[] = ...@@ -68,7 +68,7 @@ static const char DEFAULT_TELEGRAF_CFG[] =
"{\"name\":\"system\",\"tbname\":\"system_uptime\",\"fields\":[\"uptime\"]}," "{\"name\":\"system\",\"tbname\":\"system_uptime\",\"fields\":[\"uptime\"]},"
"{\"name\":\"system\",\"tbname\":\"system_uptime_format\",\"fields\":[\"uptime_format\"]}," "{\"name\":\"system\",\"tbname\":\"system_uptime_format\",\"fields\":[\"uptime_format\"]},"
"{\"name\":\"swap\",\"tbname\":\"swap_in\",\"fields\":[\"in\"]}," "{\"name\":\"swap\",\"tbname\":\"swap_in\",\"fields\":[\"in\"]},"
"{\"name\":\"cpu\",\"tbname\":\"cpu_usage\",\"fields\":[\"usage_active\",\"usage_guest\"]}" "{\"name\":\"cpu\",\"tbname\":\"cpu_usage\",\"fields\":[\"usage_guest\"]}"
"]}"; "]}";
typedef struct { typedef struct {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册