From a7b7ef9feac1d0b02c01827df408184df84dcb9b Mon Sep 17 00:00:00 2001 From: Elliot Cameron Date: Mon, 9 Oct 2023 16:04:57 -0400 Subject: [PATCH] dcgm: add note about keeping dcgm and prometheus-dcgm-exporter in sync --- pkgs/os-specific/linux/dcgm/default.nix | 2 +- pkgs/servers/monitoring/prometheus/dcgm-exporter/default.nix | 5 ++++- 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 314a4aae92ee..f3ebdf1427eb 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 3fb61b42e040..c995d4036ae0 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";