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

influxive-writer

Rust utility for efficiently writing metrics to a running InfluxDB instance

8 releases

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

#588 in Development tools

Download history 122/week @ 2024-01-03 252/week @ 2024-01-10 220/week @ 2024-01-17 270/week @ 2024-01-24 422/week @ 2024-01-31 353/week @ 2024-02-07 236/week @ 2024-02-14 218/week @ 2024-02-21 407/week @ 2024-02-28 364/week @ 2024-03-06 308/week @ 2024-03-13 578/week @ 2024-03-20 231/week @ 2024-03-27 416/week @ 2024-04-03 449/week @ 2024-04-10 435/week @ 2024-04-17

1,612 downloads per month
Used in 7 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–17MB
~180K SLoC