| Crates.io | graphyne |
| lib.rs | graphyne |
| version | 0.2.3 |
| created_at | 2025-10-08 22:19:36.048902+00 |
| updated_at | 2026-01-14 16:20:50.819983+00 |
| description | A simple rust client for sending messages to Graphite |
| homepage | |
| repository | https://github.com/vultr/graphyne |
| max_upload_size | |
| id | 1874654 |
| size | 57,849 |
A blazingly fast, ergonomic Rust client for sending metrics to Graphite Carbon daemons.
Add Graphyne to your project:
cargo add graphyne
use graphyne::{GraphiteClient, GraphiteMessage};
// Create a client with default settings
let mut client = GraphiteClient::builder()
.address("127.0.0.1")
.port(2003)
.build()?;
// Send a metric
let message = GraphiteMessage::new("app.requests.count", "42");
client.send_message(&message)?;
use graphyne::GraphiteClient;
use std::time::Duration;
let mut client = GraphiteClient::builder()
.address("127.0.0.1")
.port(2003)
.retries(5) // Optional
.timeout(Duration::from_secs(10)) // Optional
.build()?;
use graphyne::{GraphiteClient, GraphiteMessage};
let mut client = GraphiteClient::builder()
.address("127.0.0.1")
.port(2003)
.build()?;
// Send various application metrics
let metrics = vec![
GraphiteMessage::new("app.cpu.usage", "45.2"),
GraphiteMessage::new("app.memory.bytes", "1048576"),
GraphiteMessage::new("app.requests.latency", "125"),
];
for metric in &metrics {
client.send_message(metric)?;
}
We welcome contributions! Here's how you can help:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)# Run tests
cargo test
# Check formatting
cargo fmt --check
# Run clippy
cargo clippy -- -D warnings
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Built with ❤️ by the Vultr Core Cloud Engineering team.
Made with 🦀 Rust | Maintained by Vultr