Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephenwakely/nu_plugin_from_prometheus
Nushell plugin to parse metrics in Prometheus format
https://github.com/stephenwakely/nu_plugin_from_prometheus
Last synced: about 2 months ago
JSON representation
Nushell plugin to parse metrics in Prometheus format
- Host: GitHub
- URL: https://github.com/stephenwakely/nu_plugin_from_prometheus
- Owner: StephenWakely
- License: mpl-2.0
- Created: 2023-05-28T22:58:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-14T12:10:13.000Z (12 months ago)
- Last Synced: 2024-04-12T16:08:00.124Z (10 months ago)
- Language: Rust
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nu_plugin_from_prometheus
A nushell plugin that parses [Prometheus][format] text outputting the results in
a table.Typically the text will be retrieved by fetching the text from a `metrics` endpoint
via http.For example:
```sh
〉http get http://localhost:7070/metrics | from prometheus | table --expand
# name type tags value
0 vector_api_started_total Counter host pooter 1.00
1 vector_buffer_received_bytes_total Counter buffer_type memory 323033327.00
component_id prometheus
component_kind sink
component_name prometheus
component_type prometheus_exporter
host pooter
stage 0
...
```To install, clone the repo:
```sh
〉cargo build --release
〉register target/release/nu_plugin_from_prometheus
```[format]: https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format