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
1,994 downloads per month
Used in 6 crates
(3 directly)
26KB
489 lines
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