ashishdoneriya / Influxdb Java
Licence: apache-2.0
Java API for influx database to fetch and persist data.
Stars: ✭ 12
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Influxdb Java
Monitoring
Monitor ESXi, Synology, Docker, PiHole and Raspberry Pi and Windows using Grafana, InfluxDB and Telegraf
Stars: ✭ 493 (+4008.33%)
Mutual labels: influxdb
Node Influx
📈 The InfluxDB Client for Node.js and Browsers
Stars: ✭ 820 (+6733.33%)
Mutual labels: influxdb
Ceph Dash
Flask based api / dashboard for viewing a ceph clusters overall health status
Stars: ✭ 398 (+3216.67%)
Mutual labels: influxdb
Cryptofeed
Cryptocurrency Exchange Websocket Data Feed Handler
Stars: ✭ 643 (+5258.33%)
Mutual labels: influxdb
Docker Statsd Influxdb Grafana
Docker Image with Telegraf (StatsD), InfluxDB and Grafana
Stars: ✭ 352 (+2833.33%)
Mutual labels: influxdb
Stream Reactor
Streaming reference architecture for ETL with Kafka and Kafka-Connect. You can find more on http://lenses.io on how we provide a unified solution to manage your connectors, most advanced SQL engine for Kafka and Kafka Streams, cluster monitoring and alerting, and more.
Stars: ✭ 753 (+6175%)
Mutual labels: influxdb
Victoriametrics
VictoriaMetrics: fast, cost-effective monitoring solution and time series database
Stars: ✭ 5,558 (+46216.67%)
Mutual labels: influxdb
Influxdb
Scalable datastore for metrics, events, and real-time analytics
Stars: ✭ 22,577 (+188041.67%)
Mutual labels: influxdb
Onboarding
A list of resources we at flyeralarm use to get new developers up and running
Stars: ✭ 648 (+5300%)
Mutual labels: influxdb
Ockam
End-to-end encrypted messaging and mutual authentication between cloud and edge-device applications
Stars: ✭ 395 (+3191.67%)
Mutual labels: influxdb
Varken
Standalone application to aggregate data from the Plex ecosystem into InfluxDB using Grafana for a frontend
Stars: ✭ 829 (+6808.33%)
Mutual labels: influxdb
Awesome Monitoring
INFRASTRUCTURE、OPERATION SYSTEM and APPLICATION monitoring tools for Operations.
Stars: ✭ 356 (+2866.67%)
Mutual labels: influxdb
Tsbs
Time Series Benchmark Suite, a tool for comparing and evaluating databases for time series data
Stars: ✭ 545 (+4441.67%)
Mutual labels: influxdb
Influxdb Bundle
Bundle service integration of official influxdb/influxdb-php client
Stars: ✭ 24 (+100%)
Mutual labels: influxdb
Junos monitoring with healthbot
Healthbot configuration examples. Scripts to manage Healthbot. Closed loop automation. Healthbot building blocks description and troubleshooting guide
Stars: ✭ 17 (+41.67%)
Mutual labels: influxdb
Awesome Influxdb
A curated list of awesome projects, libraries, tools, etc. related to InfluxDB
Stars: ✭ 686 (+5616.67%)
Mutual labels: influxdb
influxdb
Java API for influx database to write and fetch data.
You can use jitpack to add influxdb-java to your project or directly download jar file
Typical usage looks like:
For Writing Data
Configuration configuration = new Configuration("localhost", "8086",
"root", "root", "Localhost");
//configuration.setProtocol("http");
DataWriter writer = new DataWriter(configuration);
writer.setMeasurement("sampleMeasurement1");
// Default is in seconds
writer.setTimeUnit(TimeUnit.MILLISECONDS);
writer.addField("field1", 12212);
writer.addField("field2", 22.44);
writer.addField("field3", "thisIsString");
writer.addField("field4", false);
writer.addTag("hostname", "server001");
// If we'll not set time, it will set automatically
writer.setTime(System.currentTimeMillis());
writer.writeData();
writer.addField("field1", 112);
writer.addField("field2", 21.44);
writer.addField("field3", "thisIsString1");
writer.addField("field4", true);
// Influxdb saves one point at one time. To add another point at same
// time we can use tags otherwise it will override the previous point.
writer.addTag("disk_type", "HDD");
writer.setTime(System.currentTimeMillis());
writer.writeData();
For Fetching Data
Configuration configuration = new Configuration("localhost", "8086",
"root", "root", "Localhost");
Query query = new Query();
query.setMeasurement("sampleMeasurement1");
// selects all fields by default, if not specified as below.
query.addField("field1");
query.addField("field2");
query.addField("field3");
query.addTagInWhereClause("hostname", "server001");
// fetches results of last 1 hour. (supported format are d, h, m, s)
// query.setDuration("1h");
// uncomment below line to apply aggregate functions and grouping
// query.setAggregateFunction(AggregateFunction.MEAN);
// query.setGroupByTime("1m");
query.setLimit(1000);
query.fillNullValues("0");
DataReader dataReader = new DataReader(query, configuration);
ResultSet resultSet = dataReader.getResult();
System.out.println(resultSet);
Query query1 = new Query();
query1.setCustomQuery("select * from sampleMeasurement1");
dataReader.setQuery(query1);
resultSet = dataReader.getResult();
System.out.println(resultSet);
Other Utilities
Configuration configuration = new Configuration("localhost", "8086",
"root", "root", "Localhost");
Utilities utilities = new Utilities();
// For creating database
utilities.createDatabase(configuration);
// For creating retention policy
utilities.createRetentionPolicy(configuration, "customPolicy", 30, 1, true);
utilities.dropMeasurement(configuration, "measurement1");
System.out.println(utilities.isInfluxdbAlive(configuration));
Build Requirements
- Java 1.7+
- Maven 3.0+
You can build influxdb with:
$ mvn clean install -DskipTests=true
For more details http://csetutorials.com/fetch-and-write-influxdb-data-using-java.html
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].