Ubuntu 24.04 从源码编译 dcgm-exporter

Ubuntu 24.04 从源码编译 dcgm-exporter

第一步:添加 NVIDIA CUDA 仓库

shell 复制代码
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
rm cuda-keyring_1.1-1_all.deb

第二步:更新包列表

shell 复制代码
sudo apt-get update

第三步:搜索 DCGM 包

shell 复制代码
apt-cache search datacenter-gpu-manager

第四步:安装 DCGM

shell 复制代码
sudo apt-get install --yes --install-recommends datacenter-gpu-manager-4-cuda12

第五步:启用服务

shell 复制代码
sudo systemctl --now enable nvidia-dcgm

第六步:验证安装

shell 复制代码
dcgmi discovery -l
shell 复制代码
cd dcgm-exporter
make binary
sudo make install

dcgm-exporter &
curl localhost:9400/metrics

从源码编译 dcgm-exporter

已安装 Golang 1.24 或更高版本

DCGM 已安装

javascript 复制代码
git clone https://github.com/NVIDIA/dcgm-exporter.git
cd dcgm-exporter
make binary
sudo make install

dcgm-exporter &
curl localhost:9400/metrics

参考

  1. dcgm-exporter
  2. Ubuntu LTS and Debian dcgm
相关推荐
嵌入式学习和实践9 小时前
Ubuntu 系统 socat 详细介绍与使用教程 - 映射任意两种数据通道
linux·ubuntu·虚拟串口·数据映射·socat
YYRAN_ZZU11 小时前
Ubuntu22.04搭建QEMU嵌入式开发环境全攻略
linux·嵌入式硬件·ubuntu
secret_to_me12 小时前
buildRoot编译rootfs实战
linux·c语言·c++·ubuntu·电脑·buildroot
很楠爱上12 小时前
TypeScript 核心知识精要
javascript·ubuntu·typescript
dust_and_stars12 小时前
在Ubuntu 24.04上设置Jupyter Notebook远程访问
linux·ubuntu·jupyter
x_lrong13 小时前
Ubuntu下安装配置Claude Code
linux·ubuntu·elasticsearch
济61713 小时前
ROS2 Humble 开发专栏---ROS2 三维视觉应用(1)---RGB-D 相机三维点云数据获取实验---适配Ubuntu 22.04
ubuntu·嵌入式·ros2·机器人开发·机器人方向
刘国华-平价IT运维课堂13 小时前
Ubuntu 26.04 LTS 发布,研发与运维需要关注什么?
linux·运维·服务器·人工智能·ubuntu
北山有鸟1 天前
用开发板的.config替换ubuntu中内核源码目录的.config
linux·运维·ubuntu
wait a minutes1 天前
Ubuntu 升级后 NVIDIA 驱动修复指南
linux·运维·ubuntu