summary refs log tree commit diff
diff options
context:
space:
mode:
authorElliot Cameron <nixpkgs-commits@deshaw.com>2023-10-09 16:04:57 -0400
committerElliot Cameron <nixpkgs-commits@deshaw.com>2023-10-09 16:04:57 -0400
commita7b7ef9feac1d0b02c01827df408184df84dcb9b (patch)
tree85ad0d31af923d4e1a6f520b6c60db20a084dcf5
parent4f381c3af17565bd11842d5df51692f1249e7d55 (diff)
downloadnixpkgs-a7b7ef9feac1d0b02c01827df408184df84dcb9b.tar
nixpkgs-a7b7ef9feac1d0b02c01827df408184df84dcb9b.tar.gz
nixpkgs-a7b7ef9feac1d0b02c01827df408184df84dcb9b.tar.bz2
nixpkgs-a7b7ef9feac1d0b02c01827df408184df84dcb9b.tar.lz
nixpkgs-a7b7ef9feac1d0b02c01827df408184df84dcb9b.tar.xz
nixpkgs-a7b7ef9feac1d0b02c01827df408184df84dcb9b.tar.zst
nixpkgs-a7b7ef9feac1d0b02c01827df408184df84dcb9b.zip
dcgm: add note about keeping dcgm and prometheus-dcgm-exporter in sync
-rw-r--r--pkgs/os-specific/linux/dcgm/default.nix2
-rw-r--r--pkgs/servers/monitoring/prometheus/dcgm-exporter/default.nix5
2 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/dcgm/default.nix b/pkgs/os-specific/linux/dcgm/default.nix
index 314a4aae92e..f3ebdf1427e 100644
--- a/pkgs/os-specific/linux/dcgm/default.nix
+++ b/pkgs/os-specific/linux/dcgm/default.nix
@@ -85,7 +85,7 @@ let
 # C.f. https://github.com/NVIDIA/DCGM/blob/7e1012302679e4bb7496483b32dcffb56e528c92/dcgmbuild/build.sh#L22
 in gcc11Stdenv.mkDerivation rec {
   pname = "dcgm";
-  version = "3.2.5";
+  version = "3.2.5"; # N.B: If you change this, be sure prometheus-dcgm-exporter supports this version.
 
   src = fetchFromGitHub {
     owner = "NVIDIA";
diff --git a/pkgs/servers/monitoring/prometheus/dcgm-exporter/default.nix b/pkgs/servers/monitoring/prometheus/dcgm-exporter/default.nix
index 3fb61b42e04..c995d4036ae 100644
--- a/pkgs/servers/monitoring/prometheus/dcgm-exporter/default.nix
+++ b/pkgs/servers/monitoring/prometheus/dcgm-exporter/default.nix
@@ -7,7 +7,10 @@
 }:
 buildGoModule rec {
   pname = "dcgm-exporter";
-  version = "3.2.5-3.1.7";
+
+  # The first portion of this version string corresponds to a compatible DCGM
+  # version.
+  version = "3.2.5-3.1.7"; # N.B: If you change this, update dcgm as well to the matching version.
 
   src = fetchFromGitHub {
     owner = "NVIDIA";