influx Arguments
There are several arguments you can pass into influx when starting. List them with $ influx --help. The list below offers a brief discussion of each option. We provide detailed information on -execute, -format, and -import at the end of this section.
-compressed Set to true if the import file is compressed. Use with -import.
如果导入的文件是被压缩的则设置成true
-consistency 'any|one|quorum|all' Set the write consistency level.
设置写入时数据一致性等级
-database 'database name' The database to which influx connects.
连接数指定对应数据库
-execute 'command' Execute an InfluxQL command and quit. See -execute.
指定查询语句 (注意时间条件和数据量limit的限制)
-format 'json|csv|column' Specifies the format of the server responses. See -format.
数据输出格式支持json|csv|column
-host 'host name' The host to which influx connects. By default, InfluxDB runs on localhost.
连接指定主机名称,默认是本机localhost
-import Import new data from a file or import a previously exported database from a file. See -import.
导入新数据
-password 'password' The password influx uses to connect to the server. influx will prompt for a password if you leave it blank (-password ''). Alternatively, set the password for the CLI with the INFLUX_PASSWORD environment variable.
指定连接密码
-path The path to the file to import. Use with -import.
导入的数据所在路径
-port 'port #' The port to which influx connects. By default, InfluxDB runs on port 8086.
连接的指定端口,默认端口8086
-pps How many points per second the import will allow. By default, pps is zero and influx will not throttle importing. Use with -import.
设置服务每秒写入指标量
-precision 'rfc3339|h|m|s|ms|u|ns' Specifies the format/precision of the timestamp: rfc3339 (YYYY-MM-DDTHH:MM:SS.nnnnnnnnnZ), h (hours), m (minutes), s (seconds), ms (milliseconds), u (microseconds), ns (nanoseconds). Precision defaults to nanoseconds.
Note: Setting the precision to
rfc3339(-precision rfc3339) works with the-executeoption, but it does not work with the-import option. All other precision formats (e.g.,h,m,s,ms,u, andns) work with the-executeand-importoptions.
指定时间展示格式精度,(习惯使用rfc3339)
-pretty Turns on pretty print for the json format.
当输出数据格式为json时,显示会更美观
-ssl Use HTTPS for requests.
加密请求
-unsafeSsl Disables SSL certificate verification. Use when connecting over HTTPS with a self-signed certificate.
非加密请求
-username 'username' The username that influx uses to connect to the server. Alternatively, set the username for the CLI with the INFLUX_USERNAME environment variable.
连接的用户名
-version Display the InfluxDB version and exit.
查看版本号

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/202417.html原文链接:https://javaforall.net
