Improve Nvidia GPU stats (#14206)

* :Add support for nvidia driver info

* Don't show temperature if detector isn't called coral

* Add encoder and decoder info for Nvidia GPUs

* Fix device info

* Implement GPU info for nvidia GPU

* Update web/src/views/system/GeneralMetrics.tsx

Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>

* Update web/src/views/system/GeneralMetrics.tsx

Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>

---------

Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
Nicolas Mowen
2024-10-07 20:15:31 -06:00
committed by GitHub
parent 23ce1e930d
commit 2541a345d0
6 changed files with 316 additions and 76 deletions

View File

@@ -41,8 +41,13 @@ export type ExtraProcessStats = {
export type GpuStats = {
gpu: string;
mem: string;
enc?: string;
dec?: string;
pstate?: string;
};
export type GpuInfo = "vainfo" | "nvinfo";
export type ServiceStats = {
last_updated: number;
storage: { [path: string]: StorageStats };
@@ -71,6 +76,15 @@ export type Vainfo = {
stderr: string;
};
export type Nvinfo = {
[key: string]: {
name: string;
driver: string;
cuda_compute: string;
vbios: string;
};
};
export type Ffprobe = {
return_code: number;
stderr: string;