All Projects → driftluo → Influxdbclient Rs

driftluo / Influxdbclient Rs

Licence: mit
A easy-use client to influxdb

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Influxdbclient Rs

Pgwatch2
PostgreSQL metrics monitor/dashboard
Stars: ✭ 960 (+1423.81%)
Mutual labels:  influxdb
Docker Flask Mongodb Example
Uses docker compose with a python flask microservice and MongoDB instance to make a sample application
Stars: ✭ 49 (-22.22%)
Mutual labels:  influxdb
Influxdb Haskell
InfluxDB client library for Haskell
Stars: ✭ 51 (-19.05%)
Mutual labels:  influxdb
Ansible Influxdb
Ansible Galaxy InfluxDB Role
Stars: ✭ 36 (-42.86%)
Mutual labels:  influxdb
Influx dashboards
Chronograf Dashboards for use with data produced by Telegraf input plugins.
Stars: ✭ 44 (-30.16%)
Mutual labels:  influxdb
Influx Crypto Trader
Node js trading bot, let you create trading strategy and run it (backtest/simulation/live)
Stars: ✭ 49 (-22.22%)
Mutual labels:  influxdb
Docker Compose Grafana Influxdb
Demonstration scripts for running Grafana with InfluxDB as datasource.
Stars: ✭ 29 (-53.97%)
Mutual labels:  influxdb
Inch
An InfluxDB benchmarking tool.
Stars: ✭ 57 (-9.52%)
Mutual labels:  influxdb
Homer7 Docker
HOMER 7 Docker Images
Stars: ✭ 47 (-25.4%)
Mutual labels:  influxdb
Personal Influxdb
Import data from various APIs into InfluxDB
Stars: ✭ 51 (-19.05%)
Mutual labels:  influxdb
Openwisp Monitoring
Network monitoring system written in Python and Django, designed to be extensible, programmable, scalable and easy to use by end users: once the system is configured, monitoring checks, alerts and metric collection happens automatically.
Stars: ✭ 37 (-41.27%)
Mutual labels:  influxdb
Influx Prompt
An interactive command-line InfluxDB cli with auto completion.
Stars: ✭ 42 (-33.33%)
Mutual labels:  influxdb
Raspberry pi stats
A script to collect various Raspberry Pi statistics, which are sent via Telegraf to InfluxDB.
Stars: ✭ 50 (-20.63%)
Mutual labels:  influxdb
Solarthing
Monitors an Outback MATE and a Renogy Rover - MPPT Charge Controller. Integrates with Grafana, PVOutput and more!
Stars: ✭ 33 (-47.62%)
Mutual labels:  influxdb
Unifi Poller
Application: Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus
Stars: ✭ 1,050 (+1566.67%)
Mutual labels:  influxdb
Unifiedmetrics
Fully-featured metrics collection agent for Minecraft servers. Supports Prometheus and InfluxDB. Dashboard included out-of-box.
Stars: ✭ 29 (-53.97%)
Mutual labels:  influxdb
Ssh Log To Influx
Send SSH authentication logs to influxdb with geohashing IP
Stars: ✭ 49 (-22.22%)
Mutual labels:  influxdb
Facette
Time series data visualization software
Stars: ✭ 1,115 (+1669.84%)
Mutual labels:  influxdb
Nagflux
A connector which copies performancedata from Nagios / Icinga(2) / Naemon to InfluxDB
Stars: ✭ 55 (-12.7%)
Mutual labels:  influxdb
Go Web Backend
Dockerized backend services for web application
Stars: ✭ 50 (-20.63%)
Mutual labels:  influxdb

InfluxDBClient-rs

image Build Status

A easy-use client to influxdb

Overview

This is an InfluxDB driver for Rust.

Status

This project has been able to run properly, PR is welcome.

Usage

Use

[dependencies]
influx_db_client = "^0.5.0"

http

use influx_db_client::{
    Client, Point, Points, Value, Precision, point, points
};
use tokio;

fn main() {
    // default with "http://127.0.0.1:8086", db with "test"
    let client = Client::default().set_authentication("root", "root");

    let point = point!("test1")
        .add_field("foo", "bar")
        .add_field("integer", 11)
        .add_field("float", 22.3)
        .add_field("'boolean'", false);

    let point1 = Point::new("test1")
        .add_tag("tags", "\\\"fda")
        .add_tag("number", 12)
        .add_tag("float", 12.6)
        .add_field("fd", "'3'")
        .add_field("quto", "\\\"fda")
        .add_field("quto1", "\"fda");

    let points = points!(point1, point);

    tokio::runtime::Runtime::new().unwrap().block_on(async move {
        // if Precision is None, the default is second
        // Multiple write
        client.write_points(points, Some(Precision::Seconds), None).await.unwrap();

        // query, it's type is Option<Vec<Node>>
        let res = client.query("select * from test1", None).await.unwrap();
        println!("{:?}", res.unwrap()[0].series)
    });
}

udp

use influx_db_client::{UdpClient, Point, Value, point};

fn main() {
    let mut udp = UdpClient::new("127.0.0.1:8089");
    udp.add_host("127.0.0.1:8090");

    let point = point!("test").add_field("foo", Value::String(String::from("bar")));

    udp.write_point(point).unwrap();
}

Compatibility

This is the API Document, it may apply to version 1.0 or higher.

I have tested it in version 1.0.2/1.3.5/1.5.

Thanks

Because influent seems to have no longer updated, and only support to the 0.9 version. I read influent.rs and influxdb-python source, and then try to write a library for 1.0+ version for support for my own use.

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].