| Crates.io | influxive-child-svc |
| lib.rs | influxive-child-svc |
| version | 0.0.5 |
| created_at | 2023-07-14 22:57:55.892012+00 |
| updated_at | 2025-08-12 12:50:31.344595+00 |
| description | Run influxd as a child process |
| homepage | |
| repository | https://github.com/holochain/influxive |
| max_upload_size | |
| id | 916833 |
| size | 98,158 |
Run influxd as a child process.
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")
);