You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if setcap 'cap_sys_admin=+ep' $DCGM_EXPORTER; then
if ! $DCGM_EXPORTER -v 1>/dev/null 2>/dev/null; then
>&2 echo "Warning #2: dcgm-exporter doesn't have sufficient privileges to expose profiling metrics. To get profiling metrics with dcgm-exporter, use --cap-add SYS_ADMIN"
setcap 'cap_sys_admin=-ep' $DCGM_EXPORTER
fi
else
>&2 echo "Warning #1: dcgm-exporter doesn't have sufficient privileges to expose profiling metrics. To get profiling metrics with dcgm-exporter, use --cap-add SYS_ADMIN"
fi
fi
# Pass the command line arguments to dcgm-exporter