5 releases
0.2.1 | Apr 24, 2020 |
---|---|
0.2.0 | Apr 24, 2020 |
0.1.3 | Apr 24, 2020 |
0.1.1 | Apr 23, 2020 |
0.1.0 | Feb 27, 2020 |
#183 in #native
8KB
154 lines
OpenMetrics-rs
An OpenMetrics parser in Rust 🦀
Example
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);
}
TODO
- bin -> lib
- consume URLs
- Add label and metric logic to convert parsed pest data into usable data
- parse labels within each metricLine
- reconsider best way to handle labels and special labels (such as quartile)
Dependencies
~2.2–2.9MB
~58K SLoC