nushell prometheus plugin
A Nushell plugin for retreiving prometheus data including:
- Instant queries
- Range queryies
- Target status
- Series
- Label names
- Label values
Pipe a prometheus query to prometheus query for an instant query:
"up" | prometheus query --url https://prometheus.example:9090/
This will output a table:
| name | labels | value | timestamp |
|---|---|---|---|
| up | {job: prometheus, instance: prometheus.example:9090} | 1 | 1435781451 |
| up | {job: node, instance: prometheus.example:9100} | 0 | 1435781451 |
For the full list of features and details see nu_plugin_prometheus