Skip to content
Rust client for Grafana
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md

README.md

Rustana is a client for Grafana

API documentation

Installation

Rustana is available on crates.io. To use Rustana in your Rust program built with Cargo, add it as a dependency.

[dependencies]
rustana = "0.0.2"

Usage

Rustana containing Rust types for Grafana's API.

use rustana::GrafanaClient;

let mut client = GrafanaClient::new(&url, &token);

fn main() {
    let dashboard_id = "FT5SF";
    match client.get_dashboard_by_id(&dashboard_id) {
        Ok(dashboard) => println!("Dashboard response: {:?}", dashboard),
        Err(e) => println!("error fetching dashboard: {:?}", e),
    }

}
You can’t perform that action at this time.