graphyne
A simple but useful Rust client for sending messages to a Graphite Carbon collector daemon.
Getting started
cargo add graphyne
Example usage
Create a GraphiteClient
let host = "127.0.0.1";
let port: u16 = 2023;
let client = builder
.address
.port
.retries
.timeout
.build
.unwrap;
Construct a GraphiteMessage
let my_key_path = "my.key.path";
let my_metric = 42;
let message = GraphiteMessage.new;
Send the GraphiteMessage
client.send_message;
Known limitations
GraphiteClientwill fail when passed a DNS name instead of IP address.
Contributing
We welcome contributions, please open a pull request.
License
Apache 2.0