Questions about privilege
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?
+1, why would dcgm require the sysadmin privilege to function properly????
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.
Is there any updates? I just wanna know latest dcgm still needs SYS_ADMIN