Skip to content

Commit cc230f1

Browse files
committed
Update version and and readme for 0.9.0
Add scrape and parse
1 parent 66e93df commit cc230f1

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nu_plugin_prometheus"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
edition = "2021"
55

66
authors = ["Eric Hodel <[email protected]>"]

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A nushell plugin for querying prometheus
44

55
Supports:
6-
* nushell 0.102.0
6+
* nushell 0.104.0
77
* Prometheus API
88
* Instant queries
99
* Range queryies
@@ -12,6 +12,8 @@ Supports:
1212
* Label names
1313
* Label values
1414
* Saved sources for convenience or mutual TLS authentication
15+
* Parsing Prometheus output
16+
* Scraping Prometheus targets
1517

1618
## Usage
1719

@@ -172,3 +174,19 @@ argument alse retrieves both states.
172174
Use `active`, or `dropped` to directly filter active or dropped targets. This
173175
will output only the selected state.
174176

177+
## Scraping
178+
179+
Scrape a prometheus target with:
180+
181+
```nushell
182+
"https://target.example:1234/metrics" | prometheus scrape
183+
```
184+
185+
## Parsing
186+
187+
Parse text prometheus output with:
188+
189+
```nushell
190+
open saved.metrics | prometheus parse
191+
```
192+

0 commit comments

Comments
 (0)