influxive-writer

Crates.ioinfluxive-writer
lib.rsinfluxive-writer
version0.0.3-alpha.1
sourcesrc
created_at2023-07-21 21:48:56.624864
updated_at2024-06-05 16:33:16.938024
descriptionRust utility for efficiently writing metrics to a running InfluxDB instance
homepage
repositoryhttps://github.com/holochain/influxive
max_upload_size
id922693
size17,499
Core Dev (github:holochain:core-dev)

documentation

https://docs.rs/influxive-writer

README

Project Forum Chat

License: MIT License: Apache-2.0

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

cargo fmt