From 620413edf0959198fafec842d42dc8fec68d6745 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Tue, 10 Feb 2026 22:29:05 +0100 Subject: [PATCH] version 4.5.0.4 --- NEWS.rst | 4 +- all-requirements.txt | 8 +- docs/api/python.rst | 318 ++++++++++++++++++++-------------------- docs/api/restful.rst | 336 +++++++++++++++++++++---------------------- docs/man/glances.1 | 2 +- glances/__init__.py | 2 +- snap/snapcraft.yaml | 2 +- 7 files changed, 333 insertions(+), 339 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index bc2b388f..9ea16cf7 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -3,8 +3,8 @@ ============================================================================== =============== -Version 4.5.0.3 -============== +Version 4.5.0.4 +=============== Continious integration: diff --git a/all-requirements.txt b/all-requirements.txt index 1c74cf33..7fbd49c3 100644 --- a/all-requirements.txt +++ b/all-requirements.txt @@ -12,8 +12,6 @@ batinfo==0.4.2 ; sys_platform == 'linux' # via glances bernhard==0.2.6 # via glances -cassandra-driver==3.29.3 - # via glances certifi==2026.1.4 # via # elastic-transport @@ -31,9 +29,7 @@ charset-normalizer==3.4.4 chevron==0.14.0 # via glances click==8.1.8 - # via - # geomet - # uvicorn + # via uvicorn colorama==0.4.6 ; sys_platform == 'win32' # via click cryptography==46.0.5 @@ -56,8 +52,6 @@ exceptiongroup==1.2.2 ; python_full_version < '3.11' # via anyio fastapi==0.128.7 # via glances -geomet==1.1.0 - # via cassandra-driver graphitesender==0.11.2 # via glances h11==0.16.0 diff --git a/docs/api/python.rst b/docs/api/python.rst index 34ae9332..addb227b 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': 313333063, + 'ctx_switches': 318165056, 'guest': 0.0, - 'idle': 93.7, - 'interrupts': 269154462, - 'iowait': 0.3, + 'idle': 93.5, + 'interrupts': 273024053, + 'iowait': 0.9, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 118531791, + 'soft_interrupts': 120422398, 'steal': 0.0, 'syscalls': 0, 'system': 4.1, 'total': 5.7, - 'user': 1.9} + 'user': 1.5} >>> gl.cpu.get("total") 5.7 >>> gl.mem.get("used") - 10971082760 + 10673717256 >>> gl.auto_unit(gl.mem.get("used")) - 10.2G + 9.94G If the stats return a list of items (like network interfaces or processes), you can access them by their name: @@ -52,18 +52,18 @@ access them by their name: >>> gl.network["wlp0s20f3"] {'alias': None, 'bytes_all': 0, - 'bytes_all_gauge': 5178007026, + 'bytes_all_gauge': 5189389191, 'bytes_all_rate_per_sec': 0.0, 'bytes_recv': 0, - 'bytes_recv_gauge': 4783873580, + 'bytes_recv_gauge': 4786926061, 'bytes_recv_rate_per_sec': 0.0, 'bytes_sent': 0, - 'bytes_sent_gauge': 394133446, + 'bytes_sent_gauge': 402463130, 'bytes_sent_rate_per_sec': 0.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.13552021980285645} + 'time_since_update': 0.15156078338623047} Init Glances Python API ----------------------- @@ -95,18 +95,18 @@ Alert stats: >>> type(gl.alert) >>> gl.alert - [{'avg': 95.72877476575353, - 'begin': 1770758079, + [{'avg': 95.64361156808049, + 'begin': 1770758888, 'count': 2, 'desc': '', 'end': -1, 'global_msg': 'High swap (paging) usage', - 'max': 95.72877476575353, - 'min': 95.72877476575353, + 'max': 95.64361156808049, + 'min': 95.64361156808049, 'sort': 'memory_percent', 'state': 'CRITICAL', - 'sum': 191.45754953150706, - 'top': ['cloudcode_cli', 'code', 'code'], + 'sum': 191.28722313616097, + 'top': ['cloudcode_cli', 'code', 'Isolated Web Co'], 'type': 'MEMSWAP'}] Alert fields description: @@ -148,7 +148,7 @@ Ports stats: 'port': 0, 'refresh': 30, 'rtt_warning': None, - 'status': 0.005429, + 'status': 0.005346, 'timeout': 3}] Ports fields description: @@ -189,14 +189,14 @@ Diskio stats: >>> gl.diskio.get("nvme0n1") {'disk_name': 'nvme0n1', 'key': 'disk_name', - 'read_bytes': 22544348672, - 'read_count': 1144172, + 'read_bytes': 22549345792, + 'read_count': 1144701, 'read_latency': 0, - 'read_time': 286860, - 'write_bytes': 31667205120, - 'write_count': 2662445, + 'read_time': 287869, + 'write_bytes': 32111440896, + 'write_count': 2689814, 'write_latency': 0, - 'write_time': 2098844} + 'write_time': 2131698} Diskio fields description: @@ -307,11 +307,11 @@ Processcount stats: >>> type(gl.processcount) >>> gl.processcount - {'pid_max': 0, 'running': 1, 'sleeping': 436, 'thread': 2363, 'total': 582} + {'pid_max': 0, 'running': 1, 'sleeping': 434, 'thread': 2312, 'total': 577} >>> gl.processcount.keys() ['total', 'running', 'sleeping', 'thread', 'pid_max'] >>> gl.processcount.get("total") - 582 + 577 Processcount fields description: @@ -392,9 +392,9 @@ Percpu stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 8.0, + 'system': 9.0, 'total': 74.0, - 'user': 1.0} + 'user': 0.0} Percpu fields description: @@ -484,18 +484,18 @@ Network stats: >>> gl.network.get("wlp0s20f3") {'alias': None, 'bytes_all': 0, - 'bytes_all_gauge': 5178007026, + 'bytes_all_gauge': 5189389191, 'bytes_all_rate_per_sec': 0.0, 'bytes_recv': 0, - 'bytes_recv_gauge': 4783873580, + 'bytes_recv_gauge': 4786926061, 'bytes_recv_rate_per_sec': 0.0, 'bytes_sent': 0, - 'bytes_sent_gauge': 394133446, + 'bytes_sent_gauge': 402463130, 'bytes_sent_rate_per_sec': 0.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.002097606658935547} + 'time_since_update': 0.002804994583129883} Network fields description: @@ -536,19 +536,19 @@ Cpu stats: >>> gl.cpu {'cpucore': 16, - 'ctx_switches': 313333063, + 'ctx_switches': 318165056, 'guest': 0.0, - 'idle': 93.7, - 'interrupts': 269154462, - 'iowait': 0.3, + 'idle': 93.5, + 'interrupts': 273024053, + 'iowait': 0.9, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 118531791, + 'soft_interrupts': 120422398, 'steal': 0.0, 'syscalls': 0, 'system': 4.1, 'total': 5.7, - 'user': 1.9} + 'user': 1.5} >>> gl.cpu.keys() ['total', 'user', 'nice', 'system', 'idle', 'iowait', 'irq', 'steal', 'guest', 'ctx_switches', 'interrupts', 'soft_interrupts', 'syscalls', 'cpucore'] >>> gl.cpu.get("total") @@ -624,7 +624,7 @@ Amps stats: 'refresh': 3.0, 'regex': True, 'result': None, - 'timer': 0.2106313705444336} + 'timer': 0.20060229301452637} Amps fields description: @@ -655,15 +655,15 @@ 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, 151, 153, 154, 155, 163, 173, 182, 183, 211, 214, 230, 231, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 360, 364, 366, 367, 368, 369, 371, 450, 451, 613, 618, 619, 620, 626, 665, 666, 730, 762, 763, 788, 797, 983, 998, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1066, 1238, 1239, 1300, 1302, 1310, 1311, 1312, 1313, 1314, 1363, 1365, 1494, 1500, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1936, 1937, 1938, 1939, 1940, 1968, 1970, 1971, 1972, 1974, 1975, 1976, 1977, 1978, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2095, 2096, 2097, 2098, 2099, 2101, 2103, 2575, 2576, 2577, 2578, 2585, 2587, 2721, 2722, 2723, 2726, 2727, 2730, 2733, 2738, 2742, 2746, 2748, 2751, 2755, 2756, 2769, 2771, 2772, 2825, 2837, 2840, 2870, 2942, 2944, 2968, 3070, 3072, 3077, 3083, 3089, 3126, 3266, 3267, 3572, 3573, 3588, 3592, 3645, 3651, 3652, 3654, 3663, 3666, 3679, 3687, 3713, 3740, 3741, 3742, 3743, 3744, 3745, 3746, 3747, 3814, 4045, 4976, 5095, 5102, 5112, 5113, 5116, 5118, 5120, 5130, 5186, 5190, 5197, 5240, 5254, 5343, 5347, 5361, 5373, 5377, 5412, 5425, 5426, 5517, 5536, 5544, 5553, 5577, 5578, 5580, 5584, 5586, 5588, 5589, 5591, 5597, 5599, 5605, 5606, 5608, 5611, 5613, 5630, 5648, 5658, 5721, 5747, 5748, 5749, 5756, 5781, 5811, 5828, 5843, 5852, 5861, 5869, 5905, 5946, 5969, 5979, 6000, 6010, 6012, 6066, 6123, 6450, 6462, 6484, 6489, 6491, 6717, 6813, 6964, 6968, 6996, 7007, 7042, 7049, 7057, 7071, 7087, 7194, 7434, 7827, 8333, 9933, 10091, 11716, 16367, 18081, 18083, 18084, 18098, 18153, 18199, 18234, 18294, 18378, 18898, 24692, 24702, 75502, 91050, 106171, 106178, 106199, 106219, 130927, 154774, 154788, 155041, 155063, 155277, 155279, 155280, 155281, 155282, 155409, 155485, 155883, 155925, 155970, 164199, 176319, 186033, 186041, 200078, 223764, 223774, 265511, 265512, 265590, 265607, 275603, 279126, 308569, 325367, 334834, 352491, 357544, 358337, 358473, 360290, 360298, 360306, 360312, 360319, 360326, 360361, 360381, 361004, 361011, 361031, 361051, 361494, 361495, 361497, 361498, 361499, 361500, 361501, 365017, 365360, 365813, 368774, 368797, 368917, 374821, 376313, 377659, 381334, 382281, 383078, 391490, 392377, 394023, 398035, 401753, 401756, 401920, 402265, 409095, 409144, 409288, 409486, 409866, 409868, 409869, 409870, 409871, 411365, 411532, 411644, 411872, 415220, 415937, 416057, 416108, 416469, 416709, 416736, 416769, 416904, 416905, 417046, 417081, 417082, 417473, 417504, 417923, 418415, 418634, 418635, 419073, 419329, 419407, 419541, 419571, 419666, 419691, 420810, 420914, 421077, 421185, 421188, 421189, 421192] + [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, 151, 153, 154, 155, 163, 173, 182, 183, 211, 214, 230, 231, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 360, 364, 366, 367, 368, 369, 371, 450, 451, 613, 618, 619, 620, 626, 665, 666, 730, 762, 763, 788, 797, 983, 998, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1066, 1238, 1239, 1300, 1302, 1310, 1311, 1312, 1313, 1314, 1363, 1365, 1494, 1500, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1936, 1937, 1938, 1939, 1940, 1968, 1970, 1971, 1972, 1974, 1975, 1976, 1977, 1978, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2095, 2096, 2097, 2098, 2099, 2101, 2103, 2575, 2576, 2577, 2578, 2585, 2587, 2721, 2722, 2723, 2726, 2727, 2730, 2733, 2738, 2742, 2746, 2748, 2751, 2755, 2756, 2769, 2771, 2772, 2825, 2837, 2840, 2870, 2942, 2944, 2968, 3070, 3072, 3077, 3083, 3089, 3126, 3266, 3267, 3572, 3573, 3588, 3592, 3645, 3651, 3652, 3654, 3663, 3666, 3679, 3687, 3713, 3740, 3741, 3742, 3743, 3744, 3745, 3746, 3747, 3814, 4045, 4976, 5095, 5102, 5112, 5113, 5116, 5118, 5120, 5130, 5186, 5190, 5197, 5240, 5254, 5343, 5347, 5361, 5373, 5377, 5412, 5425, 5426, 5517, 5536, 5544, 5553, 5577, 5578, 5580, 5584, 5586, 5588, 5589, 5591, 5597, 5599, 5605, 5606, 5608, 5611, 5613, 5630, 5648, 5658, 5721, 5747, 5748, 5749, 5756, 5781, 5811, 5828, 5843, 5852, 5861, 5869, 5905, 5946, 5969, 5979, 6000, 6010, 6012, 6066, 6123, 6450, 6462, 6484, 6489, 6491, 6717, 6813, 6964, 6968, 6996, 7007, 7042, 7049, 7057, 7071, 7087, 7194, 7434, 7827, 8333, 9933, 10091, 11716, 16367, 18081, 18083, 18084, 18098, 18153, 18199, 18234, 18294, 18378, 18898, 24692, 24702, 75502, 91050, 106171, 106178, 106199, 106219, 130927, 154774, 154788, 155041, 155063, 155277, 155279, 155280, 155281, 155282, 155409, 155485, 155883, 155925, 155970, 164199, 176319, 186033, 186041, 200078, 223764, 223774, 265511, 265512, 265590, 265607, 275603, 279126, 308569, 325367, 334834, 352491, 357544, 358473, 360290, 360298, 360306, 360312, 360319, 360326, 360361, 360381, 361004, 361011, 361031, 361051, 361494, 361495, 361497, 361498, 361499, 361500, 361501, 365017, 365360, 365813, 368774, 368797, 368917, 374821, 376313, 377659, 382281, 383078, 391490, 394023, 398035, 401753, 401756, 401920, 402265, 409095, 409144, 409866, 409869, 409870, 411532, 411644, 415937, 416469, 416709, 416736, 416769, 416905, 417046, 417081, 417082, 417473, 417923, 418415, 419329, 419407, 419571, 419691, 420810, 420914, 421077, 421621, 422800, 424118, 424689, 424793, 425868, 426709, 427030, 427264, 427276, 427671, 427672, 427673, 427948, 428205, 428208, 428209, 428245] >>> gl.processlist.get("1") {'cmdline': ['/sbin/init', 'splash'], 'cpu_percent': 0.0, - 'cpu_times': {'children_system': 134.31, - 'children_user': 314.14, + 'cpu_times': {'children_system': 134.32, + 'children_user': 314.15, 'iowait': 0.0, - 'system': 7.78, - 'user': 12.23}, + 'system': 7.8, + 'user': 12.25}, 'gids': {'effective': 0, 'real': 0, 'saved': 0}, 'io_counters': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'key': 'pid', @@ -680,7 +680,7 @@ Processlist stats: 'num_threads': 1, 'pid': 1, 'status': 'S', - 'time_since_update': 0.3971264362335205, + 'time_since_update': 0.39524126052856445, 'username': 'root'} Processlist fields description: @@ -767,13 +767,13 @@ Load stats: >>> gl.load {'cpucore': 16, - 'min1': 0.2880859375, - 'min15': 0.521484375, - 'min5': 0.54150390625} + 'min1': 0.54052734375, + 'min15': 0.6337890625, + 'min5': 0.67724609375} >>> gl.load.keys() ['min1', 'min5', 'min15', 'cpucore'] >>> gl.load.get("min1") - 0.2880859375 + 0.54052734375 Load fields description: @@ -850,7 +850,7 @@ Uptime stats: >>> type(gl.uptime) >>> gl.uptime - '12 days, 0:18:16' + '12 days, 0:31:46' Uptime limits: @@ -869,11 +869,11 @@ Now stats: >>> type(gl.now) >>> gl.now - {'custom': '2026-02-10 22:14:39 CET', 'iso': '2026-02-10T22:14:39+01:00'} + {'custom': '2026-02-10 22:28:09 CET', 'iso': '2026-02-10T22:28:09+01:00'} >>> gl.now.keys() ['iso', 'custom'] >>> gl.now.get("iso") - '2026-02-10T22:14:39+01:00' + '2026-02-10T22:28:09+01:00' Now fields description: @@ -902,14 +902,14 @@ Fs stats: ['/', '/zsfpool'] >>> gl.fs.get("/") {'device_name': '/dev/mapper/ubuntu--vg-ubuntu--lv', - 'free': 575130386432, + 'free': 575104126976, 'fs_type': 'ext4', 'key': 'mnt_point', 'mnt_point': '/', 'options': 'rw,relatime', 'percent': 39.6, 'size': 1003736440832, - 'used': 377543548928} + 'used': 377569808384} Fs fields description: @@ -949,8 +949,8 @@ Wifi stats: ['wlp0s20f3'] >>> gl.wifi.get("wlp0s20f3") {'key': 'ssid', - 'quality_level': -60.0, - 'quality_link': 50.0, + 'quality_level': -63.0, + 'quality_link': 47.0, 'ssid': 'wlp0s20f3'} Wifi limits: @@ -1012,7 +1012,7 @@ Version stats: >>> type(gl.version) >>> gl.version - '4.5.0.3' + '4.5.0.4' Version limits: @@ -1078,16 +1078,16 @@ Mem stats: >>> type(gl.mem) >>> gl.mem - {'active': 7693078528, - 'available': 5451747320, - 'buffers': 201060352, - 'cached': 4171478008, - 'free': 1760796672, - 'inactive': 4840988672, - 'percent': 66.8, - 'shared': 880451584, + {'active': 7346032640, + 'available': 5749112824, + 'buffers': 207376384, + 'cached': 4194198520, + 'free': 2268131328, + 'inactive': 4704694272, + 'percent': 65.0, + 'shared': 878858240, 'total': 16422830080, - 'used': 10971082760} + 'used': 10673717256} >>> gl.mem.keys() ['total', 'available', 'percent', 'used', 'free', 'active', 'inactive', 'buffers', 'cached', 'shared'] >>> gl.mem.get("total") @@ -1159,12 +1159,12 @@ Quicklook stats: >>> gl.quicklook {'cpu': 5.7, 'cpu_hz': 4475000000.0, - 'cpu_hz_current': 675298562.4999999, + 'cpu_hz_current': 569387000.0, 'cpu_log_core': 16, 'cpu_name': '13th Gen Intel(R) Core(TM) i7-13620H', 'cpu_phys_core': 10, - 'load': 3.3, - 'mem': 66.8, + 'load': 4.0, + 'mem': 65.0, 'percpu': [{'cpu_number': 0, 'dpc': None, 'guest': 0.0, @@ -1177,9 +1177,9 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 8.0, + 'system': 9.0, 'total': 74.0, - 'user': 1.0}, + 'user': 0.0}, {'cpu_number': 1, 'dpc': None, 'guest': 0.0, @@ -1192,25 +1192,10 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 0.0, - 'total': 66.0, - 'user': 0.0}, - {'cpu_number': 2, - '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': 0.0}, - {'cpu_number': 3, + 'total': 66.0, + 'user': 1.0}, + {'cpu_number': 2, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, @@ -1225,52 +1210,7 @@ Quicklook stats: 'system': 0.0, 'total': 66.0, 'user': 0.0}, - {'cpu_number': 4, - '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': 0.0}, - {'cpu_number': 5, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 21.0, - 'interrupt': None, - 'iowait': 1.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 10.0, - 'total': 79.0, - 'user': 1.0}, - {'cpu_number': 6, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 26.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': 74.0, - 'user': 7.0}, - {'cpu_number': 7, + {'cpu_number': 3, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, @@ -1285,26 +1225,86 @@ Quicklook stats: 'system': 0.0, 'total': 65.0, 'user': 0.0}, + {'cpu_number': 4, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 26.0, + 'interrupt': None, + 'iowait': 1.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 6.0, + 'total': 74.0, + 'user': 2.0}, + {'cpu_number': 5, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 26.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': 74.0, + 'user': 6.0}, + {'cpu_number': 6, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 32.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': 68.0, + 'user': 2.0}, + {'cpu_number': 7, + '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': 0.0}, {'cpu_number': 8, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 34.0, + 'idle': 35.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, 'key': 'cpu_number', 'nice': 0.0, - 'softirq': 0.0, + 'softirq': 1.0, 'steal': 0.0, 'system': 0.0, - 'total': 66.0, - 'user': 0.0}, + 'total': 65.0, + 'user': 1.0}, {'cpu_number': 9, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 34.0, + 'idle': 35.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1313,13 +1313,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 66.0, + 'total': 65.0, 'user': 0.0}, {'cpu_number': 10, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 34.0, + 'idle': 35.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1328,13 +1328,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 66.0, + 'total': 65.0, 'user': 0.0}, {'cpu_number': 11, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 34.0, + 'idle': 36.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1343,7 +1343,7 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 66.0, + 'total': 64.0, 'user': 0.0}, {'cpu_number': 12, 'dpc': None, @@ -1379,7 +1379,7 @@ Quicklook stats: 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 34.0, + 'idle': 35.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1388,13 +1388,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 66.0, + 'total': 65.0, 'user': 0.0}, {'cpu_number': 15, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 34.0, + 'idle': 35.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1403,9 +1403,9 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 66.0, + 'total': 65.0, 'user': 0.0}], - 'swap': 95.7} + 'swap': 95.6} >>> 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") @@ -1455,13 +1455,13 @@ Memswap stats: >>> type(gl.memswap) >>> gl.memswap - {'free': 183447552, - 'percent': 95.7, - 'sin': 1762254848, + {'free': 187105280, + 'percent': 95.6, + 'sin': 1765376000, 'sout': 7001575424, - 'time_since_update': 0.37412118911743164, + 'time_since_update': 0.376018762588501, 'total': 4294963200, - 'used': 4111515648} + 'used': 4107857920} >>> gl.memswap.keys() ['total', 'used', 'free', 'percent', 'sin', 'sout', 'time_since_update'] >>> gl.memswap.get("total") @@ -1496,10 +1496,10 @@ Use auto_unit() function to generate a human-readable string with the unit: .. code-block:: python >>> gl.mem.get("used") - 10971082760 + 10673717256 >>> gl.auto_unit(gl.mem.get("used")) - 10.2G + 9.94G Args: @@ -1555,7 +1555,7 @@ Use top_process() function to generate a list of top processes sorted by CPU or .. code-block:: python >>> gl.top_process() - [{'memory_percent': 2.306957510699642, 'io_counters': [2555904, 0, 2555904, 0, 1], 'name': 'Isolated Web Co', 'status': 'S', 'num_threads': 30, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_percent': 7.8, 'pid': 325367, 'cpu_times': {'user': 108.61, 'system': 11.29, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'memory_info': {'rss': 378867712, 'vms': 3214446592, 'shared': 99102720, 'text': 651264, 'lib': 0, 'data': 503619584, 'dirty': 0}, 'nice': 0, 'key': 'pid', 'time_since_update': 0.3971264362335205, 'cmdline': ['/snap/firefox/7720/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:46494', '-prefMapHandle', '1:280845', '-jsInitHandle', '2:223968', '-parentBuildID', '20260127070045', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{cb1a6ea3-f9a8-4e53-956a-88fae28b7edb}', '-parentPid', '6717', '-crashReporter', '6', '-crashHelper', '7', '-greomni', '/snap/firefox/7720/usr/lib/firefox/omni.ja', '-appomni', '/snap/firefox/7720/usr/lib/firefox/browser/omni.ja', '-appDir', '/snap/firefox/7720/usr/lib/firefox/browser', '157', 'tab'], 'username': 'nicolargo'}, {'memory_percent': 0.6810359448107984, 'io_counters': [0, 0, 0, 0, 0], 'name': 'dockerd', 'status': 'S', 'num_threads': 82, 'gids': {'real': 0, 'effective': 0, 'saved': 0}, 'cpu_percent': 2.6, 'pid': 3645, 'cpu_times': {'user': 103.69, 'system': 56.93, 'children_user': 77.45, 'children_system': 20.94, 'iowait': 0.0}, 'memory_info': {'rss': 111845376, 'vms': 8462536704, 'shared': 18808832, 'text': 32280576, 'lib': 0, 'data': 911953920, 'dirty': 0}, 'nice': 0, 'key': 'pid', 'time_since_update': 0.3971264362335205, 'cmdline': ['/usr/bin/dockerd', '-H', 'fd://', '--containerd=/run/containerd/containerd.sock'], 'username': 'root'}, {'memory_percent': 7.580035316300368, 'io_counters': [109785088, 0, 109785088, 0, 1], 'name': 'cloudcode_cli', 'status': 'S', 'num_threads': 21, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_percent': 0.0, 'pid': 155925, 'cpu_times': {'user': 182.26, 'system': 10.75, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'memory_info': {'rss': 1244856320, 'vms': 5765414912, 'shared': 20201472, 'text': 99938304, 'lib': 0, 'data': 3847286784, 'dirty': 0}, 'nice': 0, 'key': 'pid', 'time_since_update': 0.3971264362335205, 'cmdline': ['/home/nicolargo/.cache/cloud-code/cloudcode_cli/cloudcode_cli/eda53b3c/cloudcode_cli', 'duet', '-trace', '-logtostderr'], 'username': 'nicolargo'}] + [{'status': 'S', 'nice': 0, 'memory_info': {'rss': 682754048, 'vms': 1501580812288, 'shared': 48680960, 'text': 148733952, 'lib': 0, 'data': 1496649728, 'dirty': 0}, 'num_threads': 16, 'cpu_percent': 2.7, 'io_counters': [136815616, 462848, 136815616, 462848, 1], 'memory_percent': 4.157347087402855, 'cpu_times': {'user': 263.34, 'system': 21.18, 'children_user': 1.07, 'children_system': 0.94, 'iowait': 0.0}, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 155409, 'name': 'code', 'key': 'pid', 'time_since_update': 0.39524126052856445, 'cmdline': ['/snap/code/211/usr/share/code/code', '/home/nicolargo/.vscode/extensions/ms-python.vscode-pylance-2025.10.4/dist/server.bundle.js', '--cancellationReceive=file:1d2a3a43974e5bf9c8b083ff1721fbbdbd8933a45b', '--node-ipc', '--clientProcessId=154788'], 'username': 'nicolargo'}, {'status': 'S', 'nice': 0, 'memory_info': {'rss': 534659072, 'vms': 1517476425728, 'shared': 90247168, 'text': 148733952, 'lib': 0, 'data': 1600114688, 'dirty': 0}, 'num_threads': 25, 'cpu_percent': 2.7, 'io_counters': [220519424, 348160, 220519424, 348160, 1], 'memory_percent': 3.25558426529126, 'cpu_times': {'user': 2368.64, 'system': 184.85, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 18199, 'name': 'code', 'key': 'pid', 'time_since_update': 0.39524126052856445, 'cmdline': ['/snap/code/211/usr/share/code/code', '--type=zygote', '--no-sandbox'], 'username': 'nicolargo'}, {'status': 'S', 'nice': 0, 'memory_info': {'rss': 274796544, 'vms': 3300757504, 'shared': 83021824, 'text': 651264, 'lib': 0, 'data': 563671040, 'dirty': 0}, 'num_threads': 31, 'cpu_percent': 2.7, 'io_counters': [157373440, 0, 157373440, 0, 1], 'memory_percent': 1.6732593752805849, 'cpu_times': {'user': 600.65, 'system': 358.65, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 7087, 'name': 'Isolated Web Co', 'key': 'pid', 'time_since_update': 0.39524126052856445, 'cmdline': ['/snap/firefox/7720/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:35150', '-prefMapHandle', '1:280845', '-jsInitHandle', '2:223968', '-parentBuildID', '20260127070045', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{fd83ae65-7a12-457a-a4db-22241f79d788}', '-parentPid', '6717', '-crashReporter', '6', '-crashHelper', '7', '-greomni', '/snap/firefox/7720/usr/lib/firefox/omni.ja', '-appomni', '/snap/firefox/7720/usr/lib/firefox/browser/omni.ja', '-appDir', '/snap/firefox/7720/usr/lib/firefox/browser', '9', 'tab'], 'username': 'nicolargo'}] Args: diff --git a/docs/api/restful.rst b/docs/api/restful.rst index 2073877b..a0a82425 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.33925580978393555}, + "timer": 0.3117532730102539}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -262,7 +262,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.3391995429992676}] + "timer": 0.31169629096984863}] 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.33925580978393555}]} + "timer": 0.3117532730102539}]} GET cloud --------- @@ -350,7 +350,7 @@ Get plugin stats:: "memory_percent": None, "memory_usage": 158105600, "name": "timescaledb-for-glances", - "network": {"cumulative_rx": 66575, "cumulative_tx": 7251}, + "network": {"cumulative_rx": 74533, "cumulative_tx": 7251}, "network_rx": None, "network_tx": None, "ports": "5432->5432/tcp,8008/tcp,8081/tcp", @@ -432,7 +432,7 @@ Get a specific item when field matches the given value:: "memory_percent": None, "memory_usage": 158105600, "name": "timescaledb-for-glances", - "network": {"cumulative_rx": 66575, + "network": {"cumulative_rx": 74533, "cumulative_tx": 7251}, "network_rx": None, "network_tx": None, @@ -465,19 +465,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 313344801, + "ctx_switches": 318177750, "guest": 0.0, - "idle": 93.8, - "interrupts": 269164515, + "idle": 93.2, + "interrupts": 273035718, "iowait": 0.1, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 118537601, + "soft_interrupts": 120428964, "steal": 0.0, "syscalls": 0, - "system": 2.9, - "total": 5.8, - "user": 3.1} + "system": 3.0, + "total": 6.7, + "user": 3.7} Fields descriptions: @@ -510,7 +510,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 5.8} + {"total": 6.7} GET diskio ---------- @@ -520,14 +520,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 22544348672, - "read_count": 1144172, + "read_bytes": 22549349888, + "read_count": 1144702, "read_latency": 0, - "read_time": 286860, - "write_bytes": 31667528704, - "write_count": 2662494, + "read_time": 287878, + "write_bytes": 32112006144, + "write_count": 2689839, "write_latency": 0, - "write_time": 2098901}, + "write_time": 2131743}, {"disk_name": "nvme0n1p1", "key": "disk_name", "read_bytes": 9306112, @@ -579,14 +579,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": 22544348672, - "read_count": 1144172, + "read_bytes": 22549349888, + "read_count": 1144702, "read_latency": 0, - "read_time": 286860, - "write_bytes": 31667528704, - "write_count": 2662494, + "read_time": 287878, + "write_bytes": 32112006144, + "write_count": 2689839, "write_latency": 0, - "write_time": 2098901}]} + "write_time": 2131743}]} GET folders ----------- @@ -613,14 +613,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/fs [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 575130398720, + "free": 575107100672, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", "percent": 39.6, "size": 1003736440832, - "used": 377543536640}, + "used": 377566834688}, {"device_name": "zsfpool", "free": 41680896, "fs_type": "zfs", @@ -651,14 +651,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": 575130398720, + "free": 575107100672, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", "percent": 39.6, "size": 1003736440832, - "used": 377543536640}]} + "used": 377566834688}]} GET gpu ------- @@ -727,9 +727,9 @@ Get plugin stats:: # curl http://localhost:61208/api/4/load {"cpucore": 16, - "min1": 0.2646484375, - "min15": 0.5185546875, - "min5": 0.5322265625} + "min1": 0.65771484375, + "min15": 0.6416015625, + "min5": 0.69921875} Fields descriptions: @@ -741,7 +741,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 0.2646484375} + {"min1": 0.65771484375} GET mem ------- @@ -749,16 +749,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 7687479296, - "available": 5469011960, - "buffers": 201093120, - "cached": 4171596792, - "free": 1778020352, - "inactive": 4840980480, - "percent": 66.7, - "shared": 880582656, + {"active": 7333699584, + "available": 5744005112, + "buffers": 207388672, + "cached": 4192150520, + "free": 2265718784, + "inactive": 4702097408, + "percent": 65.0, + "shared": 879513600, "total": 16422830080, - "used": 10953818120} + "used": 10678824968} Fields descriptions: @@ -785,13 +785,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 183513088, - "percent": 95.7, - "sin": 1762254848, + {"free": 187109376, + "percent": 95.6, + "sin": 1765380096, "sout": 7001575424, "time_since_update": 1, "total": 4294963200, - "used": 4111450112} + "used": 4107853824} Fields descriptions: @@ -816,32 +816,32 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 5178231682, + "bytes_all_gauge": 5189610781, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 4784084632, + "bytes_recv_gauge": 4787138046, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 394147050, + "bytes_sent_gauge": 402472735, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.34486937522888184}, + "time_since_update": 0.3174254894256592}, {"alias": None, "bytes_all": 0, - "bytes_all_gauge": 1858784, + "bytes_all_gauge": 1866812, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, "bytes_recv_gauge": 282418, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 1576366, + "bytes_sent_gauge": 1584394, "bytes_sent_rate_per_sec": 0, "interface_name": "vethd0fe83d", "key": "interface_name", "speed": 10485760000, - "time_since_update": 0.34486937522888184}] + "time_since_update": 0.3174254894256592}] Fields descriptions: @@ -870,18 +870,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": 5178231682, + "bytes_all_gauge": 5189610781, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 4784084632, + "bytes_recv_gauge": 4787138046, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 394147050, + "bytes_sent_gauge": 402472735, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.34486937522888184}]} + "time_since_update": 0.3174254894256592}]} GET now ------- @@ -889,7 +889,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2026-02-10 22:14:43 CET", "iso": "2026-02-10T22:14:43+01:00"} + {"custom": "2026-02-10 22:28:13 CET", "iso": "2026-02-10T22:28:13+01:00"} Fields descriptions: @@ -899,7 +899,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2026-02-10T22:14:43+01:00"} + {"iso": "2026-02-10T22:28:13+01:00"} GET npu ------- @@ -933,7 +933,7 @@ Get plugin stats:: "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 26.0, + "idle": 22.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -941,14 +941,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 7.0, - "total": 74.0, + "system": 9.0, + "total": 78.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 31.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -957,7 +957,7 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, + "total": 69.0, "user": 0.0}] Fields descriptions: @@ -994,7 +994,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.005237, + "status": 0.007412, "timeout": 3}] Fields descriptions: @@ -1022,7 +1022,7 @@ Get a specific item when field matches the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.005237, + "status": 0.007412, "timeout": 3}]} GET processcount @@ -1031,7 +1031,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 2, "sleeping": 436, "thread": 2357, "total": 582} + {"pid_max": 0, "running": 1, "sleeping": 434, "thread": 2291, "total": 577} Fields descriptions: @@ -1044,7 +1044,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 582} + {"total": 577} GET processlist --------------- @@ -1054,11 +1054,11 @@ Get plugin stats:: # curl http://localhost:61208/api/4/processlist [{"cmdline": ["/sbin/init", "splash"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 134.31, - "children_user": 314.14, + "cpu_times": {"children_system": 134.32, + "children_user": 314.15, "iowait": 0.0, - "system": 7.78, - "user": 12.23}, + "system": 7.8, + "user": 12.25}, "gids": {"effective": 0, "real": 0, "saved": 0}, "io_counters": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "key": "pid", @@ -1129,10 +1129,10 @@ Get plugin stats:: [{"childrens": [1, 5095], "cmdline": ["systemd"], "cpu_percent": 0, - "cpu_times": {"children_system": 334.78999999999996, - "children_user": 927.24, - "system": 10.67, - "user": 31.19}, + "cpu_times": {"children_system": 334.79999999999995, + "children_user": 927.25, + "system": 10.69, + "user": 31.21}, "io_counters": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "memory_info": {"data": 11071488, "rss": 25149440, @@ -1205,19 +1205,19 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/4/quicklook - {"cpu": 5.8, + {"cpu": 6.7, "cpu_hz": 4475000000.0, - "cpu_hz_current": 912258875.0, + "cpu_hz_current": 689286625.0000001, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 3.2, - "mem": 66.7, + "load": 4.0, + "mem": 65.0, "percpu": [{"cpu_number": 0, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 26.0, + "idle": 22.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1225,14 +1225,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 7.0, - "total": 74.0, + "system": 9.0, + "total": 78.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 31.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1241,13 +1241,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, + "total": 69.0, "user": 0.0}, {"cpu_number": 2, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 31.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1256,13 +1256,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, + "total": 69.0, "user": 0.0}, {"cpu_number": 3, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 29.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1271,13 +1271,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, - "user": 0.0}, + "total": 71.0, + "user": 1.0}, {"cpu_number": 4, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 33.0, + "idle": 21.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1285,14 +1285,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 67.0, - "user": 0.0}, + "system": 3.0, + "total": 79.0, + "user": 7.0}, {"cpu_number": 5, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 31.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1300,14 +1300,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 66.0, + "system": 0.0, + "total": 69.0, "user": 0.0}, {"cpu_number": 6, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 33.0, + "idle": 23.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1315,29 +1315,29 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 67.0, + "system": 6.0, + "total": 77.0, "user": 0.0}, {"cpu_number": 7, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 10.0, + "idle": 27.0, "interrupt": None, - "iowait": 2.0, + "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 12.0, - "total": 90.0, - "user": 8.0}, + "system": 2.0, + "total": 73.0, + "user": 2.0}, {"cpu_number": 8, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 33.0, + "idle": 30.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1346,13 +1346,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 67.0, - "user": 0.0}, + "total": 70.0, + "user": 1.0}, {"cpu_number": 9, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 31.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1361,13 +1361,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, + "total": 69.0, "user": 0.0}, {"cpu_number": 10, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 33.0, + "idle": 30.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1376,13 +1376,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 67.0, + "total": 70.0, "user": 0.0}, {"cpu_number": 11, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 33.0, + "idle": 31.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1391,13 +1391,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 67.0, + "total": 69.0, "user": 0.0}, {"cpu_number": 12, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 33.0, + "idle": 30.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1406,13 +1406,43 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 1.0, - "total": 67.0, + "total": 70.0, "user": 0.0}, {"cpu_number": 13, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 33.0, + "idle": 31.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": 69.0, + "user": 0.0}, + {"cpu_number": 14, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 31.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": 69.0, + "user": 0.0}, + {"cpu_number": 15, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 30.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1421,39 +1451,9 @@ Get plugin stats:: "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": 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": 0.0}, - {"cpu_number": 15, - "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, + "total": 70.0, "user": 0.0}], - "swap": 95.7} + "swap": 95.6} Fields descriptions: @@ -1498,7 +1498,7 @@ Get plugin stats:: "label": "Ambient 3", "type": "temperature_core", "unit": "C", - "value": 28, + "value": 29, "warning": 0}] Fields descriptions: @@ -1605,7 +1605,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "12 days, 0:18:20" + "12 days, 0:31:50" GET version ----------- @@ -1613,7 +1613,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.5.0.3" + "4.5.0.4" GET vms ------- @@ -1728,34 +1728,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2026-02-10T21:14:44.581530+00:00", 2.9], - ["2026-02-10T21:14:45.655815+00:00", 0.7], - ["2026-02-10T21:14:46.686279+00:00", 0.7]], - "user": [["2026-02-10T21:14:44.581529+00:00", 3.1], - ["2026-02-10T21:14:45.655814+00:00", 0.5], - ["2026-02-10T21:14:46.686278+00:00", 0.5]]} + {"system": [["2026-02-10T21:28:14.160883+00:00", 3.0], + ["2026-02-10T21:28:15.236930+00:00", 0.8], + ["2026-02-10T21:28:16.267413+00:00", 0.8]], + "user": [["2026-02-10T21:28:14.160882+00:00", 3.7], + ["2026-02-10T21:28:15.236928+00:00", 0.9], + ["2026-02-10T21:28:16.267411+00:00", 0.9]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2026-02-10T21:14:45.655815+00:00", 0.7], - ["2026-02-10T21:14:46.686279+00:00", 0.7]], - "user": [["2026-02-10T21:14:45.655814+00:00", 0.5], - ["2026-02-10T21:14:46.686278+00:00", 0.5]]} + {"system": [["2026-02-10T21:28:15.236930+00:00", 0.8], + ["2026-02-10T21:28:16.267413+00:00", 0.8]], + "user": [["2026-02-10T21:28:15.236928+00:00", 0.9], + ["2026-02-10T21:28:16.267411+00:00", 0.9]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2026-02-10T21:14:43.409607+00:00", 2.9], - ["2026-02-10T21:14:44.581530+00:00", 2.9], - ["2026-02-10T21:14:45.655815+00:00", 0.7], - ["2026-02-10T21:14:46.686279+00:00", 0.7]]} + {"system": [["2026-02-10T21:28:12.992346+00:00", 3.0], + ["2026-02-10T21:28:14.160883+00:00", 3.0], + ["2026-02-10T21:28:15.236930+00:00", 0.8], + ["2026-02-10T21:28:16.267413+00:00", 0.8]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2026-02-10T21:14:45.655815+00:00", 0.7], - ["2026-02-10T21:14:46.686279+00:00", 0.7]]} + {"system": [["2026-02-10T21:28:15.236930+00:00", 0.8], + ["2026-02-10T21:28:16.267413+00:00", 0.8]]} GET limits (used for thresholds) -------------------------------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index 2ce6863e..2217d856 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" "Feb 10, 2026" "4.5.0.3" "Glances" +.TH "GLANCES" "1" "Feb 10, 2026" "4.5.0.4" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS diff --git a/glances/__init__.py b/glances/__init__.py index 2d030ce2..e8a54d46 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -20,7 +20,7 @@ import tracemalloc # Version should start and end with a numerical char # See https://packaging.python.org/specifications/core-metadata/#version # Examples: 1.0.0, 1.0.0rc1, 1.1.0_dev1 -__version__ = "4.5.0.3" +__version__ = "4.5.0.4" __apiversion__ = '4' __author__ = 'Nicolas Hennion ' __license__ = 'LGPLv3' diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 5f67abc0..505697fc 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -4,7 +4,7 @@ name: glances # Do not forget to set the source-branch option to master for release (see end of file) # build00 => glances source-branch should be set to develop # buildXX => glances source-branch should be set to master -version: '4.5.0.3+build01' +version: '4.5.0.4+build01' summary: Glances an Eye on your system. A top/htop alternative. description: |