Crate influxive_child_svc
source ·Expand description
Run influxd as a child process.
§Example
use influxive_core::Metric;
use influxive_child_svc::*;
let tmp = tempfile::tempdir().unwrap();
let influxive = InfluxiveChildSvc::new(
InfluxiveChildSvcConfig::default()
.with_database_path(Some(tmp.path().to_owned())),
).await.unwrap();
influxive.write_metric(
Metric::new(
std::time::SystemTime::now(),
"my.metric",
)
.with_field("value", 3.14)
.with_tag("tag", "test-tag")
);
Structs§
- A running child-process instance of influxd. Command and control functions are provided through the influx cli tool. Metric writing is provided through the http line protocol.
- Configure the child process.
- InfluxDB metric writer configuration.