2022-03-02 19:29:27 +01:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-05-25 18:06:38 +02:00
|
|
|
, fetchPypi
|
2022-03-02 19:29:27 +01:00
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "prometheus-pve-exporter";
|
2024-01-22 18:36:53 +01:00
|
|
|
version = "3.2.1";
|
2022-03-02 19:29:27 +01:00
|
|
|
|
2023-05-25 18:06:38 +02:00
|
|
|
src = fetchPypi {
|
2022-03-02 19:29:27 +01:00
|
|
|
inherit pname version;
|
2024-01-22 18:36:53 +01:00
|
|
|
sha256 = "sha256-ruJGp/juRxFJwnd0A7/qWgeJHFg9oIKekjWIe3kiUa4=";
|
2022-03-02 19:29:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
prometheus-client
|
|
|
|
proxmoxer
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
werkzeug
|
2023-06-20 14:34:14 +02:00
|
|
|
gunicorn
|
2022-03-02 19:29:27 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "https://github.com/prometheus-pve/prometheus-pve-exporter";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ nukaduka ];
|
|
|
|
};
|
|
|
|
}
|