日常操作
更新时间: 2023-02-03 18:43:26
阅读 60
日常操作
登录到ntsdb服务器,
进入bin目录,执行nts命令进行console界面
[root@node13 bin]# ./nts
Connected to NTSDB server version: v1.2.8-ntsdb
NTSDB shell version: v1.2.8-ntsdb
> help
Usage:
connect <host:port> connects to another node specified by host:port
mode prompts for master address
auth prompts for username and password
pretty toggles pretty print for the json format
chunked turns on chunked responses from server
chunk size <size> sets the size of the chunked responses. Set to 0 to reset to the default chunked size
use <db_name> sets current database
format <format> specifies the format of the server responses: json, csv, or column
precision <format> specifies the format of the timestamp: rfc3339, h, m, s, ms, u or ns
consistency <level> sets write consistency level: any, one, quorum, or all
history displays command history
settings outputs the current settings for the shell
clear clears settings such as database or retention policy. run 'clear' for help
exit/quit/ctrl+d quits the nts shell
show databases show database names
show series show series information
show measurements show measurement information
show tag keys show tag key information
show field keys show field key information
balance <db_name>(optional) <rp_name>(optional) <sg_id>(optional) balance cluster
repair <db_name>(optional) <rp_name>(optional) <sg_id>(optional) <sh_id>(optional) repair cluster consistency
check <db_name>(optional) <rp_name>(optional) <sg_id>(optional) <sh_id>(optional) check cluster consistency
查看数据库
> show databases
name: databases
name
----
_internal
flinkV2
name: Query Execution
rows time
---- ----
2 30.914119ms
>
查询特定指标(待补充)
文档反馈
以上内容对您是否有帮助?