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
@@ -19,27 +103,38 @@ A real-time NVIDIA GPU monitoring dashboard built with Docker for easy deploymen
19
103
- Real time alerts - sound and notification
20
104
- Responsive theme for any size screen
21
105
22
-
23
106
## Prerequisites
24
107
25
108
- Docker
26
109
- NVIDIA GPU with drivers installed
27
110
- NVIDIA Container Toolkit
28
111
- Python 3.10+
29
112
113
+
30
114
## Quick Start
31
115
32
-
### Using Pre-built Image Docker Run
116
+
Test to see if you already have the requirements and ready to use.
117
+
118
+
```bash
119
+
sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
120
+
```
121
+
If this failed proceed to [Installation Prerequisites](#installation-prerequisites)
122
+
123
+
124
+
125
+
### Using Pre-built Image
33
126
34
127
```bash
35
128
docker run -d \
36
129
--name gpu-monitor \
37
-
--restart unless-stopped \
38
-
--gpus all \
39
130
-p 8081:8081 \
40
131
-e TZ=America/Los_Angeles \
41
132
-v /etc/localtime:/etc/localtime:ro \
42
-
ghcr.io/bigsk1/gpu-monitor:latest
133
+
-v ./history:/app/history \
134
+
-v ./logs:/app/logs \
135
+
--gpus all \
136
+
--restart unless-stopped \
137
+
bigsk1/gpu-monitor:latest
43
138
```
44
139
Note: Update your timezone to use the correct time
45
140
### Using Docker Compose
@@ -55,32 +150,59 @@ cd gpu-monitor
55
150
docker-compose up -d
56
151
```
57
152
58
-
3. Access the dashboard at: `http://localhost:8081/gpu-stats.html`
153
+
3. Access the dashboard at: [http://localhost:8081/gpu-stats.html](http://localhost:8081/gpu-stats.html)
154
+
59
155
60
156
61
157
## Installation Prerequisites
62
158
63
-
### 1. Install NVIDIA Container Toolkit
64
159
65
-
For Ubuntu/Debian:
160
+
### 1. Ubuntu / Debian / WSL
161
+
Windows users make sure you have wsl with docker an easy way is [Docker Desktop Installation for Windows](https://docs.docker.com/desktop/setup/install/windows-install/)
162
+
163
+
Installing with apt add NVIDIA package repositories
The dashboard is accessible at `http://localhost:8081/gpu-stats.html` by default. To change the port, modify the `docker-compose.yml` file or the `-p` parameter in the docker run command.
234
+
The dashboard is accessible at Access the dashboard at: [http://localhost:8081/gpu-stats.html](http://localhost:8081/gpu-stats.html)
235
+
by default. To change the port, modify the `docker-compose.yml` file or the `-p` parameter in the docker run command.
111
236
112
237
---
113
238
114
239

115
240
116
241
117
-
## Alternative Setup Method (linux)
242
+
## Alternative Setup Method
118
243
119
244
A setup script is provided for convenience. It checks prerequisites and manages the service:
120
245
246
+
- If you have issues then make sure `setup.sh` is executable
By default, all data is stored within the container for optimal performance and cleanup. If you need to persist data between container rebuilds, modify the docker-compose.yml:
297
+
By default, all data is stored within the container will persist between container rebuilds, if you don't want that then remove volumes, modify the docker run or docker-compose.yml:
158
298
159
299
```yaml
160
300
services:
161
301
gpu-monitor:
162
302
# ... other settings ...
163
303
volumes:
164
-
- ./history:/app/history # Persist historical data
165
-
- ./logs:/app/logs # Persist logs
304
+
- ./history:/app/history #Remove Persist historical data
305
+
- ./logs:/app/logs #Remove Persist logs
166
306
```
167
307
168
308
## Alerts
169
309
170
-
You can enable or disable alerts in ui, you can set thresholds for gpu temp, gpu utilization % and watts. Setting are saved in browser.
310
+
You can enable or disable alerts in ui, you can set thresholds for gpu temp, gpu utilization % and watts. Setting are saved in your browser if you make changes you only need to do it once, however you can always modify the code and rebuild the container to make it permanent.
311
+
171
312
The defaults are:
172
313
173
314
```bash
174
-
this.thresholds = {
175
315
temperature: 80,
176
316
utilization: 100,
177
317
power: 300
@@ -188,6 +328,12 @@ In windows you can disable native alert notifications sound or disable gpu-monit
188
328
1. **NVIDIA SMI not found**
189
329
- Ensure NVIDIA drivers are installed
190
330
- Verify NVIDIA Container Toolkit installation
331
+
- make sure you can run
332
+
333
+
```bash
334
+
sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
335
+
```
336
+
If this failed proceed to [Installation Prerequisites](#installation-prerequisites)
191
337
192
338
2.**Container fails to start**
193
339
- Check Docker logs: `docker logs gpu-monitor`
@@ -198,17 +344,14 @@ In windows you can disable native alert notifications sound or disable gpu-monit
198
344
- Verify container is running: `docker ps`
199
345
- Check container logs: `docker logs gpu-monitor`
200
346
- Ensure port 8081 is not in use
201
-
4. **Timezone is off**
202
-
203
-
Note: Replace America/Los_Angeles with your timezone if different. Common timezones:
204
-
205
-
US Eastern: America/New_York
206
-
207
-
US Central: America/Chicago
347
+
4.**TimeStamps don't match your local time**
208
348
209
-
US Mountain: America/Denver
349
+
- Replace `America/Los_Angeles` with your timezone
350
+
[List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
210
351
211
-
US Pacific: America/Los_Angeles
352
+
5.**I don't like the alert sound**
353
+
- Replace the .mp3 in the `sounds` folder and name it alert.mp3
354
+
- Getting double sounds from notifications disable one of them
0 commit comments