#influx-db #metrics #running #instance #writer #influxive #token

influxive-writer

Rust utility for efficiently writing metrics to a running InfluxDB instance

9 releases

0.0.3-alpha.1 Jun 5, 2024
0.0.2-alpha.1 Oct 16, 2023
0.0.1-alpha.11 Aug 4, 2023
0.0.1-alpha.9 Jul 31, 2023

#991 in Development tools

Download history 405/week @ 2024-07-19 558/week @ 2024-07-26 599/week @ 2024-08-02 389/week @ 2024-08-09 387/week @ 2024-08-16 423/week @ 2024-08-23 545/week @ 2024-08-30 605/week @ 2024-09-06 652/week @ 2024-09-13 838/week @ 2024-09-20 325/week @ 2024-09-27 512/week @ 2024-10-04 449/week @ 2024-10-11 368/week @ 2024-10-18 659/week @ 2024-10-25 454/week @ 2024-11-01

1,994 downloads per month
Used in 6 crates (3 directly)

MIT/Apache

26KB
489 lines

Project Forum Chat

License: MIT License: Apache-2.0

Rust utility for efficiently writing metrics to a running InfluxDB instance.

Example

use influxive_core::Metric;
use influxive_writer::*;

let writer = InfluxiveWriter::with_token_auth(
    InfluxiveWriterConfig::default(),
    "http://127.0.0.1:8086",
    "my.bucket",
    "my.token",
);

writer.write_metric(
    Metric::new(
        std::time::SystemTime::now(),
        "my.metric",
    )
    .with_field("value", 3.14)
    .with_tag("tag", "test-tag")
);

Dependencies

~7–15MB
~180K SLoC