influx连接参数设置

influx连接参数设置influxArgume Listthemwith influxhelp Thelistbelow Weprovidedet execute format and importatthee

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 -execute option, but it does not work with the -import option. All other precision formats (e.g., h,m,s,ms,u, and ns) work with the -execute and -import options.

指定时间展示格式精度,(习惯使用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.

查看版本号

influx连接参数设置

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

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

(0)
上一篇 2026年3月20日 上午7:11
下一篇 2026年3月20日 上午7:11


相关推荐

  • oracle universal installer安装_oracle重装

    oracle universal installer安装_oracle重装1、usr/sbin/useradd-m-goinstall-Gdbaoracle什么意思?? 创建了一个新的UNIX/LINUX用户,-m表示如果已经有这个用户不报错,-g是组,-G是其他组,最后是用户名m表示为用户oracle新建一个家目录-g表示为用户指定一个主group-G表示为用户指定一个group这样oracle既属于oinstall组也

    2026年4月14日
    4
  • 机器学习之KNN最邻近分类算法[通俗易懂]

    机器学习之KNN最邻近分类算法[通俗易懂]KNN算法简介KNN(K-NearestNeighbor)最邻近分类算法是数据挖掘分类(classification)技术中最简单的算法之一,其指导思想是”近朱者赤,近墨者黑“,即由你的邻居来推断出你的类别。KNN最邻近分类算法的实现原理:为了判断未知样本的类别,以所有已知类别的样本作为参照,计算未知样本与所有已知样本的距离,从中选取与未知样本距离最近的K个已知样本,根据少数服从多数…

    2022年4月27日
    52
  • win10 使用 cmd 查看端口占用情况,关闭占用端口的相关程序「建议收藏」

    win10 使用 cmd 查看端口占用情况,关闭占用端口的相关程序「建议收藏」前言:工作中常用端口偶尔被占用,特写此文章记录1.查看被占用的端口号执行命令:netstat-ano|findstr端口号2.通过PID查看占用端口的程序执行命令:tasklist|findstrPID3.通过PID关闭占用的程序此方法可以通过cmd关闭也可以通过任务管理器关闭CMD执行命令:taskkill/T/F/PIDPID通过任务管理器找到对应的PID程序右键结束程序…

    2022年5月12日
    46
  • spectral安装

    spectral安装SpectralPyth SPy 是一个纯 Python 模块 用于处理高光谱图像数据 它具有读取 显示 操作和分类高光谱图像的功能 SPy 需要 Python 并依赖于其他几个免费提供的 Python 模块 在安装 SPy 之前 您应该确保满足其依赖项 虽然您可以仅使用 Python 和 NumPy 使用 SPy 处理高光谱数据 但如果您想使用 SPy 的任何图形功能 您还需要其他几个模块 Dependency Notes Python

    2026年3月18日
    2
  • gradle安装配置与使用

    gradle安装配置与使用什么是 gradleGradle 是一个基于 JVM 的构建工具 是一款通用灵活的构建工具 支持 maven Ivy 仓库 支持传递性依赖管理 而不需要远程仓库或者是 pom xml 和 ivy xml 配置文件 基于 Groovy build 脚本使用 Groovy 编写 简单来说 gradle 就是用于项目构建和依赖管理的 如果你用过 maven 的 pom xml 就知道 maven 的配置和语法有点繁杂 gradle 就简洁了很多 gradle 下载与安装 1 官网下载目前最新版是 gradle 7 2 rc 1 all zip 2

    2026年3月17日
    2
  • python操作ES数据库「建议收藏」

    python操作ES数据库「建议收藏」文章目录1、ES数据库和关系型数据库对比2、连接ES数据库3、插入数据4、查询数据1、ES数据库和关系型数据库对比一个ES集群可以包含多个索引(数据库),每个索引又包含了很多类型(表),类型中包含了很多文档(行),每个文档使用JSON格式存储数据,包含了很多字段(列)关系型数据库数据库表行列ES索引类型文档字段2、连接ES数据库fromelasticsearchimportElasticsearches=Elasticsearch([{“ho

    2022年6月1日
    244

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号