summary refs log tree commit diff
path: root/pkgs/servers/monitoring
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-03-11 00:02:48 +0000
committerGitHub <noreply@github.com>2022-03-11 00:02:48 +0000
commiteaea048b2ae1baf56f798163553d05ad79a3be99 (patch)
tree030fc7297221cbdb768e7462ffacb2531dbe2b46 /pkgs/servers/monitoring
parent99391da078074613e3fe6ba5841441ecf6ea8bd6 (diff)
parenta4c1084dad00ee05b8b8c5a654e784ac22daeb17 (diff)
downloadnixpkgs-eaea048b2ae1baf56f798163553d05ad79a3be99.tar
nixpkgs-eaea048b2ae1baf56f798163553d05ad79a3be99.tar.gz
nixpkgs-eaea048b2ae1baf56f798163553d05ad79a3be99.tar.bz2
nixpkgs-eaea048b2ae1baf56f798163553d05ad79a3be99.tar.lz
nixpkgs-eaea048b2ae1baf56f798163553d05ad79a3be99.tar.xz
nixpkgs-eaea048b2ae1baf56f798163553d05ad79a3be99.tar.zst
nixpkgs-eaea048b2ae1baf56f798163553d05ad79a3be99.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r--pkgs/servers/monitoring/prometheus/pve-exporter.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/pve-exporter.nix b/pkgs/servers/monitoring/prometheus/pve-exporter.nix
new file mode 100644
index 00000000000..707c121cc50
--- /dev/null
+++ b/pkgs/servers/monitoring/prometheus/pve-exporter.nix
@@ -0,0 +1,37 @@
+{ lib
+, python3
+, nixosTests
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "prometheus-pve-exporter";
+  version = "2.2.2";
+
+  src = python3.pkgs.fetchPypi {
+    inherit pname version;
+    sha256 = "0vvsiw8nj8zkx6v42f260xbsdd92l0ac4vwpm7w38j3qwvanar7k";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    prometheus-client
+    proxmoxer
+    pyyaml
+    requests
+    werkzeug
+  ];
+
+  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 ];
+  };
+}