Registry / database / influxdb-java

influxdb-java

JSON →
library2.25javamavenunverified

Java client library for interacting with the InfluxDB time-series database via its REST API.

<dependency> <groupId>org.influxdb</groupId> <artifactId>influxdb-java</artifactId> <version>2.25</version> </dependency>
INSTALL
IMPORT
SIG · INFLUXDB-JAVA
I
influxdb-java
databasejavav2.25
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InfluxDB
org.influxdb.InfluxDB

Connects to InfluxDB and pings the server.

import org.influxdb.InfluxDB; import org.influxdb.InfluxDBFactory; public class Main { public static void main(String[] args) { InfluxDB influxDB = InfluxDBFactory.connect("http://localhost:8086", "user", "password"); System.out.println(influxDB.ping()); } }
Debug
Known issues
breakingThe InfluxDB Java client has breaking changes between versions 1.x and 2.x; ensure compatibility with your InfluxDB server version.
fix
Use influxdb-java 2.x for InfluxDB 1.x, or switch to the official influxdb-client-java for InfluxDB 2.x.
affects: >=2.0.0
Upgrade
Version history
2.25latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
influxdb-java — mvn dependency:get influxdb-java · libregistry