dcgm-exporter.service 427 Bytes
Newer Older
1 2 3
[Unit]
Description=NVIDIA DCGM prometheus exporter service
After=network.target
4 5 6 7
# Ensure that /dev/nvidia0 is created by first calling nvidia-smi.
# If no GPU is found, nvidia-smi will not create /dev/nvidia0 and we will not run.
Wants=nvidia-smi.service
After=nvidia-smi.service
8 9 10 11 12 13 14 15 16
ConditionPathExists=/dev/nvidia0

[Service]
Type=simple
ExecStart=/usr/sbin/dcgm-exporter
Restart=on-failure

[Install]
WantedBy=multi-user.target