├── .github └── workflows │ └── ci.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── README.md ├── example-data ├── LIST-UPS-1.txt ├── LIST-VAR-1.txt ├── LIST-VAR-2.txt ├── LIST-VAR-3.txt ├── LIST-VAR-4.txt ├── LIST-VAR-5.txt ├── VER-1.txt └── VER-2.txt ├── manage ├── check.sh ├── docker │ ├── build.sh │ ├── clean.sh │ ├── docker-compose.yml │ ├── prometheus.yml │ └── run.sh ├── integration_test.sh └── nut-server-mock.py ├── metrics.md └── src ├── common.rs ├── config.rs ├── http_server.rs ├── main.rs ├── meta.rs ├── metrics.rs ├── nut_client.rs └── openmetrics_builder.rs /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | /.local/ -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/README.md -------------------------------------------------------------------------------- /example-data/LIST-UPS-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/LIST-UPS-1.txt -------------------------------------------------------------------------------- /example-data/LIST-VAR-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/LIST-VAR-1.txt -------------------------------------------------------------------------------- /example-data/LIST-VAR-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/LIST-VAR-2.txt -------------------------------------------------------------------------------- /example-data/LIST-VAR-3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/LIST-VAR-3.txt -------------------------------------------------------------------------------- /example-data/LIST-VAR-4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/LIST-VAR-4.txt -------------------------------------------------------------------------------- /example-data/LIST-VAR-5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/LIST-VAR-5.txt -------------------------------------------------------------------------------- /example-data/VER-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/VER-1.txt -------------------------------------------------------------------------------- /example-data/VER-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/example-data/VER-2.txt -------------------------------------------------------------------------------- /manage/check.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/check.sh -------------------------------------------------------------------------------- /manage/docker/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/docker/build.sh -------------------------------------------------------------------------------- /manage/docker/clean.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/docker/clean.sh -------------------------------------------------------------------------------- /manage/docker/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/docker/docker-compose.yml -------------------------------------------------------------------------------- /manage/docker/prometheus.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/docker/prometheus.yml -------------------------------------------------------------------------------- /manage/docker/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/docker/run.sh -------------------------------------------------------------------------------- /manage/integration_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/integration_test.sh -------------------------------------------------------------------------------- /manage/nut-server-mock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/manage/nut-server-mock.py -------------------------------------------------------------------------------- /metrics.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/metrics.md -------------------------------------------------------------------------------- /src/common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/common.rs -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/config.rs -------------------------------------------------------------------------------- /src/http_server.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/http_server.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/meta.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/meta.rs -------------------------------------------------------------------------------- /src/metrics.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/metrics.rs -------------------------------------------------------------------------------- /src/nut_client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/nut_client.rs -------------------------------------------------------------------------------- /src/openmetrics_builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HON95/prometheus-nut-exporter/HEAD/src/openmetrics_builder.rs --------------------------------------------------------------------------------