#metrics #child

influxive-child-svc

Run influxd as a child process

13 releases

0.0.2-alpha.1 Oct 16, 2023
0.0.1-alpha.11 Aug 4, 2023
0.0.1-alpha.9 Jul 31, 2023

#86 in #metrics

Download history 218/week @ 2023-07-27 163/week @ 2023-08-03 128/week @ 2023-08-10 154/week @ 2023-08-17 180/week @ 2023-08-24 194/week @ 2023-08-31 312/week @ 2023-09-07 208/week @ 2023-09-14 322/week @ 2023-09-21 261/week @ 2023-09-28 168/week @ 2023-10-05 209/week @ 2023-10-12 162/week @ 2023-10-19 180/week @ 2023-10-26 114/week @ 2023-11-02 106/week @ 2023-11-09

627 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

56KB
1K SLoC

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")
);

Dependencies

~7–22MB
~331K SLoC