diff --git a/all-requirements.txt b/all-requirements.txt index f0df310d..442d292a 100644 --- a/all-requirements.txt +++ b/all-requirements.txt @@ -114,7 +114,9 @@ prometheus-client==0.24.1 # via glances protobuf==6.33.4 # via bernhard -psutil==7.2.1 +psutil==7.1.1 ; platform_version < '11.' and sys_platform == 'darwin' + # via glances +psutil==7.2.1 ; platform_version >= '11.' or sys_platform != 'darwin' # via glances psycopg==3.3.2 # via glances diff --git a/dev-requirements.txt b/dev-requirements.txt index 3ed930f3..3d8a511e 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -36,7 +36,7 @@ certifi==2026.1.4 # httpx # requests # selenium -cffi==2.0.0 ; (implementation_name != 'pypy' and os_name == 'nt') or platform_python_implementation != 'PyPy' +cffi==2.0.0 ; (implementation_name != 'pypy' and os_name == 'nt' and platform_version >= '11.') or (implementation_name != 'pypy' and os_name == 'nt' and sys_platform != 'darwin') or platform_python_implementation != 'PyPy' # via # cryptography # trio @@ -223,10 +223,12 @@ protobuf==6.33.4 # via # googleapis-common-protos # opentelemetry-proto -psutil==7.2.1 +psutil==7.1.1 ; platform_version < '11.' and sys_platform == 'darwin' + # via memory-profiler +psutil==7.2.1 ; platform_version >= '11.' or sys_platform != 'darwin' # via memory-profiler py-spy==0.4.1 -pycparser==2.23 ; (implementation_name != 'PyPy' and implementation_name != 'pypy' and os_name == 'nt') or (implementation_name != 'PyPy' and platform_python_implementation != 'PyPy') +pycparser==2.23 ; (implementation_name != 'PyPy' and implementation_name != 'pypy' and os_name == 'nt' and platform_version >= '11.') or (implementation_name != 'PyPy' and implementation_name != 'pypy' and os_name == 'nt' and sys_platform != 'darwin') or (implementation_name != 'PyPy' and platform_python_implementation != 'PyPy') # via cffi pydantic==2.12.5 # via diff --git a/docker-requirements.txt b/docker-requirements.txt index bd4790b4..f1f0f540 100644 --- a/docker-requirements.txt +++ b/docker-requirements.txt @@ -42,7 +42,9 @@ packaging==25.0 # via glances podman==5.6.0 # via glances -psutil==7.2.1 +psutil==7.1.1 ; platform_version < '11.' and sys_platform == 'darwin' + # via glances +psutil==7.2.1 ; platform_version >= '11.' or sys_platform != 'darwin' # via glances pyasn1==0.6.2 # via diff --git a/docs/_static/glances-summary.png b/docs/_static/glances-summary.png index 02160837..d0186c37 100644 Binary files a/docs/_static/glances-summary.png and b/docs/_static/glances-summary.png differ diff --git a/docs/_static/npu.png b/docs/_static/npu.png new file mode 100644 index 00000000..8139712a Binary files /dev/null and b/docs/_static/npu.png differ diff --git a/docs/_static/screenshot-web.png b/docs/_static/screenshot-web.png index d06f931f..5b22cbcc 100644 Binary files a/docs/_static/screenshot-web.png and b/docs/_static/screenshot-web.png differ diff --git a/docs/api/python.rst b/docs/api/python.rst index 4ca7c868..1126782d 100644 --- a/docs/api/python.rst +++ b/docs/api/python.rst @@ -22,25 +22,25 @@ use the following code: >>> gl = api.GlancesAPI() >>> gl.cpu {'cpucore': 16, - 'ctx_switches': 1015851053, + 'ctx_switches': 1081162869, 'guest': 0.0, - 'idle': 91.2, - 'interrupts': 859341127, - 'iowait': 0.4, + 'idle': 93.1, + 'interrupts': 907471396, + 'iowait': 0.5, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 362872854, + 'soft_interrupts': 383687418, 'steal': 0.0, 'syscalls': 0, - 'system': 5.4, - 'total': 13.0, - 'user': 3.0} + 'system': 4.4, + 'total': 6.1, + 'user': 2.0} >>> gl.cpu.get("total") - 13.0 + 6.1 >>> gl.mem.get("used") - 11730307096 + 13140776984 >>> gl.auto_unit(gl.mem.get("used")) - 10.9G + 12.2G If the stats return a list of items (like network interfaces or processes), you can access them by their name: @@ -51,19 +51,19 @@ access them by their name: ['wlp0s20f3', 'vethba20a37'] >>> gl.network["wlp0s20f3"] {'alias': None, - 'bytes_all': 0, - 'bytes_all_gauge': 18885389314, - 'bytes_all_rate_per_sec': 0.0, - 'bytes_recv': 0, - 'bytes_recv_gauge': 16420882784, - 'bytes_recv_rate_per_sec': 0.0, - 'bytes_sent': 0, - 'bytes_sent_gauge': 2464506530, - 'bytes_sent_rate_per_sec': 0.0, + 'bytes_all': 250, + 'bytes_all_gauge': 19020572996, + 'bytes_all_rate_per_sec': 1412.0, + 'bytes_recv': 164, + 'bytes_recv_gauge': 16507803055, + 'bytes_recv_rate_per_sec': 926.0, + 'bytes_sent': 86, + 'bytes_sent_gauge': 2512769941, + 'bytes_sent_rate_per_sec': 486.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.2173159122467041} + 'time_since_update': 0.17694664001464844} Init Glances Python API ----------------------- @@ -95,30 +95,30 @@ Alert stats: >>> type(gl.alert) >>> gl.alert - [{'avg': 95.92570869990224, - 'begin': 1769266786, + [{'avg': 99.71752139808788, + 'begin': 1769359723, 'count': 2, 'desc': '', 'end': -1, 'global_msg': 'High swap (paging) usage', - 'max': 95.92570869990224, - 'min': 95.92570869990224, + 'max': 99.71752139808788, + 'min': 99.71752139808788, 'sort': 'memory_percent', 'state': 'CRITICAL', - 'sum': 191.8514173998045, - 'top': ['code', 'code', 'Isolated Web Co'], + 'sum': 199.43504279617576, + 'top': ['code', 'code', 'code'], 'type': 'MEMSWAP'}, - {'avg': 71.38267854400472, - 'begin': 1769266786, + {'avg': 79.97414391893248, + 'begin': 1769359723, 'count': 2, 'desc': '', 'end': -1, 'global_msg': 'High swap (paging) usage', - 'max': 71.42684887137145, - 'min': 71.33850821663799, + 'max': 80.01532133874188, + 'min': 79.93296649912308, 'sort': 'memory_percent', 'state': 'WARNING', - 'sum': 142.76535708800944, + 'sum': 159.94828783786497, 'top': [], 'type': 'MEM'}] @@ -156,12 +156,12 @@ Ports stats: >>> gl.ports [{'description': 'DefaultGateway', - 'host': '192.168.0.254', + 'host': '192.168.1.1', 'indice': 'port_0', 'port': 0, 'refresh': 30, 'rtt_warning': None, - 'status': 0.011215, + 'status': 0.005, 'timeout': 3}] Ports fields description: @@ -202,14 +202,14 @@ Diskio stats: >>> gl.diskio.get("nvme0n1") {'disk_name': 'nvme0n1', 'key': 'disk_name', - 'read_bytes': 57745099264, - 'read_count': 2171387, + 'read_bytes': 59929319936, + 'read_count': 2321710, 'read_latency': 0, - 'read_time': 687746, - 'write_bytes': 75212284928, - 'write_count': 5535152, + 'read_time': 745355, + 'write_bytes': 80205739008, + 'write_count': 5979499, 'write_latency': 0, - 'write_time': 5278413} + 'write_time': 5732100} Diskio fields description: @@ -320,11 +320,11 @@ Processcount stats: >>> type(gl.processcount) >>> gl.processcount - {'pid_max': 0, 'running': 1, 'sleeping': 441, 'thread': 2330, 'total': 594} + {'pid_max': 0, 'running': 1, 'sleeping': 449, 'thread': 2419, 'total': 597} >>> gl.processcount.keys() ['total', 'running', 'sleeping', 'thread', 'pid_max'] >>> gl.processcount.get("total") - 594 + 597 Processcount fields description: @@ -351,7 +351,17 @@ Gpu stats: >>> type(gl.gpu) >>> gl.gpu - [] + Return a dict of dict with key= + >>> gl.gpu.keys() + ['amd0'] + >>> gl.gpu.get("amd0") + {'fan_speed': None, + 'gpu_id': 'amd0', + 'key': 'gpu_id', + 'mem': 1, + 'name': 'AMD GPU', + 'proc': 10, + 'temperature': 24} Gpu fields description: @@ -389,7 +399,17 @@ Npu stats: >>> type(gl.npu) >>> gl.npu - [] + [{'freq': 53, + 'freq_current': 800000000, + 'freq_max': 1500000000, + 'load': None, + 'mem': None, + 'memory_total': None, + 'memory_used': None, + 'name': 'AMD NPU (Strix Point)', + 'npu_id': 'amd_1', + 'power': None, + 'temperature': None}] Npu fields description: @@ -437,7 +457,7 @@ Percpu stats: 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 35.0, + 'idle': 27.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -446,7 +466,7 @@ Percpu stats: 'softirq': 0.0, 'steal': 0.0, 'system': 9.0, - 'total': 65.0, + 'total': 73.0, 'user': 0.0} Percpu fields description: @@ -537,18 +557,18 @@ Network stats: >>> gl.network.get("wlp0s20f3") {'alias': None, 'bytes_all': 0, - 'bytes_all_gauge': 18885389314, + 'bytes_all_gauge': 19020572996, 'bytes_all_rate_per_sec': 0.0, 'bytes_recv': 0, - 'bytes_recv_gauge': 16420882784, + 'bytes_recv_gauge': 16507803055, 'bytes_recv_rate_per_sec': 0.0, 'bytes_sent': 0, - 'bytes_sent_gauge': 2464506530, + 'bytes_sent_gauge': 2512769941, 'bytes_sent_rate_per_sec': 0.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.003389120101928711} + 'time_since_update': 0.002484560012817383} Network fields description: @@ -589,23 +609,23 @@ Cpu stats: >>> gl.cpu {'cpucore': 16, - 'ctx_switches': 1015851053, + 'ctx_switches': 1081162869, 'guest': 0.0, - 'idle': 91.2, - 'interrupts': 859341127, - 'iowait': 0.4, + 'idle': 93.1, + 'interrupts': 907471396, + 'iowait': 0.5, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 362872854, + 'soft_interrupts': 383687418, 'steal': 0.0, 'syscalls': 0, - 'system': 5.4, - 'total': 13.0, - 'user': 3.0} + 'system': 4.4, + 'total': 6.1, + 'user': 2.0} >>> gl.cpu.keys() ['total', 'user', 'nice', 'system', 'idle', 'iowait', 'irq', 'steal', 'guest', 'ctx_switches', 'interrupts', 'soft_interrupts', 'syscalls', 'cpucore'] >>> gl.cpu.get("total") - 13.0 + 6.1 Cpu fields description: @@ -677,7 +697,7 @@ Amps stats: 'refresh': 3.0, 'regex': True, 'result': None, - 'timer': 0.3187551498413086} + 'timer': 0.19056487083435059} Amps fields description: @@ -708,32 +728,32 @@ Processlist stats: >>> gl.processlist Return a dict of dict with key= >>> gl.processlist.keys() - [1, 2, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 113, 114, 115, 116, 117, 118, 121, 122, 123, 124, 125, 126, 127, 128, 133, 135, 136, 137, 138, 139, 140, 142, 143, 144, 145, 146, 147, 148, 150, 154, 156, 157, 158, 166, 179, 188, 189, 218, 219, 239, 240, 258, 267, 268, 269, 270, 271, 273, 279, 280, 364, 367, 369, 370, 371, 372, 373, 450, 452, 613, 618, 619, 620, 627, 659, 660, 726, 757, 758, 787, 795, 970, 971, 986, 1037, 1040, 1042, 1043, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1056, 1058, 1059, 1064, 1065, 1218, 1219, 1223, 1275, 1277, 1278, 1279, 1320, 1327, 1534, 1537, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 2007, 2008, 2009, 2010, 2011, 2013, 2014, 2016, 2017, 2018, 2019, 2020, 2021, 2023, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2117, 2122, 2123, 2124, 2125, 2126, 2127, 2128, 2129, 2130, 2133, 2134, 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2149, 2603, 2604, 2605, 2606, 2613, 2615, 2744, 2745, 2746, 2750, 2751, 2755, 2762, 2774, 2788, 2791, 2796, 2799, 2802, 2813, 2820, 2823, 2887, 2904, 2905, 2916, 3031, 3038, 3081, 3181, 3182, 3186, 3191, 3192, 3240, 3382, 3383, 3670, 3671, 3695, 3698, 3807, 3817, 3818, 3822, 3827, 3828, 3846, 3853, 3874, 3901, 3902, 3903, 3904, 3905, 3906, 3907, 3908, 3982, 4194, 4596, 5166, 6562, 36430, 481055, 813640, 813665, 813669, 813681, 813682, 813683, 813685, 813687, 813689, 813699, 813749, 813753, 813760, 813779, 813795, 813873, 813876, 813892, 813903, 813906, 813949, 813962, 813963, 814046, 814083, 814091, 814092, 814106, 814107, 814128, 814129, 814130, 814133, 814135, 814138, 814140, 814143, 814147, 814150, 814152, 814156, 814158, 814162, 814170, 814177, 814191, 814192, 814284, 814293, 814295, 814306, 814324, 814353, 814356, 814384, 814388, 814397, 814410, 814429, 814438, 814507, 814547, 814577, 814588, 814592, 814614, 814657, 814874, 814875, 814918, 814987, 814992, 815007, 815154, 815196, 815236, 815252, 815324, 815555, 815952, 815959, 815967, 816178, 816198, 816205, 816560, 816572, 818223, 818964, 820306, 896873, 929174, 1046355, 1046357, 1046358, 1046373, 1046415, 1046473, 1046506, 1046561, 1046578, 1046579, 1046654, 1046695, 1046913, 1047076, 1047144, 1047145, 1047146, 1047147, 1047434, 1047704, 1047831, 1048026, 1060640, 1060641, 1060689, 1060886, 1060909, 1081783, 1081790, 1081799, 1081805, 1081812, 1081818, 1081850, 1081870, 1085550, 1085551, 1085606, 1085617, 1117073, 1119112, 1136053, 1158334, 1158351, 1158371, 1158400, 1158403, 1166781, 1180098, 1182119, 1182137, 1182599, 1182609, 1213837, 1300201, 1304473, 1314746, 1318703, 1438249, 1438258, 1439516, 1482241, 1485933, 1486694, 1498986, 1499967, 1500040, 1500326, 1525118, 1525294, 1527944, 1528280, 1532016, 1534204, 1534935, 1535982, 1537632, 1540951, 1541077, 1541078, 1541147, 1543414, 1545828, 1546058, 1547107, 1547208, 1547948, 1548050, 1548919, 1549566, 1550162, 1550198, 1550412, 1553035, 1553406, 1555903, 1555905, 1555940, 1556357, 1556358, 1556359, 1556916, 1557037, 1557038, 1557229, 1557947, 1558218, 1558369, 1559446, 1559583, 1559615, 1559719, 1560951, 1561060, 1561061, 1561062, 1561063, 1561064, 1561065, 1561186, 1561408, 1561565, 1561936, 1562008, 1562196, 1562687, 1562771, 1562922, 1562950, 1563177, 1563271, 1563618, 1563881, 1563884, 1563885, 1563888, 1563905] + [1, 2, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 113, 114, 115, 116, 117, 118, 121, 122, 123, 124, 125, 126, 127, 128, 133, 135, 136, 137, 138, 139, 140, 142, 143, 144, 145, 146, 147, 148, 150, 154, 156, 157, 158, 166, 179, 188, 189, 218, 219, 239, 240, 258, 267, 268, 269, 270, 271, 273, 279, 280, 364, 367, 369, 370, 371, 372, 373, 450, 452, 613, 618, 619, 620, 627, 659, 660, 726, 757, 758, 787, 795, 970, 971, 986, 1037, 1040, 1042, 1043, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1056, 1058, 1059, 1064, 1065, 1218, 1219, 1223, 1275, 1277, 1278, 1279, 1320, 1327, 1534, 1537, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 2007, 2008, 2009, 2010, 2011, 2013, 2014, 2016, 2017, 2018, 2019, 2020, 2021, 2023, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2117, 2122, 2123, 2124, 2125, 2126, 2127, 2128, 2129, 2130, 2133, 2134, 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2149, 2603, 2604, 2605, 2606, 2613, 2615, 2744, 2745, 2746, 2750, 2751, 2755, 2762, 2774, 2788, 2791, 2796, 2799, 2802, 2813, 2820, 2823, 2887, 2904, 2905, 2916, 3031, 3038, 3081, 3181, 3182, 3186, 3191, 3192, 3240, 3382, 3383, 3670, 3671, 3695, 3698, 3807, 3817, 3818, 3822, 3827, 3828, 3846, 3853, 3874, 3901, 3902, 3903, 3904, 3905, 3906, 3907, 3908, 3982, 4194, 4596, 5166, 6562, 36430, 481055, 813640, 813665, 813669, 813681, 813682, 813683, 813685, 813687, 813689, 813699, 813749, 813753, 813760, 813779, 813795, 813873, 813876, 813892, 813903, 813906, 813949, 813962, 813963, 814046, 814083, 814091, 814092, 814106, 814107, 814128, 814129, 814130, 814133, 814135, 814138, 814140, 814143, 814147, 814150, 814152, 814156, 814158, 814162, 814170, 814177, 814191, 814192, 814284, 814293, 814295, 814306, 814324, 814353, 814356, 814384, 814388, 814397, 814410, 814429, 814438, 814507, 814547, 814577, 814588, 814592, 814614, 814657, 814874, 814875, 814918, 814987, 814992, 815007, 815154, 815196, 815236, 815252, 815324, 815555, 815952, 815959, 815967, 816178, 816198, 816205, 816560, 816572, 818223, 818964, 820306, 896873, 929174, 1046355, 1046357, 1046358, 1046373, 1046415, 1046473, 1046506, 1046561, 1046578, 1046579, 1046654, 1046695, 1046913, 1047076, 1047144, 1047145, 1047146, 1047147, 1047434, 1047704, 1047831, 1048026, 1060640, 1060641, 1060689, 1060886, 1060909, 1081783, 1081790, 1081799, 1081805, 1081812, 1081818, 1081850, 1081870, 1085550, 1085551, 1085606, 1085617, 1117073, 1119112, 1136053, 1158334, 1158351, 1158371, 1158400, 1158403, 1166781, 1180098, 1182119, 1182137, 1182599, 1182609, 1213837, 1314746, 1318703, 1438249, 1438258, 1439516, 1485933, 1486694, 1559615, 1570874, 1576682, 1584189, 1598703, 1600590, 1601558, 1601671, 1601800, 1602059, 1609895, 1611147, 1611940, 1615476, 1616249, 1619957, 1621252, 1621982, 1623991, 1624242, 1625935, 1627199, 1628092, 1628569, 1628649, 1629504, 1629545, 1630412, 1637312, 1638007, 1638999, 1640165, 1640178, 1640179, 1640211, 1640456, 1640459, 1642237, 1642829, 1642993, 1645601, 1645609, 1647309, 1650451, 1651847, 1651956, 1651958, 1654986, 1655735, 1656222, 1656414, 1656764, 1657068, 1657431, 1657716, 1658892, 1659981, 1660136, 1660137, 1660138, 1660139, 1660140, 1660141, 1660158, 1660209, 1660582, 1660971, 1660998, 1660999, 1661032, 1661089, 1661478, 1661934, 1664237, 1664242, 1665968, 1665971, 1665972, 1665975] >>> gl.processlist.get("1") {'cmdline': ['/sbin/init', 'splash'], 'cpu_percent': 0.0, - 'cpu_times': {'children_system': 11430.29, - 'children_user': 47200.42, + 'cpu_times': {'children_system': 11434.28, + 'children_user': 47203.22, 'iowait': 0.0, - 'system': 19.1, - 'user': 31.53}, + 'system': 19.94, + 'user': 32.47}, 'gids': {'effective': 0, 'real': 0, 'saved': 0}, 'io_counters': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'key': 'pid', 'memory_info': {'data': 7282688, 'dirty': 0, 'lib': 0, - 'rss': 12267520, - 'shared': 5718016, + 'rss': 11141120, + 'shared': 4952064, 'text': 45056, 'vms': 26632192}, - 'memory_percent': 0.07469798445134641, + 'memory_percent': 0.06783923796583047, 'name': 'systemd', 'nice': 0, 'num_threads': 1, 'pid': 1, 'status': 'S', - 'time_since_update': 0.6580536365509033, + 'time_since_update': 0.4083402156829834, 'username': 'root'} Processlist fields description: @@ -820,13 +840,13 @@ Load stats: >>> gl.load {'cpucore': 16, - 'min1': 1.39501953125, - 'min15': 1.00927734375, - 'min5': 1.0234375} + 'min1': 0.712890625, + 'min15': 0.5927734375, + 'min5': 0.60302734375} >>> gl.load.keys() ['min1', 'min5', 'min15', 'cpucore'] >>> gl.load.get("min1") - 1.39501953125 + 0.712890625 Load fields description: @@ -903,7 +923,7 @@ Uptime stats: >>> type(gl.uptime) >>> gl.uptime - '27 days, 23:33:44' + '29 days, 1:22:39' Uptime limits: @@ -922,11 +942,11 @@ Now stats: >>> type(gl.now) >>> gl.now - {'custom': '2026-01-24 15:59:47 CET', 'iso': '2026-01-24T15:59:47+01:00'} + {'custom': '2026-01-25 17:48:43 CET', 'iso': '2026-01-25T17:48:43+01:00'} >>> gl.now.keys() ['iso', 'custom'] >>> gl.now.get("iso") - '2026-01-24T15:59:47+01:00' + '2026-01-25T17:48:43+01:00' Now fields description: @@ -955,14 +975,14 @@ Fs stats: ['/', '/zsfpool'] >>> gl.fs.get("/") {'device_name': '/dev/mapper/ubuntu--vg-ubuntu--lv', - 'free': 578632065024, + 'free': 578540687360, 'fs_type': 'ext4', 'key': 'mnt_point', 'mnt_point': '/', 'options': 'rw,relatime', 'percent': 39.3, 'size': 1003736440832, - 'used': 374041870336} + 'used': 374133248000} Fs fields description: @@ -1002,8 +1022,8 @@ Wifi stats: ['wlp0s20f3'] >>> gl.wifi.get("wlp0s20f3") {'key': 'ssid', - 'quality_level': -68.0, - 'quality_link': 42.0, + 'quality_level': -57.0, + 'quality_link': 53.0, 'ssid': 'wlp0s20f3'} Wifi limits: @@ -1065,7 +1085,7 @@ Version stats: >>> type(gl.version) >>> gl.version - '4.4.2_dev1' + '4.5.0_dev1' Version limits: @@ -1131,16 +1151,16 @@ Mem stats: >>> type(gl.mem) >>> gl.mem - {'active': 7158104064, - 'available': 4692518888, - 'buffers': 199892992, - 'cached': 4171627368, - 'free': 1226715136, - 'inactive': 5936738304, - 'percent': 71.4, - 'shared': 801046528, + {'active': 3400482816, + 'available': 3282049000, + 'buffers': 170029056, + 'cached': 3658005352, + 'free': 536829952, + 'inactive': 10466312192, + 'percent': 80.0, + 'shared': 859062272, 'total': 16422825984, - 'used': 11730307096} + 'used': 13140776984} >>> gl.mem.keys() ['total', 'available', 'percent', 'used', 'free', 'active', 'inactive', 'buffers', 'cached', 'shared'] >>> gl.mem.get("total") @@ -1210,19 +1230,19 @@ Quicklook stats: >>> type(gl.quicklook) >>> gl.quicklook - {'cpu': 13.0, + {'cpu': 6.1, 'cpu_hz': 4475000000.0, - 'cpu_hz_current': 621277312.5, + 'cpu_hz_current': 804293625.0, 'cpu_log_core': 16, 'cpu_name': '13th Gen Intel(R) Core(TM) i7-13620H', 'cpu_phys_core': 10, - 'load': 6.3, - 'mem': 71.4, + 'load': 3.7, + 'mem': 80.0, 'percpu': [{'cpu_number': 0, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 35.0, + 'idle': 27.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1231,28 +1251,28 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 9.0, - 'total': 65.0, + 'total': 73.0, 'user': 0.0}, {'cpu_number': 1, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, 'key': 'cpu_number', 'nice': 0.0, - 'softirq': 1.0, + 'softirq': 0.0, 'steal': 0.0, 'system': 1.0, - 'total': 56.0, - 'user': 0.0}, + 'total': 63.0, + 'user': 1.0}, {'cpu_number': 2, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 46.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1261,13 +1281,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 54.0, - 'user': 0.0}, + 'total': 63.0, + 'user': 1.0}, {'cpu_number': 3, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 46.0, + 'idle': 38.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1276,28 +1296,28 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 54.0, + 'total': 62.0, 'user': 0.0}, {'cpu_number': 4, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 18.0, + 'idle': 12.0, 'interrupt': None, - 'iowait': 0.0, + 'iowait': 1.0, 'irq': 0.0, 'key': 'cpu_number', 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 3.0, - 'total': 82.0, - 'user': 24.0}, + 'system': 14.0, + 'total': 88.0, + 'user': 6.0}, {'cpu_number': 5, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 28.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1305,14 +1325,14 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 4.0, - 'total': 72.0, - 'user': 14.0}, + 'system': 0.0, + 'total': 63.0, + 'user': 0.0}, {'cpu_number': 6, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 19.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1320,14 +1340,14 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 8.0, - 'total': 81.0, - 'user': 17.0}, + 'system': 0.0, + 'total': 63.0, + 'user': 0.0}, {'cpu_number': 7, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 43.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1335,14 +1355,14 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 2.0, - 'total': 57.0, + 'system': 0.0, + 'total': 63.0, 'user': 0.0}, {'cpu_number': 8, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 40.0, + 'idle': 36.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1350,14 +1370,14 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 5.0, - 'total': 60.0, + 'system': 0.0, + 'total': 64.0, 'user': 1.0}, {'cpu_number': 9, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 46.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1366,13 +1386,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 54.0, - 'user': 1.0}, + 'total': 63.0, + 'user': 0.0}, {'cpu_number': 10, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 36.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1381,13 +1401,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 56.0, + 'total': 64.0, 'user': 1.0}, {'cpu_number': 11, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 46.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1396,13 +1416,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 54.0, + 'total': 63.0, 'user': 0.0}, {'cpu_number': 12, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 36.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1411,13 +1431,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 1.0, - 'total': 56.0, - 'user': 2.0}, + 'total': 64.0, + 'user': 1.0}, {'cpu_number': 13, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 45.0, + 'idle': 36.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1426,13 +1446,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 55.0, - 'user': 0.0}, + 'total': 64.0, + 'user': 1.0}, {'cpu_number': 14, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 45.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1441,13 +1461,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 1.0, - 'total': 55.0, - 'user': 1.0}, + 'total': 63.0, + 'user': 0.0}, {'cpu_number': 15, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 45.0, + 'idle': 37.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1456,9 +1476,9 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 55.0, + 'total': 63.0, 'user': 0.0}], - 'swap': 95.9} + 'swap': 99.7} >>> gl.quicklook.keys() ['cpu_name', 'cpu_hz_current', 'cpu_hz', 'cpu', 'percpu', 'mem', 'swap', 'cpu_log_core', 'cpu_phys_core', 'load'] >>> gl.quicklook.get("cpu_name") @@ -1508,13 +1528,13 @@ Memswap stats: >>> type(gl.memswap) >>> gl.memswap - {'free': 174989312, - 'percent': 95.9, - 'sin': 3156148224, - 'sout': 12925386752, - 'time_since_update': 0.6026771068572998, + {'free': 12132352, + 'percent': 99.7, + 'sin': 3607220224, + 'sout': 13537800192, + 'time_since_update': 0.39128684997558594, 'total': 4294963200, - 'used': 4119973888} + 'used': 4282830848} >>> gl.memswap.keys() ['total', 'used', 'free', 'percent', 'sin', 'sout', 'time_since_update'] >>> gl.memswap.get("total") @@ -1549,10 +1569,10 @@ Use auto_unit() function to generate a human-readable string with the unit: .. code-block:: python >>> gl.mem.get("used") - 11730307096 + 13140776984 >>> gl.auto_unit(gl.mem.get("used")) - 10.9G + 12.2G Args: @@ -1578,7 +1598,7 @@ Use bar() function to generate a bar: .. code-block:: python >>> gl.bar(gl.mem["percent"]) - ■■■■■■■■■■■■■□□□□□ + ■■■■■■■■■■■■■■□□□□ Args: @@ -1608,7 +1628,7 @@ Use top_process() function to generate a list of top processes sorted by CPU or .. code-block:: python >>> gl.top_process() - [{'io_counters': [70178816, 131072, 70178816, 131072, 1], 'memory_info': {'rss': 656224256, 'vms': 1519223476224, 'shared': 93794304, 'text': 148733952, 'lib': 0, 'data': 2070220800, 'dirty': 0}, 'status': 'S', 'cpu_percent': 8.1, 'nice': 0, 'cpu_times': {'user': 6061.16, 'system': 462.48, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'pid': 1046473, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'num_threads': 26, 'name': 'code', 'memory_percent': 3.9958059388763476, 'key': 'pid', 'time_since_update': 0.6580536365509033, 'cmdline': ['/snap/code/211/usr/share/code/code', '--type=zygote', '--no-sandbox'], 'username': 'nicolargo'}, {'io_counters': [1669373952, 911003648, 1669373952, 910999552, 1], 'memory_info': {'rss': 1128423424, 'vms': 1501662539776, 'shared': 40337408, 'text': 148733952, 'lib': 0, 'data': 2895360000, 'dirty': 0}, 'status': 'S', 'cpu_percent': 4.9, 'nice': 0, 'cpu_times': {'user': 2697.19, 'system': 1039.83, 'children_user': 851.55, 'children_system': 870.05, 'iowait': 0.0}, 'pid': 1046561, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'num_threads': 23, 'name': 'code', 'memory_percent': 6.871067288293567, 'key': 'pid', 'time_since_update': 0.6580536365509033, 'cmdline': ['/proc/self/exe', '--type=utility', '--utility-sub-type=node.mojom.NodeService', '--lang=en-US', '--service-sandbox-type=none', '--no-sandbox', '--dns-result-order=ipv4first', '--experimental-network-inspection', '--inspect-port=0', '--crashpad-handler-pid=1046373', '--enable-crash-reporter=864d4bb7-dd20-4851-830f-29e81dd93517,no_channel', '--user-data-dir=/home/nicolargo/.config/Code', '--standard-schemes=vscode-webview,vscode-file', '--secure-schemes=vscode-webview,vscode-file', '--cors-schemes=vscode-webview,vscode-file', '--fetch-schemes=vscode-webview,vscode-file', '--service-worker-schemes=vscode-webview', '--code-cache-schemes=vscode-webview,vscode-file', '--shared-files=v8_context_snapshot_data:100', '--field-trial-handle=3,i,17809207692588680227,6048650121133861189,262144', '--enable-features=DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync', '--disable-features=CalculateNativeWinOcclusion,FontationsLinuxSystemFonts,ScreenAIOCREnabled,SpareRendererForSitePerProcess', '--variations-seed-version'], 'username': 'nicolargo'}, {'io_counters': [73125888, 21639168, 73125888, 21639168, 1], 'memory_info': {'rss': 241561600, 'vms': 76465262592, 'shared': 52674560, 'text': 61407232, 'lib': 0, 'data': 75265404928, 'dirty': 0}, 'status': 'S', 'cpu_percent': 3.2, 'nice': 0, 'cpu_times': {'user': 274.73, 'system': 119.5, 'children_user': 2.08, 'children_system': 1.18, 'iowait': 0.0}, 'pid': 1182609, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'num_threads': 14, 'name': 'claude', 'memory_percent': 1.4708893599392838, 'key': 'pid', 'time_since_update': 0.6580536365509033, 'cmdline': ['/home/nicolargo/.vscode/extensions/anthropic.claude-code-2.0.75-linux-x64/resources/native-binary/claude', '--output-format', 'stream-json', '--verbose', '--input-format', 'stream-json', '--max-thinking-tokens', '0', '--model', 'default', '--permission-prompt-tool', 'stdio', '--mcp-config', '{"mcpServers":{"claude-vscode":{"type":"sdk","name":"claude-vscode"}}}', '--setting-sources', 'user,project,local', '--permission-mode', 'default', '--include-partial-messages', '--debug', '--debug-to-stderr', '--enable-auth-status'], 'username': 'nicolargo'}] + [{'io_counters': [1789727744, 1042509824, 1789727744, 1042509824, 1], 'memory_info': {'rss': 1376223232, 'vms': 1501663428608, 'shared': 38875136, 'text': 148733952, 'lib': 0, 'data': 3162791936, 'dirty': 0}, 'pid': 1046561, 'name': 'code', 'memory_percent': 8.379941633314452, 'num_threads': 23, 'nice': 0, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 3052.89, 'system': 1193.84, 'children_user': 947.66, 'children_system': 1015.48, 'iowait': 0.0}, 'status': 'S', 'cpu_percent': 2.6, 'key': 'pid', 'time_since_update': 0.4083402156829834, 'cmdline': ['/proc/self/exe', '--type=utility', '--utility-sub-type=node.mojom.NodeService', '--lang=en-US', '--service-sandbox-type=none', '--no-sandbox', '--dns-result-order=ipv4first', '--experimental-network-inspection', '--inspect-port=0', '--crashpad-handler-pid=1046373', '--enable-crash-reporter=864d4bb7-dd20-4851-830f-29e81dd93517,no_channel', '--user-data-dir=/home/nicolargo/.config/Code', '--standard-schemes=vscode-webview,vscode-file', '--secure-schemes=vscode-webview,vscode-file', '--cors-schemes=vscode-webview,vscode-file', '--fetch-schemes=vscode-webview,vscode-file', '--service-worker-schemes=vscode-webview', '--code-cache-schemes=vscode-webview,vscode-file', '--shared-files=v8_context_snapshot_data:100', '--field-trial-handle=3,i,17809207692588680227,6048650121133861189,262144', '--enable-features=DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync', '--disable-features=CalculateNativeWinOcclusion,FontationsLinuxSystemFonts,ScreenAIOCREnabled,SpareRendererForSitePerProcess', '--variations-seed-version'], 'username': 'nicolargo'}, {'io_counters': [69005312, 0, 69005312, 0, 1], 'memory_info': {'rss': 523079680, 'vms': 4503519232, 'shared': 104763392, 'text': 708608, 'lib': 0, 'data': 801980416, 'dirty': 0}, 'pid': 816205, 'name': 'Isolated Web Co', 'memory_percent': 3.185077163392052, 'num_threads': 33, 'nice': 0, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 1491.37, 'system': 167.85, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'status': 'S', 'cpu_percent': 2.6, 'key': 'pid', 'time_since_update': 0.4083402156829834, 'cmdline': ['/snap/firefox/7559/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:45796', '-prefMapHandle', '1:280269', '-jsInitHandle', '2:223356', '-parentBuildID', '20251217233610', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{9d32b0c3-0383-4497-8d41-70450152d0b9}', '-parentPid', '814875', '-crashReporter', '6', '-crashHelper', '7', '-greomni', '/snap/firefox/7559/usr/lib/firefox/omni.ja', '-appomni', '/snap/firefox/7559/usr/lib/firefox/browser/omni.ja', '-appDir', '/snap/firefox/7559/usr/lib/firefox/browser', '11', 'tab'], 'username': 'nicolargo'}, {'io_counters': [2899968, 21729280, 2899968, 21729280, 1], 'memory_info': {'rss': 223498240, 'vms': 76846993408, 'shared': 50962432, 'text': 61407232, 'lib': 0, 'data': 74437554176, 'dirty': 0}, 'pid': 1182137, 'name': 'claude', 'memory_percent': 1.3609000072079191, 'num_threads': 17, 'nice': 0, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 234.97, 'system': 105.63, 'children_user': 2.37, 'children_system': 1.9, 'iowait': 0.0}, 'status': 'S', 'cpu_percent': 2.6, 'key': 'pid', 'time_since_update': 0.4083402156829834, 'cmdline': ['/home/nicolargo/.vscode/extensions/anthropic.claude-code-2.0.75-linux-x64/resources/native-binary/claude', '--output-format', 'stream-json', '--verbose', '--input-format', 'stream-json', '--max-thinking-tokens', '0', '--model', 'default', '--permission-prompt-tool', 'stdio', '--mcp-config', '{"mcpServers":{"claude-vscode":{"type":"sdk","name":"claude-vscode"}}}', '--setting-sources', 'user,project,local', '--permission-mode', 'default', '--include-partial-messages', '--debug', '--debug-to-stderr', '--enable-auth-status'], 'username': 'nicolargo'}] Args: diff --git a/docs/api/restful.rst b/docs/api/restful.rst index 7e945ddb..557f82bd 100644 --- a/docs/api/restful.rst +++ b/docs/api/restful.rst @@ -253,7 +253,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.46243953704833984}, + "timer": 0.3581230640411377}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -262,7 +262,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.4623396396636963}] + "timer": 0.3580656051635742}] Fields descriptions: @@ -290,7 +290,7 @@ Get a specific item when field matches the given value:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.46243953704833984}]} + "timer": 0.3581230640411377}]} GET cloud --------- @@ -338,17 +338,17 @@ Get plugin stats:: "engine": "docker", "id": "2af41a66456c7bfdd014aa03e2696354f7aeabbda3a867ed5f7290b74824bd4d", "image": ["nats:latest"], - "io": {"cumulative_ior": 15196160, "cumulative_iow": 0}, + "io": {"cumulative_ior": 16023552, "cumulative_iow": 0}, "io_rx": None, "io_wx": None, "key": "name", - "memory": {"inactive_file": 1372160, "limit": 16422825984, "usage": 8888320}, - "memory_inactive_file": 1372160, + "memory": {"inactive_file": 1789952, "limit": 16422825984, "usage": 8523776}, + "memory_inactive_file": 1789952, "memory_limit": 16422825984, "memory_percent": None, - "memory_usage": 8888320, + "memory_usage": 8523776, "name": "nats-for-glances", - "network": {"cumulative_rx": 479524, "cumulative_tx": 0}, + "network": {"cumulative_rx": 584699, "cumulative_tx": 0}, "network_rx": None, "network_tx": None, "ports": "4222->4222/tcp,6222->6222/tcp,8222->8222/tcp", @@ -392,19 +392,19 @@ Get a specific item when field matches the given value:: "engine": "docker", "id": "2af41a66456c7bfdd014aa03e2696354f7aeabbda3a867ed5f7290b74824bd4d", "image": ["nats:latest"], - "io": {"cumulative_ior": 15196160, "cumulative_iow": 0}, + "io": {"cumulative_ior": 16023552, "cumulative_iow": 0}, "io_rx": None, "io_wx": None, "key": "name", - "memory": {"inactive_file": 1372160, + "memory": {"inactive_file": 1789952, "limit": 16422825984, - "usage": 8888320}, - "memory_inactive_file": 1372160, + "usage": 8523776}, + "memory_inactive_file": 1789952, "memory_limit": 16422825984, "memory_percent": None, - "memory_usage": 8888320, + "memory_usage": 8523776, "name": "nats-for-glances", - "network": {"cumulative_rx": 479524, "cumulative_tx": 0}, + "network": {"cumulative_rx": 584699, "cumulative_tx": 0}, "network_rx": None, "network_tx": None, "ports": "4222->4222/tcp,6222->6222/tcp,8222->8222/tcp", @@ -436,19 +436,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 1015878597, + "ctx_switches": 1081186476, "guest": 0.0, - "idle": 88.2, - "interrupts": 859364469, - "iowait": 0.2, + "idle": 87.7, + "interrupts": 907532962, + "iowait": 0.3, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 362884487, + "soft_interrupts": 383696946, "steal": 0.0, "syscalls": 0, - "system": 3.6, - "total": 12.9, - "user": 8.0} + "system": 4.8, + "total": 11.1, + "user": 7.2} Fields descriptions: @@ -481,7 +481,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 12.9} + {"total": 11.1} GET diskio ---------- @@ -491,14 +491,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 57745156608, - "read_count": 2171389, + "read_bytes": 59929451008, + "read_count": 2321711, "read_latency": 0, - "read_time": 687756, - "write_bytes": 75212669952, - "write_count": 5535203, + "read_time": 745365, + "write_bytes": 80206201856, + "write_count": 5979569, "write_latency": 0, - "write_time": 5278824}, + "write_time": 5732740}, {"disk_name": "nvme0n1p1", "key": "disk_name", "read_bytes": 18506752, @@ -550,14 +550,14 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/diskio/disk_name/value/nvme0n1 {"nvme0n1": [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 57745156608, - "read_count": 2171389, + "read_bytes": 59929451008, + "read_count": 2321711, "read_latency": 0, - "read_time": 687756, - "write_bytes": 75212669952, - "write_count": 5535203, + "read_time": 745365, + "write_bytes": 80206201856, + "write_count": 5979569, "write_latency": 0, - "write_time": 5278824}]} + "write_time": 5732740}]} GET folders ----------- @@ -584,14 +584,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/fs [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 578631942144, + "free": 578540703744, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", "percent": 39.3, "size": 1003736440832, - "used": 374041993216}, + "used": 374133231616}, {"device_name": "zsfpool", "free": 41680896, "fs_type": "zfs", @@ -622,14 +622,14 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/fs/mnt_point/value// {"/": [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 578631942144, + "free": 578540703744, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", "percent": 39.3, "size": 1003736440832, - "used": 374041993216}]} + "used": 374133231616}]} GET gpu ------- @@ -637,7 +637,13 @@ GET gpu Get plugin stats:: # curl http://localhost:61208/api/4/gpu - [] + [{"fan_speed": None, + "gpu_id": "amd0", + "key": "gpu_id", + "mem": 1, + "name": "AMD GPU", + "proc": 10, + "temperature": 24}] Fields descriptions: @@ -648,6 +654,22 @@ Fields descriptions: * **temperature**: GPU temperature (unit is *celsius*) * **fan_speed**: GPU fan speed (unit is *roundperminute*) +Get a specific field:: + + # curl http://localhost:61208/api/4/gpu/gpu_id + {"gpu_id": ["amd0"]} + +Get a specific item when field matches the given value:: + + # curl http://localhost:61208/api/4/gpu/gpu_id/value/amd0 + {"amd0": [{"fan_speed": None, + "gpu_id": "amd0", + "key": "gpu_id", + "mem": 1, + "name": "AMD GPU", + "proc": 10, + "temperature": 24}]} + GET help -------- @@ -698,9 +720,9 @@ Get plugin stats:: # curl http://localhost:61208/api/4/load {"cpucore": 16, - "min1": 1.44384765625, - "min15": 1.0146484375, - "min5": 1.0400390625} + "min1": 0.81640625, + "min15": 0.6005859375, + "min5": 0.62646484375} Fields descriptions: @@ -712,7 +734,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 1.44384765625} + {"min1": 0.81640625} GET mem ------- @@ -720,16 +742,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 7211311104, - "available": 4638148584, - "buffers": 199905280, - "cached": 4180052840, - "free": 1172017152, - "inactive": 5937041408, - "percent": 71.8, - "shared": 809349120, + {"active": 3404247040, + "available": 3171633128, + "buffers": 170037248, + "cached": 3711257448, + "free": 459456512, + "inactive": 10466213888, + "percent": 80.7, + "shared": 912199680, "total": 16422825984, - "used": 11784677400} + "used": 13251192856} Fields descriptions: @@ -756,13 +778,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 175050752, - "percent": 95.9, - "sin": 3156205568, - "sout": 12925386752, + {"free": 12132352, + "percent": 99.7, + "sin": 3607220224, + "sout": 13537800192, "time_since_update": 1, "total": 4294963200, - "used": 4119912448} + "used": 4282830848} Fields descriptions: @@ -787,32 +809,32 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 18885411520, + "bytes_all_gauge": 19020576480, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 16420892600, + "bytes_recv_gauge": 16507804216, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 2464518920, + "bytes_sent_gauge": 2512772264, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4727456569671631}, + "time_since_update": 0.36458849906921387}, {"alias": None, "bytes_all": 0, - "bytes_all_gauge": 479524, + "bytes_all_gauge": 584699, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, "bytes_recv_gauge": 0, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 479524, + "bytes_sent_gauge": 584699, "bytes_sent_rate_per_sec": 0, "interface_name": "vethba20a37", "key": "interface_name", "speed": 10485760000, - "time_since_update": 0.4727456569671631}] + "time_since_update": 0.36458849906921387}] Fields descriptions: @@ -841,18 +863,18 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/network/interface_name/value/wlp0s20f3 {"wlp0s20f3": [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 18885411520, + "bytes_all_gauge": 19020576480, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 16420892600, + "bytes_recv_gauge": 16507804216, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 2464518920, + "bytes_sent_gauge": 2512772264, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4727456569671631}]} + "time_since_update": 0.36458849906921387}]} GET now ------- @@ -860,7 +882,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2026-01-24 15:59:51 CET", "iso": "2026-01-24T15:59:51+01:00"} + {"custom": "2026-01-25 17:48:47 CET", "iso": "2026-01-25T17:48:47+01:00"} Fields descriptions: @@ -870,7 +892,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2026-01-24T15:59:51+01:00"} + {"iso": "2026-01-25T17:48:47+01:00"} GET npu ------- @@ -878,7 +900,17 @@ GET npu Get plugin stats:: # curl http://localhost:61208/api/4/npu - [] + [{"freq": 53, + "freq_current": 800000000, + "freq_max": 1500000000, + "load": None, + "mem": None, + "memory_total": None, + "memory_used": None, + "name": "AMD NPU (Strix Point)", + "npu_id": "amd_1", + "power": None, + "temperature": None}] Fields descriptions: @@ -894,6 +926,26 @@ Fields descriptions: * **temperature**: NPU temperature (unit is *celsius*) * **power**: NPU power consumption (unit is *watt*) +Get a specific field:: + + # curl http://localhost:61208/api/4/npu/npu_id + {"npu_id": ["amd_1"]} + +Get a specific item when field matches the given value:: + + # curl http://localhost:61208/api/4/npu/npu_id/value/amd_1 + {"amd_1": [{"freq": 53, + "freq_current": 800000000, + "freq_max": 1500000000, + "load": None, + "mem": None, + "memory_total": None, + "memory_used": None, + "name": "AMD NPU (Strix Point)", + "npu_id": "amd_1", + "power": None, + "temperature": None}]} + GET percpu ---------- @@ -904,7 +956,7 @@ Get plugin stats:: "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 35.0, + "idle": 22.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -912,24 +964,24 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 11.0, - "total": 65.0, - "user": 1.0}, + "system": 8.0, + "total": 78.0, + "user": 3.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 41.0, + "idle": 33.0, "interrupt": None, - "iowait": 0.0, + "iowait": 1.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 59.0, - "user": 3.0}] + "system": 0.0, + "total": 67.0, + "user": 0.0}] Fields descriptions: @@ -960,12 +1012,12 @@ Get plugin stats:: # curl http://localhost:61208/api/4/ports [{"description": "DefaultGateway", - "host": "192.168.0.254", + "host": "192.168.1.1", "indice": "port_0", "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.01189, + "status": 0.005507, "timeout": 3}] Fields descriptions: @@ -982,19 +1034,19 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/ports/host - {"host": ["192.168.0.254"]} + {"host": ["192.168.1.1"]} Get a specific item when field matches the given value:: - # curl http://localhost:61208/api/4/ports/host/value/192.168.0.254 - {"192.168.0.254": [{"description": "DefaultGateway", - "host": "192.168.0.254", - "indice": "port_0", - "port": 0, - "refresh": 30, - "rtt_warning": None, - "status": 0.01189, - "timeout": 3}]} + # curl http://localhost:61208/api/4/ports/host/value/192.168.1.1 + {"192.168.1.1": [{"description": "DefaultGateway", + "host": "192.168.1.1", + "indice": "port_0", + "port": 0, + "refresh": 30, + "rtt_warning": None, + "status": 0.005507, + "timeout": 3}]} GET processcount ---------------- @@ -1002,7 +1054,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 2, "sleeping": 442, "thread": 2327, "total": 595} + {"pid_max": 0, "running": 2, "sleeping": 448, "thread": 2425, "total": 597} Fields descriptions: @@ -1015,7 +1067,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 595} + {"total": 597} GET processlist --------------- @@ -1025,22 +1077,22 @@ Get plugin stats:: # curl http://localhost:61208/api/4/processlist [{"cmdline": ["/sbin/init", "splash"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 11430.29, - "children_user": 47200.42, + "cpu_times": {"children_system": 11434.28, + "children_user": 47203.22, "iowait": 0.0, - "system": 19.1, - "user": 31.53}, + "system": 19.94, + "user": 32.47}, "gids": {"effective": 0, "real": 0, "saved": 0}, "io_counters": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "key": "pid", "memory_info": {"data": 7282688, "dirty": 0, "lib": 0, - "rss": 12267520, - "shared": 5718016, + "rss": 11141120, + "shared": 4952064, "text": 45056, "vms": 26632192}, - "memory_percent": 0.07469798445134641, + "memory_percent": 0.06783923796583047, "name": "systemd", "nice": 0, "num_threads": 1, @@ -1053,7 +1105,7 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 0.48, + "system": 0.51, "user": 0.0}, "gids": {"effective": 0, "real": 0, "saved": 0}, "io_counters": [0, 0, 0, 0, 0], @@ -1100,17 +1152,17 @@ Get plugin stats:: [{"childrens": [1, 813665], "cmdline": ["systemd"], "cpu_percent": 0, - "cpu_times": {"children_system": 12688.890000000001, - "children_user": 55182.909999999996, - "system": 21.970000000000002, - "user": 53.89}, + "cpu_times": {"children_system": 12713.240000000002, + "children_user": 55217.06, + "system": 23.26, + "user": 58.37}, "io_counters": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], - "memory_info": {"data": 10772480, - "rss": 24727552, - "shared": 15106048, + "memory_info": {"data": 10776576, + "rss": 22200320, + "shared": 12914688, "text": 90112, - "vms": 49471488}, - "memory_percent": 0.1505681910293083, + "vms": 49475584}, + "memory_percent": 0.1351796580054416, "name": "systemd", "nice": 0, "nprocs": 2, @@ -1125,7 +1177,7 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 0.48, + "system": 0.51, "user": 0.0}, "io_counters": [0, 0, 0, 0, 0], "memory_info": {"data": 0, @@ -1176,15 +1228,90 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/4/quicklook - {"cpu": 12.9, + {"cpu": 11.1, "cpu_hz": 4475000000.0, - "cpu_hz_current": 1068907312.5, + "cpu_hz_current": 1295746687.5000002, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 6.3, - "mem": 71.8, + "load": 3.8, + "mem": 80.7, "percpu": [{"cpu_number": 0, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 22.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 8.0, + "total": 78.0, + "user": 3.0}, + {"cpu_number": 1, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 33.0, + "interrupt": None, + "iowait": 1.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 67.0, + "user": 0.0}, + {"cpu_number": 2, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 34.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 66.0, + "user": 0.0}, + {"cpu_number": 3, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 33.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 67.0, + "user": 1.0}, + {"cpu_number": 4, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 24.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 4.0, + "total": 76.0, + "user": 7.0}, + {"cpu_number": 5, "dpc": None, "guest": 0.0, "guest_nice": 0.0, @@ -1196,119 +1323,29 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 11.0, + "system": 0.0, "total": 65.0, - "user": 1.0}, - {"cpu_number": 1, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 41.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 1.0, - "total": 59.0, - "user": 3.0}, - {"cpu_number": 2, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 43.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 1.0, - "total": 57.0, - "user": 2.0}, - {"cpu_number": 3, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 46.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 0.0, - "total": 54.0, - "user": 0.0}, - {"cpu_number": 4, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 1.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 6.0, - "total": 99.0, - "user": 37.0}, - {"cpu_number": 5, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 46.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 0.0, - "total": 54.0, "user": 0.0}, {"cpu_number": 6, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 23.0, + "idle": 24.0, "interrupt": None, - "iowait": 1.0, + "iowait": 2.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 12.0, - "total": 77.0, - "user": 8.0}, + "system": 8.0, + "total": 76.0, + "user": 2.0}, {"cpu_number": 7, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 43.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 1.0, - "total": 57.0, - "user": 1.0}, - {"cpu_number": 8, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 38.0, + "idle": 23.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1317,58 +1354,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 4.0, - "total": 62.0, - "user": 3.0}, - {"cpu_number": 9, + "total": 77.0, + "user": 8.0}, + {"cpu_number": 8, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 0.0, - "total": 54.0, - "user": 0.0}, - {"cpu_number": 10, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 45.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 0.0, - "total": 55.0, - "user": 1.0}, - {"cpu_number": 11, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 46.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 0.0, - "total": 54.0, - "user": 0.0}, - {"cpu_number": 12, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 45.0, + "idle": 31.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1377,13 +1369,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 1.0, - "total": 55.0, - "user": 0.0}, - {"cpu_number": 13, + "total": 69.0, + "user": 3.0}, + {"cpu_number": 9, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 45.0, + "idle": 35.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1392,13 +1384,73 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 55.0, + "total": 65.0, + "user": 1.0}, + {"cpu_number": 10, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 30.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 2.0, + "total": 70.0, + "user": 1.0}, + {"cpu_number": 11, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 35.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 65.0, + "user": 0.0}, + {"cpu_number": 12, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 34.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 1.0, + "total": 66.0, + "user": 1.0}, + {"cpu_number": 13, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 33.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 1.0, + "total": 67.0, "user": 1.0}, {"cpu_number": 14, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, + "idle": 34.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1406,14 +1458,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 54.0, + "system": 1.0, + "total": 66.0, "user": 1.0}, {"cpu_number": 15, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 45.0, + "idle": 34.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1422,9 +1474,9 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 55.0, - "user": 1.0}], - "swap": 95.9} + "total": 66.0, + "user": 0.0}], + "swap": 99.7} Fields descriptions: @@ -1462,14 +1514,14 @@ Get plugin stats:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 36, + "value": 37, "warning": 0}, {"critical": None, "key": "label", "label": "Ambient 3", "type": "temperature_core", "unit": "C", - "value": 30, + "value": 28, "warning": 0}] Fields descriptions: @@ -1532,7 +1584,7 @@ Get a specific item when field matches the given value:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 36, + "value": 37, "warning": 0}]} GET smart @@ -1576,7 +1628,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "27 days, 23:33:48" + "29 days, 1:22:43" GET version ----------- @@ -1584,7 +1636,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.4.2_dev1" + "4.5.0_dev1" GET vms ------- @@ -1621,8 +1673,8 @@ Get plugin stats:: # curl http://localhost:61208/api/4/wifi [{"key": "ssid", - "quality_level": -68.0, - "quality_link": 42.0, + "quality_level": -57.0, + "quality_link": 53.0, "ssid": "wlp0s20f3"}] Get a specific field:: @@ -1634,8 +1686,8 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/wifi/ssid/value/wlp0s20f3 {"wlp0s20f3": [{"key": "ssid", - "quality_level": -68.0, - "quality_link": 42.0, + "quality_level": -57.0, + "quality_link": 53.0, "ssid": "wlp0s20f3"}]} GET all stats @@ -1699,34 +1751,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2026-01-24T14:59:52.900667+00:00", 3.6], - ["2026-01-24T14:59:54.008865+00:00", 1.0], - ["2026-01-24T14:59:55.050079+00:00", 1.0]], - "user": [["2026-01-24T14:59:52.900664+00:00", 8.0], - ["2026-01-24T14:59:54.008862+00:00", 1.9], - ["2026-01-24T14:59:55.050076+00:00", 1.9]]} + {"system": [["2026-01-25T16:48:48.546946+00:00", 4.8], + ["2026-01-25T16:48:49.611256+00:00", 1.7], + ["2026-01-25T16:48:50.647996+00:00", 1.7]], + "user": [["2026-01-25T16:48:48.546944+00:00", 7.2], + ["2026-01-25T16:48:49.611254+00:00", 5.2], + ["2026-01-25T16:48:50.647993+00:00", 5.2]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2026-01-24T14:59:54.008865+00:00", 1.0], - ["2026-01-24T14:59:55.050079+00:00", 1.0]], - "user": [["2026-01-24T14:59:54.008862+00:00", 1.9], - ["2026-01-24T14:59:55.050076+00:00", 1.9]]} + {"system": [["2026-01-25T16:48:49.611256+00:00", 1.7], + ["2026-01-25T16:48:50.647996+00:00", 1.7]], + "user": [["2026-01-25T16:48:49.611254+00:00", 5.2], + ["2026-01-25T16:48:50.647993+00:00", 5.2]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2026-01-24T14:59:51.697915+00:00", 3.6], - ["2026-01-24T14:59:52.900667+00:00", 3.6], - ["2026-01-24T14:59:54.008865+00:00", 1.0], - ["2026-01-24T14:59:55.050079+00:00", 1.0]]} + {"system": [["2026-01-25T16:48:47.415118+00:00", 4.8], + ["2026-01-25T16:48:48.546946+00:00", 4.8], + ["2026-01-25T16:48:49.611256+00:00", 1.7], + ["2026-01-25T16:48:50.647996+00:00", 1.7]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2026-01-24T14:59:54.008865+00:00", 1.0], - ["2026-01-24T14:59:55.050079+00:00", 1.0]]} + {"system": [["2026-01-25T16:48:49.611256+00:00", 1.7], + ["2026-01-25T16:48:50.647996+00:00", 1.7]]} GET limits (used for thresholds) -------------------------------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index 56dda046..2f8f5dd5 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -29,7 +29,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "GLANCES" "1" "Jan 24, 2026" "4.4.2_dev1" "Glances" +.TH "GLANCES" "1" "Jan 25, 2026" "4.5.0_dev1" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS diff --git a/glances/plugins/gpu/__init__.py b/glances/plugins/gpu/__init__.py index d2fe4f68..cc9c6e29 100644 --- a/glances/plugins/gpu/__init__.py +++ b/glances/plugins/gpu/__init__.py @@ -82,13 +82,13 @@ class GpuPlugin(GlancesPluginModel): self.nvidia = None # Init the AMD GPU API - # Just for test purpose (uncomment to test on computer without AMD GPU) - # self.amd = AmdGPU(drm_root_folder='./tests-data/plugins/gpu/amd/sys/class/drm') try: self.amd = AmdGPU() except Exception as e: logger.debug(f'AMD GPU initialization error: {e}') self.amd = None + # Just for test purpose (uncomment to test on computer without AMD GPU) + # self.amd = AmdGPU(drm_root_folder='./tests-data/plugins/gpu/amd/sys/class/drm') # We want to display the stat in the curse interface self.display_curse = True diff --git a/requirements.txt b/requirements.txt index 056d4a6a..9f93ad47 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,9 @@ markupsafe==3.0.3 # via jinja2 packaging==25.0 # via glances -psutil==7.2.1 +psutil==7.1.1 ; platform_version < '11.' and sys_platform == 'darwin' + # via glances +psutil==7.2.1 ; platform_version >= '11.' or sys_platform != 'darwin' # via glances shtab==1.8.0 ; sys_platform != 'win32' # via glances