Add GPU monitoring support to glances
Enable NVIDIA runtime and GPU visibility for GPU performance metrics.
This commit is contained in:
@@ -6,10 +6,12 @@ services:
|
|||||||
image: 'nicolargo/glances:latest-full'
|
image: 'nicolargo/glances:latest-full'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
privileged: true
|
privileged: true
|
||||||
|
runtime: nvidia
|
||||||
ports:
|
ports:
|
||||||
- 61208-61209:61208-61209
|
- 61208-61209:61208-61209
|
||||||
environment:
|
environment:
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
- "GLANCES_OPT=-C /glances/conf/glances.conf -w"
|
- "GLANCES_OPT=-C /glances/conf/glances.conf -w"
|
||||||
volumes:
|
volumes:
|
||||||
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
||||||
|
|||||||
Reference in New Issue
Block a user