| Crates.io | prat |
| lib.rs | prat |
| version | 0.1.2 |
| created_at | 2025-09-12 14:44:13.714542+00 |
| updated_at | 2025-09-12 14:56:17.150943+00 |
| description | PRetty PRint PRometheus cAT |
| homepage | |
| repository | https://github.com/blakehawkins/prat |
| max_upload_size | |
| id | 1835892 |
| size | 56,272 |
A pretty-printer for the prometheus text format
Pipe to cat/head/etc to disable pretty-printing:
$ curl https://demo.promlabs.com/metrics | prat | head
---
metrics:
- name: go_gc_cycles_automatic_gc_cycles_total
help: Count of completed GC cycles generated by the Go runtime. Sourced from /gc/cycles/automatic:gc-cycles.
type: Counter
samples:
- labels: []
number: 24304.0
- name: go_gc_cycles_forced_gc_cycles_total
help: Count of completed GC cycles forced by the application. Sourced from /gc/cycles/forced:gc-cycles.
cargo install prat