Registry / observability / prometheus-parse

prometheus-parse

JSON →
library0.2.5rscratesunverified

A simple parser for the Prometheus text format.

# Cargo.toml [dependencies] prometheus-parse = "0.2.5"
INSTALL
IMPORT
SIG · PROMETHEUS-PARSE
P
prometheus-parse
observabilityrustv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
✓ use prometheus_parse::parse;

Parse Prometheus text format metrics.

use prometheus_parse::parse; fn main() { let data = "# HELP http_requests_total The total number of HTTP requests.\n# TYPE http_requests_total counter\nhttp_requests_total{method="post",code="200"} 1027\n"; let metrics = parse(data).unwrap(); println!("{:?}", metrics); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
2
Resources
prometheus-parse — cargo add prometheus-parse · libregistry