Commit Graph

28 Commits

Author SHA1 Message Date
Gabriel St. Angel
3107c6ac51 feat(gpu): support NVIDIA Jetson (Tegra) integrated GPU via sysfs fallback
On Jetson (Tegra) the integrated GPU is enumerated by NVML
(nvidia-l4t-nvml) and reports its name (e.g. "Orin (nvgpu)"), but the
per-metric NVML queries return NVML_ERROR_NOT_SUPPORTED, so the GPU
plugin only ever showed N/A for proc/mem/temperature.

Add a Tegra sysfs backend (glances/plugins/gpu/cards/tegra.py) and wire
it into the NVIDIA card as a per-metric fallback: when NVML returns None
for a device detected as Tegra (name contains "nvgpu", or the Tegra GPU
sysfs node exists), read:

- proc:        /sys/devices/platform/gpu.0/load  (per-mille -> percent)
- temperature: the gpu-thermal /sys/class/thermal zone (milli-C -> C)

Memory stays N/A by design: the Tegra GPU shares system RAM, already
reported by the MEM plugin. Scales verified against tegrastats
(GR3D_FREQ and gpu@).

Adds unit tests with committed sysfs fixtures, a NEWS.rst entry and a
docs note.

Verified on JetPack 6.2.1 (L4T R36.4.7) and JetPack 7.2 (L4T R39.2):
identical sysfs node layout and gpu-thermal zone selection on both, with
temperature cross-checked against tegrastats on each.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 06:59:59 +00:00
nicolargo
9db2b8cbc3 GPU Monitoring (ARM / RaspberryPi) #1048 2026-04-21 11:38:05 +02:00
csvke
a8023b3e4c RV1126BP-70: Add config, docs, and unit tests for MPP plugin
- Add [mpp] section to conf/glances.conf with disable=True
- Add docs/aoa/mpp.rst documentation page and index entry
- Add unit test test_026_mpp with Rockchip MPP test fixtures
2026-04-11 01:34:44 +08:00
nicolargo
f3e94930e3 SQL Injection in DuckDB Export via Unparameterized DDL Statements - Correct CVE-2026-32611 2026-03-14 10:33:24 +01:00
nicolargo
ee4fab4c32 Browser API Exposes Reusable Downstream Credentials via - Correct CVE-2026-32633 2026-03-14 09:07:59 +01:00
nicolargo
c4aecae41d [Docker image] Basic Auth no longer works in browser after adding Bearer token support #3434 2026-02-15 18:26:05 +01:00
nicolargo
91d56fb2a5 Add test file for issue #3434 2026-02-13 15:58:57 +01:00
nicolargo
399acb11a2 Rename test-data folder to make it compliant with this (fucking) Windows OS 2026-01-25 16:49:04 +01:00
nicolargo
52f10f1762 NPU stats graber done for AMD, Intel and Rockchip 2026-01-24 15:56:29 +01:00
nicolargo
91279b9144 Lint and format the code 2026-01-02 18:07:28 +01:00
nicolargo
12083f33fc Remove debug message 2026-01-02 09:42:03 +01:00
nicolargo
b7c6cce373 First version ok. Log message should be removed. Code should be tested. 2025-12-30 19:04:07 +01:00
Ognyan Kulev
41db9c86f9 Include GTT to mem% for integrated AMD GPUs 2025-12-14 22:39:02 +02:00
Nicolas Hennion
4f48d33709 Merge pull request #3376 from okulev/amdgpu_ids
Get amdgpu name from `amdgpu.ids`
2025-12-14 17:24:33 +01:00
Ognyan Kulev
2800e81cb0 Add pci id files to tests-data 2025-12-14 14:19:18 +02:00
nicolargo
50818213b1 What a sexy pre-commit config file ! 2025-11-22 18:48:13 +01:00
nicolargo
f1bd18a3a5 Update requirements file and add some tests 2025-11-04 21:41:15 +01:00
nicolargo
1c6a9e1412 Restful API issue after a while (stats are no more updated) #3333 2025-11-03 14:44:11 +01:00
nicolargo
db13c8380b Update docs and add some system test for CPU consumption 2025-10-31 17:43:44 +01:00
nicolargo
c8ed977c9d Add a test script for identify CPU consumption of sensor plugin 2025-10-23 11:47:54 +02:00
nicolargo
f01008f430 Support for Python 14 #3319 2025-10-18 12:03:18 +02:00
Nicolas Hennion
6302389073 Update find-duplicate-lines.sh
Make the code return an error code if a file ended with a duplicated line is founded.
2025-10-06 14:14:35 +02:00
nicolargo
0bf79775b6 Remove duplicate line at the end of files 2025-09-28 16:28:05 +02:00
Nicolas Hennion
da700c8cfc add: generic timeout wrappers
For use with blocking functions and utilities

Co-authored-by: Raz Crimson <52282402+razcrimson@users.noreply.github.com>
2025-09-28 05:55:34 +05:30
nicolargo
b26dac4dd5 ZFS ARC/cache not reported as cache memory usage #3279 2025-09-25 13:48:43 -04:00
nicolargo
fcdd792722 Update docs for DuckDB export 2025-09-21 15:09:28 +02:00
nicolargo
941baba5b4 Improve unittest for CSV export #3150 2025-07-05 10:32:11 +02:00
nicolargo
b491cbe42b Make main.py comliant with PyTest (concerning args) 2024-12-26 10:48:50 +01:00