Crates.io | openmetrics |
lib.rs | openmetrics |
version | 0.2.1 |
source | src |
created_at | 2020-02-27 18:47:43.385915 |
updated_at | 2020-04-24 17:45:07.863048 |
description | A Rust native parser for the OpenMetrics standard |
homepage | |
repository | https://github.com/pard68/openmetrics-rs |
max_upload_size | |
id | 213223 |
size | 7,807 |
An OpenMetrics parser in Rust 🦀
extern crate openmetrics;
use std::fs;
fn main() {
let unparsed_file = fs::read_to_string("test.prom").expect("cannot read file!");
openmetrics::parse_metrics(unparsed_file);
}