InfluxDBImpl influxDB = new InfluxDBImpl("http://192.168.44.237:8086", "root", "root", client.newBuilder()); Query query = new Query("select * from disk_free", "devops"); QueryResult result = influxDB.query(query); QueryResult.Result oneResult = result.getResults().get(0); Syste...
步骤1:添加依赖 首先,您需要在 Java 项目中添加 InfluxDB 的客户端依赖。如果您使用 Maven,您可以在pom.xml文件中加入以下依赖: <dependency><groupId>org.influxdb</groupId><artifactId>influxdb-java</artifactId><version>2.20</version><!-- 请根据需要检查最新版本 --></dependency> 1. 2. 3. 4. ...
概述本文主要记录面向 Influxdb 2.x 的java client的使用方法,同时兼容 1.8.0 的 Influxdb。 Influxdb Java客户端Influxdb 客户端 1.8 和 2.x 的选择Note: We recommend using the new client libraries on this …
influxdb-client-java Note: Use this client library with InfluxDB 2.x and InfluxDB 1.8+ (see details). For connecting to InfluxDB 1.7 or earlier instances, use the influxdb-java client library. Features Documentation How To Use Writes and Queries in InfluxDB 2.0 ...
啊,这里需要传入我们的URL。然后呢,再传入我们的talking。呃,之后呢,由我们的org组织。在之后呢,是我们的存储桶好点,呃,现在呢,我们就去创建一个异步写入的API,我们用inlu DB client点注意点啊,这里呢,不是get了啊,我们之前的这些API对象呢,都是都是通过这个client对象呢去调用get方法拿到的,呃,那么这里面。
InfluxDB 2 JVM Based Clients. Contribute to influxdata/influxdb-client-java development by creating an account on GitHub.
好,同学们,这一节呢,我们开始讲解,用Java来查询class DB,那么我们这里呢,新建一个类。啊,就叫Cory。好,那么查询的时候呢,我们要写这个flax脚本,我先把这个我们要用到的一些连接的参数呢拿过来。好,拿过来之后呢,我们再写一个慢方法。啊,那么在慢方法里面呢,我们还是要先创建我们英拉DB的客户端。DB client fa...
This is the Java Client library which is only compatible with InfluxDB 0.9 and higher. Maintained by@majst01. To connect to InfluxDB 0.8.x you need to use influxdb-java version 1.6. This implementation is meant as a Java rewrite of the influxdb-go package. All low level REST Api calls...
The measurement was carried out on the following configurations: Intel Core I7 6700HQ, 16 GB RAM, Windows 10 Enterprise, InfluxDB OSS 1.6, influxdb-java client 2.12. Test scenario: The java-inch tool to create the benchmarking data. Run the java-inch tool with param -t 2,20,10 -p ...
下载到D盘: wget http://dl.influxdata.com/influxdb/releases/influxdb2-2.4.0-windows-amd64.zip 解压开启 ./influxd.exe 打开 http://localhost:8086/ 设置初始用户和密码及其他信息。 Maven 集成 <dependency> <groupId>com.influxdb</groupId> <artifactId>influxdb-client-java</artifactId> <version...