Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maveonair/nut-exporter
This tool exposes Network UPS (nuts) statistics as Prometheus metrics.
https://github.com/maveonair/nut-exporter
Last synced: 27 days ago
JSON representation
This tool exposes Network UPS (nuts) statistics as Prometheus metrics.
- Host: GitHub
- URL: https://github.com/maveonair/nut-exporter
- Owner: maveonair
- License: mit
- Created: 2022-08-08T08:35:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T06:05:42.000Z (2 months ago)
- Last Synced: 2024-10-21T08:57:51.974Z (2 months ago)
- Language: Go
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prometheus Network UPS Exporter
This tool exposes Network UPS (nuts) statistics as Prometheus metrics.
This exporter works similar to the [Blackbox Exporter](https://github.com/prometheus/blackbox_exporter) where you can specify different targets in Prometheus to scrape Mikrotik devices through this exporter.
## Exposed Metrics
| Metric | Definition |
| ------------------------- | -------------------------------------------------------- |
| nut_battery_charge | Battery charge (percent) |
| nut_ups_load | Load on UPS (percent) |
| nut_ups_realpower_nominal | Nominal value of real power (Watts) |
| nut_ups_on_line_power | Displays whether or not the ups is running on line power |## Prometheus Configuration
This exporter implements the multi-target exporter pattern, therefore we recommend reading the guide [Understanding and using the multi-target exporter pattern](https://prometheus.io/docs/guides/multi-target-exporter/) to get an overview of the configuration.
The target must be passed to the nut-exporter as a parameter, this can be done with relabelling.
Example config:
```yaml
scrape_configs:
- job_name: "nut"
metrics_path: /probe
static_configs:
- targets:
- 10.0.1.1
- 10.0.20.1
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9055 # The nut-exporter's real hostname:port.
```