influxive-child-svc

Crates.ioinfluxive-child-svc
lib.rsinfluxive-child-svc
version0.0.5
created_at2023-07-14 22:57:55.892012+00
updated_at2025-08-12 12:50:31.344595+00
descriptionRun influxd as a child process
homepage
repositoryhttps://github.com/holochain/influxive
max_upload_size
id916833
size98,158
Eric Harris-Braun (zippy)

documentation

https://docs.rs/influxive-child-svc

README

Project Forum Chat

License: MIT License: Apache-2.0

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")
);
Commit count: 39

cargo fmt