[root@localhost ~]# influx_inspect export -database mydb -datadir /var/lib/influxdb/data/ -waldir /var/lib/influxdb/wal/ -out /tmp/export writing out tsm file data for mydb/autogen...complete. writing out wal file data for mydb/autogen...complete. [root@localhost ~]# cat /tmp/export # INFLUXDB EXPORT: 1677-09-21T08:12:43+08:00 - 2262-04-12T07:47:16+08:00 # DDL CREATE DATABASE mydb WITH NAME autogen # DML # CONTEXT-DATABASE:mydb # CONTEXT-RETENTION-POLICY:autogen # writing tsm data cpu_load,host=server_1,region=us-west value=0.2 1495530610202006046 cpu_load,host=server_1,region=us-west value=0.2 1495530890532248441 cpu_load,host=server_1,region=us-west value=0.2 1495531594541091603 cpu_load,host=server_1,region=us-west value=0.2 1495537150720522950 cpu_load,host=server_1,region=us-west value=0.2 1495537802987617654 cpu_load,host=server_1,region=us-west value=0.2 1495537827319302712 # writing wal data [root@localhost ~]#
help
显示帮助信息。
report
显示shard信息,示例如下:
[root@localhost ~]# influx_inspect report /var/lib/influxdb/data/mydb/autogen/12/ File Series Load Time 000000004-000000003.tsm 1 51.104µs Statistics Series: Total (est): 1 Completed in 269.807µs [root@localhost ~]#
influx_stress使用方法介绍该可执行文件为InfluxDB压力测试工具,参数如下: