summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWilliButz <WilliButz@users.noreply.github.com>2021-05-04 01:02:28 +0200
committerGitHub <noreply@github.com>2021-05-04 01:02:28 +0200
commita2adfae03644abfdf9e5235feb05203f87cb6f7d (patch)
tree7121eccf50e2a1af048eff8ea750560dcaa2ee1d /pkgs
parente5b86d7ac08c3c33a4bfd9736a6001a7c63d0a1a (diff)
parent75c5a703ab06d9267cd3aa8938c9e4b0706a9125 (diff)
downloadnixpkgs-a2adfae03644abfdf9e5235feb05203f87cb6f7d.tar
nixpkgs-a2adfae03644abfdf9e5235feb05203f87cb6f7d.tar.gz
nixpkgs-a2adfae03644abfdf9e5235feb05203f87cb6f7d.tar.bz2
nixpkgs-a2adfae03644abfdf9e5235feb05203f87cb6f7d.tar.lz
nixpkgs-a2adfae03644abfdf9e5235feb05203f87cb6f7d.tar.xz
nixpkgs-a2adfae03644abfdf9e5235feb05203f87cb6f7d.tar.zst
nixpkgs-a2adfae03644abfdf9e5235feb05203f87cb6f7d.zip
Merge pull request #121599 from Ma27/knot-exporter-patch
prometheus-knot-exporter: add patch to fix stats
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/monitoring/prometheus/knot-exporter.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/servers/monitoring/prometheus/knot-exporter.nix b/pkgs/servers/monitoring/prometheus/knot-exporter.nix
index 9d99685b569..42b6047d3d4 100644
--- a/pkgs/servers/monitoring/prometheus/knot-exporter.nix
+++ b/pkgs/servers/monitoring/prometheus/knot-exporter.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, lib, python3, nixosTests }:
+{ stdenv, fetchFromGitHub, lib, python3, nixosTests, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "knot-exporter";
@@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-4au4lpaq3jcqC2JXdCcf8h+YN8Nmm4eE0kZwA+1rWlc=";
   };
 
+  patches = [
+    # Fixes a crash with all metrics enabled. See
+    # https://github.com/ghedo/knot_exporter/pull/6 for further context.
+    (fetchpatch {
+      url = "https://github.com/ghedo/knot_exporter/commit/2317476e080369450ae51a707ccd30d4b89d680f.patch";
+      sha256 = "sha256-yEPu8EE1V/draNx9DeMrPj+bMfJRxauweo33dITl4AA=";
+    })
+  ];
+
   dontBuild = true;
 
   nativeBuildInputs = [ python3.pkgs.wrapPython ];