blob: aaf5f46b075e1cf915cc49286eef1e05c9c0d52b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, python3
, fetchPypi
, nixosTests
}:
python3.pkgs.buildPythonApplication rec {
pname = "prometheus-pve-exporter";
version = "3.2.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-C7agnOUdtd4YncAiaPQaZqBJ8DKZoM1Fa+dr1F4xYgI=";
};
propagatedBuildInputs = with python3.pkgs; [
prometheus-client
proxmoxer
pyyaml
requests
werkzeug
gunicorn
];
doCheck = false;
pythonImportsCheck = [ "pve_exporter" ];
passthru.tests = {
inherit (nixosTests.prometheus-exporters) pve;
};
meta = with lib; {
description = "Exposes information gathered from Proxmox VE cluster for use by the Prometheus monitoring system";
mainProgram = "pve_exporter";
homepage = "https://github.com/prometheus-pve/prometheus-pve-exporter";
license = licenses.asl20;
maintainers = with maintainers; [ nukaduka ];
};
}
|