Crate influxive_writer
source ·Expand description
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")
);
Modules§
- Backend types you probably don’t need.
Structs§
- InfluxDB metric writer instance.
- InfluxDB metric writer configuration.