监控指标不全?

版本:Server is TDengine TSDB-OSS ver:3.4.2.5.community. License will never expire.

手动部署的三节点,systemctl管理,发现指标不全,也是按照手册做的 taosKeeper 参考手册 | TDengine 文档 | 涛思数据

发现log库下stables只有8个,如下:
taos> show stables;
stable_name |

adapter_conn_pool |
explorer_sys |
adapter_requests |
keeper_monitor |
adapter_status |
taos_slow_sql_detail |
taosd_cluster_basic |
adapter_c_interface |
Query OK, 8 row(s) in set (0.002639s)

这就导致我监控很多指标没有,为什么?

keeper配置如下:
[tdengine]host = “localhost”
port = 6041
username = “root”
password = “taosdata”
usessl = false

我docker部署的单节点3.4.2.2,有18个stables 就指标就正常。

看下taoskeeper日志报错信息,以及taos shell 执行select * from information_schema.ins_dnode_variables where name like ‘monitor%’;输出

taod配置,如下:
monitor 1
monitorFqdn localhost

通过查看fqdn死活就是不生效,我看我之前docker拉起来的都是生效的,就是三节点systemctl部署的不行,我是没辙了。。。日志没看出啥异常

taos> select * from information_schema.ins_dnode_variables where name like 'monitor%';
  dnode_id   |              name              |             value              |   scope    |  category  |              info              |
===========================================================================================================================================
。。。。。
           1 | monitor                        | 1                              | server     | global     |                                |
           1 | monitorInterval                | 30                             | server     | global     |                                |
           1 | monitorMaxLogs                 | 100                            | server     | global     |                                |
           1 | monitorComp                    | 0                              | server     | global     |                                |
           1 | monitorLogProtocol             | 0                              | server     | global     |                                |
           1 | monitorForceV2                 | 1                              | server     | global     |                                |
           1 | monitorFqdn                    |                                | server     | local      |                                |
           1 | monitorPort                    | 6043                           | server     | local      |                                |
。。。。。
Query OK, 24 row(s) in set (0.010365s)

keeper日志:

root@MES-TD-01:/var/log/taos# cat taoskeeper_64_20260908.log.5
==================================================
                new log file
==================================================
config:&{InstanceID:64 Cors:{AllowAllOrigins:false AllowOrigins:[] AllowHeaders:[Authorization AccessKey X-AccessKey UserToken X-Language X-WebAppID X-App X-Action] ExposeHeaders:[] AllowCredentials:true AllowWebSockets:true} Host: Port:6043 LogLevel:info GoPoolSize:50000 RotationInterval:15s TDengine:{Host:localhost Port:6041 Username:root Password:[REDACTED] Usessl:false} Metrics:{Cluster: Prefix:taos Database:{Name:log Options:map[buffer:64 cachemodel:both keep:90 vgroups:1]} Tables:[]} Prometheus:{IncludeTables:[] CacheTTL:300} Env:{InCGroup:false} Audit:{Enable:false Database:{Name: Options:map[]}} SSL:{Enable:false CertFile: KeyFile:} Log:{Level:info Path:/var/log/taos RotationCount:3 RotationTime:24h0m0s RotationSize:1073741824 KeepDays:3 Compress:false ReservedDiskSize:1073741824} Transfer: FromTime:2020-01-01T00:00:00+08:00 Drop:}
version                                      3.4.2.5
gitinfo                                      c15925333c9fe385902b153879b812c26bc612f7
buildinfo                                    linux-x64 2026-08-16 16:56:33
09/08 10:35:01.724093 00078627 REP WARN  create database sql: create database if not exists log buffer 64  keep 90  vgroups 1  cachemodel 'both'
09/08 10:35:01.728266 00078627 REP INFO  execute sql:create table if not exists keeper_monitor (ts timestamp, cpu float, mem float, total_reports int ) tags (identify nchar(50))
09/08 10:35:01.776874 00078627 PRG INFO  Memory cache mode (v2) enabled
09/08 10:35:01.794793 00078627 GEN INFO  gColumnSeqMap:map[adapter_c_interface:{[endpoint] [taos_connect_total taos_xxx... 省略]}]
09/08 10:35:01.794928 00078627 ADP INFO  QID:0x4000000000000023 create database, sql:create database if not exists log buffer 64 keep 90 vgroups 1 cachemodel 'both'
09/08 10:35:01.801764 00078627 PRG INFO  Running under service manager.
09/08 10:35:01.801808 00078627 PRG INFO  Starting HTTP service at :6043

加我微信我远程看一下吧15231769300

感谢大佬,已经解决。

记录分享:3.4 之后配置无法生效,需要手动alter一下。

这个怎么解决的啊,alter命令是啥