This is a parser and printer for the Prometheus exposition text format.
See here for a detailed description of the format.
Usage example:
let path = args.nth.expect;
let text = read_to_string.expect;
let mut scrape = parse.expect;
// Add a label to all metrics
scrape.add_label;
// Remove a label from all metrics
scrape.remove_label;
// format the scrape in the Prometheus exposition text format
let rendered = format!;
assert_eq!;