DCGM icon indicating copy to clipboard operation
DCGM copied to clipboard

Questions about privilege

Open Yvanll opened this issue 1 year ago • 3 comments

Hi, I found on the DCGM document: the Embedded Mode should be run as root. Some 3rd-party DCGM Agent like dcgm-exporter will raise runtime error: "FATA[0000] Failed to watch metrics: Error watching fields: Host engine is running as non-root." without SYS_ADMIN privilege. And the error might be raised by dcgmWatchFields interface. I wonder what operation in dcgmWatchFields is checking the privilege, and Could there be a non-privilege solution for agents to just extract the metrics?

Yvanll avatar Oct 30 '24 15:10 Yvanll

+1, why would dcgm require the sysadmin privilege to function properly????

qaccd avatar Nov 04 '24 03:11 qaccd

I recently started exploring dcgm api and I might be wrong here but I believe it's because of the lock on the hardware when you read stats from it. Possible that needs elevated privileges to execute at low level.

jksjaz avatar Jan 24 '25 04:01 jksjaz

Is there any updates? I just wanna know latest dcgm still needs SYS_ADMIN

bluayer avatar Oct 01 '25 14:10 bluayer