#metrics #writer

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

#538 in Development tools

Download history 180/week @ 2023-10-26 116/week @ 2023-11-02 152/week @ 2023-11-09 199/week @ 2023-11-16 240/week @ 2023-11-23 226/week @ 2023-11-30 262/week @ 2023-12-07 256/week @ 2023-12-14 109/week @ 2023-12-21 98/week @ 2023-12-28 202/week @ 2024-01-04 260/week @ 2024-01-11 252/week @ 2024-01-18 335/week @ 2024-01-25 621/week @ 2024-02-01 183/week @ 2024-02-08

1,437 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–16MB
~180K SLoC