From e46a38f1418b4fbcfb77ce6b3c6dd24f83d68675 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 5 Jul 2025 10:43:46 +0200 Subject: [PATCH] version 4.3.2 --- NEWS.rst | 45 +++ docs/api.rst | 656 ++++++++++++++++++++++---------------------- docs/man/glances.1 | 2 +- glances/__init__.py | 2 +- 4 files changed, 378 insertions(+), 327 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index 3ae445cc..602c9fa1 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,51 @@ Glances ChangeLog ============================================================================ +============= +Version 4.3.3 +============= + +Enhancements: + +* Add stats about running VMS (qemu/libvirt/kvm support through virsh) #1531 +* Add support for InfluxDB 3 Core #3182 +* (postgre)SQL export support / TimeScaleDB #2814 +* CSV column name now include the plugin name - Related to #2394 +* Make all results from amps plugins exportable #2394 +* Make --stdout (csv and json) compliant with client/server mode #3235 +* API history endpoints shows times without timezone #3218 +* FR: Sort Sensors my name in proper number order #3132 +* In the FS module, do not display threshold for volume mounted in 'ro' (read-only) #3143 +* Add a new field in the process list to identifie Zombie process #3178 +* Update plugin containers display and order #3186 +* Implement a basic memory cache with TTL for API call (set to ~1 second) #3202 +* Add container inactive_file & limit to InfluxDB2 export #3206 + +Bug corrected: + +* [GPU] AMD Plugin: Operation not permitted #3125 +* Container memory stats not displayed #3142 +* [WEBUI] Irix mode (per core instead of per CPU percentage) not togglable #3158 +* Related to iteritems, itervalues, and iterkeys are not more needed in Python 3 #3181 +* Glances Central Browser should use name instead of IP adress for redirection #3103 +* Glances breaks if Podman container is started while it is running #3199 + +Continious integration and documentation: + +* Add a new option --print-completion to generate shell tab completion - #3111 +* Improve Restful API documentation embeded in FastAPI #2632 +* Upgrade JS libs #3147 +* Improve unittest for CSV export #3150 +* Improve unittest for InfluxDB plugin #3149 +* Code refactoring - Rename plugin class to Plugin instead of PluginModel #3169 +* Refactor code to limit the complexity of update_views method in plugins #3171 + +Thanks to all contributors and bug reporters ! + +Special thanks to: +- Ariel Otilibili +- kenrmayfield + ============= Version 4.3.1 ============= diff --git a/docs/api.rst b/docs/api.rst index cdec4912..14ca03e5 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -160,7 +160,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.35416603088378906}, + "timer": 0.33530569076538086}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -169,7 +169,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.35405850410461426}] + "timer": 0.33524298667907715}] Fields descriptions: @@ -197,7 +197,7 @@ Get a specific item when field matches the given value:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.35416603088378906}]} + "timer": 0.33530569076538086}]} GET cloud --------- @@ -245,17 +245,19 @@ Get plugin stats:: "engine": "docker", "id": "454a8c7f059271f0e7fbb757375014115db3b6e0df2c039e66bb2647f717f67e", "image": ["timescale/timescaledb-ha:pg17"], - "io": {}, + "io": {"cumulative_ior": 173015040, "cumulative_iow": 0}, "io_rx": None, "io_wx": None, "key": "name", - "memory": {}, - "memory_inactive_file": None, - "memory_limit": None, + "memory": {"inactive_file": 21090304, + "limit": 16421875712, + "usage": 86532096}, + "memory_inactive_file": 21090304, + "memory_limit": 16421875712, "memory_percent": None, - "memory_usage": None, + "memory_usage": 86532096, "name": "timescaledb-for-glances", - "network": {}, + "network": {"cumulative_rx": 972521, "cumulative_tx": 195116}, "network_rx": None, "network_tx": None, "status": "running", @@ -297,17 +299,21 @@ Get a specific item when field matches the given value:: "engine": "docker", "id": "454a8c7f059271f0e7fbb757375014115db3b6e0df2c039e66bb2647f717f67e", "image": ["timescale/timescaledb-ha:pg17"], - "io": {}, + "io": {"cumulative_ior": 173015040, + "cumulative_iow": 0}, "io_rx": None, "io_wx": None, "key": "name", - "memory": {}, - "memory_inactive_file": None, - "memory_limit": None, + "memory": {"inactive_file": 21090304, + "limit": 16421875712, + "usage": 86532096}, + "memory_inactive_file": 21090304, + "memory_limit": 16421875712, "memory_percent": None, - "memory_usage": None, + "memory_usage": 86532096, "name": "timescaledb-for-glances", - "network": {}, + "network": {"cumulative_rx": 972521, + "cumulative_tx": 195116}, "network_rx": None, "network_tx": None, "status": "running", @@ -338,19 +344,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 1147082157, + "ctx_switches": 1166199421, "guest": 0.0, - "idle": 92.7, - "interrupts": 537821547, + "idle": 93.0, + "interrupts": 549058485, "iowait": 0.3, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 159054185, + "soft_interrupts": 163276603, "steal": 0.0, "syscalls": 0, "system": 2.7, - "total": 7.0, - "user": 4.3} + "total": 6.0, + "user": 4.0} Fields descriptions: @@ -383,7 +389,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 7.0} + {"total": 6.0} GET diskio ---------- @@ -393,10 +399,10 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 25958311936, - "read_count": 1432838, - "write_bytes": 50359825408, - "write_count": 4407142}, + "read_bytes": 26492028928, + "read_count": 1484745, + "write_bytes": 51347264512, + "write_count": 4485181}, {"disk_name": "nvme0n1p1", "key": "disk_name", "read_bytes": 25019904, @@ -436,10 +442,10 @@ 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": 25958311936, - "read_count": 1432838, - "write_bytes": 50359825408, - "write_count": 4407142}]} + "read_bytes": 26492028928, + "read_count": 1484745, + "write_bytes": 51347264512, + "write_count": 4485181}]} GET folders ----------- @@ -466,14 +472,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/fs [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 757015015424, + "free": 757017743360, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", "percent": 20.5, "size": 1003736440832, - "used": 195658919936}, + "used": 195656192000}, {"device_name": "zsfpool", "free": 41680896, "fs_type": "zfs", @@ -504,14 +510,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": 757015015424, + "free": 757017743360, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", "percent": 20.5, "size": 1003736440832, - "used": 195658919936}]} + "used": 195656192000}]} GET gpu ------- @@ -584,9 +590,9 @@ Get plugin stats:: # curl http://localhost:61208/api/4/load {"cpucore": 16, - "min1": 1.38671875, - "min15": 0.69189453125, - "min5": 0.90283203125} + "min1": 1.63671875, + "min15": 0.9052734375, + "min5": 1.17822265625} Fields descriptions: @@ -598,7 +604,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 1.38671875} + {"min1": 1.63671875} GET mem ------- @@ -606,16 +612,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 6523793408, - "available": 5214130176, - "buffers": 172609536, - "cached": 3883290624, - "free": 5214130176, - "inactive": 5262598144, - "percent": 68.2, - "shared": 851185664, + {"active": 7144943616, + "available": 4822491136, + "buffers": 324292608, + "cached": 4497264640, + "free": 4822491136, + "inactive": 5701488640, + "percent": 70.6, + "shared": 859701248, "total": 16421875712, - "used": 11207745536} + "used": 11599384576} Fields descriptions: @@ -642,13 +648,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 24600576, - "percent": 99.4, - "sin": 2413453312, + {"free": 149078016, + "percent": 96.5, + "sin": 2545041408, "sout": 10314559488, "time_since_update": 1, "total": 4294963200, - "used": 4270362624} + "used": 4145885184} Fields descriptions: @@ -673,32 +679,32 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 4956031212, + "bytes_all_gauge": 4989119209, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 4219856761, + "bytes_recv_gauge": 4236843523, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 736174451, + "bytes_sent_gauge": 752275686, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.3574516773223877}, + "time_since_update": 0.3370020389556885}, {"alias": None, "bytes_all": 0, - "bytes_all_gauge": 1144785, + "bytes_all_gauge": 1167637, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, "bytes_recv_gauge": 195116, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 949669, + "bytes_sent_gauge": 972521, "bytes_sent_rate_per_sec": 0, "interface_name": "veth620fda1", "key": "interface_name", "speed": 10485760000, - "time_since_update": 0.3574516773223877}] + "time_since_update": 0.3370020389556885}] Fields descriptions: @@ -727,18 +733,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": 4956031212, + "bytes_all_gauge": 4989119209, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 4219856761, + "bytes_recv_gauge": 4236843523, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 736174451, + "bytes_sent_gauge": 752275686, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.3574516773223877}]} + "time_since_update": 0.3370020389556885}]} GET now ------- @@ -746,7 +752,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2025-07-05 10:00:54 CEST", "iso": "2025-07-05T10:00:54+02:00"} + {"custom": "2025-07-05 10:35:51 CEST", "iso": "2025-07-05T10:35:51+02:00"} Fields descriptions: @@ -756,7 +762,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2025-07-05T10:00:54+02:00"} + {"iso": "2025-07-05T10:35:51+02:00"} GET percpu ---------- @@ -768,7 +774,7 @@ Get plugin stats:: "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 26.0, + "idle": 24.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -776,14 +782,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 7.0, - "total": 74.0, - "user": 0.0}, + "system": 6.0, + "total": 76.0, + "user": 1.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 32.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -792,8 +798,8 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, - "user": 1.0}] + "total": 68.0, + "user": 0.0}] Fields descriptions: @@ -829,7 +835,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.015165, + "status": 0.01525, "timeout": 3}] Fields descriptions: @@ -857,7 +863,7 @@ Get a specific item when field matches the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.015165, + "status": 0.01525, "timeout": 3}]} GET processcount @@ -866,7 +872,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 1, "sleeping": 445, "thread": 2471, "total": 592} + {"pid_max": 0, "running": 1, "sleeping": 440, "thread": 2362, "total": 580} Fields descriptions: @@ -879,7 +885,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 592} + {"total": 580} GET processlist --------------- @@ -911,43 +917,48 @@ Get plugin stats:: "--disable-features=CalculateNativeWinOcclusion,SpareRendererForSitePerProcess", "--variations-seed-version"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 1748.1, - "children_user": 498.61, + "cpu_times": {"children_system": 1882.07, + "children_user": 576.13, "iowait": 0.0, - "system": 1395.93, - "user": 3554.47}, + "system": 1452.92, + "user": 3695.56}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [1253070848, - 1439047680, + "io_counters": [1326807040, + 1603354624, 0, 0, 0, - 50158592, - 278528, + 64596992, + 282624, 0, 0, 0, - 105289728, - 991232, + 147131392, + 995328, 0, 0, 0, - 51778560, + 51855360, 1474125824, 0, 0, 0, - 88620032, - 239845376, + 95545344, + 250560512, 0, 0, 0, - 4370432, + 92862464, 0, 0, 0, 0, - 74962944, + 98009088, + 0, + 0, + 0, + 0, + 10772480, 0, 0, 0, @@ -957,11 +968,6 @@ Get plugin stats:: 0, 0, 0, - 75834368, - 0, - 0, - 0, - 0, 1781760, 0, 0, @@ -977,7 +983,17 @@ Get plugin stats:: 0, 0, 0, - 2583552, + 8916992, + 0, + 0, + 0, + 0, + 2657280, + 0, + 0, + 0, + 0, + 2909184, 0, 0, 0, @@ -987,27 +1003,17 @@ Get plugin stats:: 0, 0, 0, - 1452032, + 1509376, 0, 0, 0, 0, - 697344, + 1865728, 0, 0, 0, 0, - 1685504, - 0, - 0, - 0, - 0, - 3186688, - 0, - 0, - 0, - 0, - 8507392, + 8511488, 0, 0, 0, @@ -1018,7 +1024,7 @@ Get plugin stats:: 0, 0, 7917568, - 13221888, + 13664256, 0, 0, 0, @@ -1033,17 +1039,17 @@ Get plugin stats:: 0, 0], "key": "pid", - "memory_info": {"data": 4289839104, + "memory_info": {"data": 4350201856, "dirty": 0, "lib": 0, - "rss": 1786892288, - "shared": 46358528, + "rss": 1867489280, + "shared": 46579712, "text": 142934016, - "vms": 1526241628160}, - "memory_percent": 10.881170454202497, + "vms": 1526208012288}, + "memory_percent": 11.371960869460025, "name": "code", "nice": 0, - "num_threads": 75, + "num_threads": 59, "pid": 344596, "status": "S", "time_since_update": 1, @@ -1055,22 +1061,22 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 226.94, - "user": 2816.36}, + "system": 234.71, + "user": 2910.63}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [50158592, 278528, 0, 0, 0], + "io_counters": [64596992, 282624, 0, 0, 0], "key": "pid", - "memory_info": {"data": 2574012416, + "memory_info": {"data": 2714664960, "dirty": 0, "lib": 0, - "rss": 1171873792, - "shared": 79126528, + "rss": 1173278720, + "shared": 84959232, "text": 142934016, - "vms": 1535192395776}, - "memory_percent": 7.136053228947979, + "vms": 1540455497728}, + "memory_percent": 7.144608451412447, "name": "code", "nice": 0, - "num_threads": 45, + "num_threads": 48, "pid": 344538, "status": "S", "time_since_update": 1, @@ -1103,19 +1109,19 @@ Get plugin stats:: 345057, 344606, 344413, - 538299, 345617, - 757571, 344607, + 538299, + 757571, 344509, 538473, 538298, + 538456, 703317, + 750052, 344729, 703318, - 750052, 344987, - 538456, 345280, 538321, 344492, @@ -1123,41 +1129,46 @@ Get plugin stats:: 344415], "cmdline": ["code"], "cpu_percent": 0, - "cpu_times": {"children_system": 1749.6999999999998, - "children_user": 507.61000000000007, - "system": 2008.36, - "user": 8456.070000000002}, - "io_counters": [1253070848, - 1439047680, + "cpu_times": {"children_system": 1883.7299999999998, + "children_user": 585.22, + "system": 2086.5800000000004, + "user": 8786.25}, + "io_counters": [1326807040, + 1603354624, 0, 0, 0, - 50158592, - 278528, + 64596992, + 282624, 0, 0, 0, - 105289728, - 991232, + 147131392, + 995328, 0, 0, 0, - 51778560, + 51855360, 1474125824, 0, 0, 0, - 88620032, - 239845376, + 95545344, + 250560512, 0, 0, 0, - 4370432, + 92862464, 0, 0, 0, 0, - 74962944, + 98009088, + 0, + 0, + 0, + 0, + 10772480, 0, 0, 0, @@ -1167,11 +1178,6 @@ Get plugin stats:: 0, 0, 0, - 75834368, - 0, - 0, - 0, - 0, 1781760, 0, 0, @@ -1187,7 +1193,17 @@ Get plugin stats:: 0, 0, 0, - 2583552, + 8916992, + 0, + 0, + 0, + 0, + 2657280, + 0, + 0, + 0, + 0, + 2909184, 0, 0, 0, @@ -1197,27 +1213,17 @@ Get plugin stats:: 0, 0, 0, - 1452032, + 1509376, 0, 0, 0, 0, - 697344, + 1865728, 0, 0, 0, 0, - 1685504, - 0, - 0, - 0, - 0, - 3186688, - 0, - 0, - 0, - 0, - 8507392, + 8511488, 0, 0, 0, @@ -1228,7 +1234,7 @@ Get plugin stats:: 0, 0, 7917568, - 13221888, + 13664256, 0, 0, 0, @@ -1242,41 +1248,41 @@ Get plugin stats:: 0, 0, 0], - "memory_info": {"data": 21450272768, - "rss": 5078986752, - "shared": 785207296, + "memory_info": {"data": 21699174400, + "rss": 5171961856, + "shared": 797163520, "text": 3287482368, - "vms": 28620475490304}, - "memory_percent": 30.928176787311937, + "vms": 28625712402432}, + "memory_percent": 31.494342952679144, "name": "code", "nice": 0, "nprocs": 23, - "num_threads": 383, + "num_threads": 370, "pid": "_", "status": "S", "time_since_update": 1, "username": "nicolargo"}, - {"childrens": [9654], - "cmdline": ["WebExtensions"], + {"childrens": [345567], + "cmdline": ["cloudcode_cli"], "cpu_percent": 0, "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 160.28, - "user": 1042.28}, - "io_counters": [88540160, 0, 0, 0, 0], - "memory_info": {"data": 1267232768, + "system": 23.33, + "user": 228.33}, + "io_counters": [439083008, 0, 0, 0, 0], + "memory_info": {"data": 1580609536, "dirty": 0, "lib": 0, - "rss": 671899648, - "shared": 97771520, - "text": 868352, - "vms": 25486487552}, - "memory_percent": 4.091491494537503, - "name": "WebExtensions", + "rss": 706887680, + "shared": 13123584, + "text": 33955840, + "vms": 2864840704}, + "memory_percent": 4.304548958944161, + "name": "cloudcode_cli", "nice": 0, "nprocs": 1, - "num_threads": 29, + "num_threads": 20, "pid": "_", "status": "S", "time_since_update": 1, @@ -1312,19 +1318,19 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/4/quicklook - {"cpu": 7.0, + {"cpu": 6.0, "cpu_hz": 4475000000.0, - "cpu_hz_current": 2035806187.5, + "cpu_hz_current": 1461465250.0, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 4.3, - "mem": 68.2, + "load": 5.7, + "mem": 70.6, "percpu": [{"cpu_number": 0, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 26.0, + "idle": 24.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1332,14 +1338,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 7.0, - "total": 74.0, - "user": 0.0}, + "system": 6.0, + "total": 76.0, + "user": 1.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 32.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1348,9 +1354,24 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, - "user": 1.0}, + "total": 68.0, + "user": 0.0}, {"cpu_number": 2, + "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": 1.0, + "total": 69.0, + "user": 1.0}, + {"cpu_number": 3, "dpc": None, "guest": 0.0, "guest_nice": 0.0, @@ -1364,21 +1385,6 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 67.0, - "user": 1.0}, - {"cpu_number": 3, - "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": 1.0, - "total": 65.0, "user": 0.0}, {"cpu_number": 4, "dpc": None, @@ -1386,36 +1392,6 @@ Get plugin stats:: "guest_nice": 0.0, "idle": 25.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": 75.0, - "user": 7.0}, - {"cpu_number": 5, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 27.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": 73.0, - "user": 1.0}, - {"cpu_number": 6, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 29.0, - "interrupt": None, "iowait": 1.0, "irq": 0.0, "key": "cpu_number", @@ -1423,28 +1399,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 3.0, - "total": 71.0, - "user": 2.0}, - {"cpu_number": 7, + "total": 75.0, + "user": 4.0}, + {"cpu_number": 5, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.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": 66.0, - "user": 0.0}, - {"cpu_number": 8, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 34.0, + "idle": 33.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1453,7 +1414,52 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 66.0, + "total": 67.0, + "user": 0.0}, + {"cpu_number": 6, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 18.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": 82.0, + "user": 5.0}, + {"cpu_number": 7, + "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": 8, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 31.0, + "interrupt": None, + "iowait": 1.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 1.0, + "total": 69.0, "user": 1.0}, {"cpu_number": 9, "dpc": None, @@ -1471,6 +1477,36 @@ Get plugin stats:: "total": 66.0, "user": 0.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": 0.0, + "total": 70.0, + "user": 0.0}, + {"cpu_number": 11, + "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": 12, "dpc": None, "guest": 0.0, "guest_nice": 0.0, @@ -1484,42 +1520,12 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 68.0, - "user": 2.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": 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}, + "user": 1.0}, {"cpu_number": 13, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 35.0, + "idle": 32.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1528,13 +1534,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 65.0, - "user": 0.0}, + "total": 68.0, + "user": 1.0}, {"cpu_number": 14, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 35.0, + "idle": 33.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1543,13 +1549,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 65.0, - "user": 0.0}, + "total": 67.0, + "user": 1.0}, {"cpu_number": 15, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 34.0, + "idle": 33.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1557,10 +1563,10 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 66.0, - "user": 1.0}], - "swap": 99.4} + "system": 1.0, + "total": 67.0, + "user": 0.0}], + "swap": 96.5} Fields descriptions: @@ -1598,7 +1604,7 @@ Get plugin stats:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 42, + "value": 43, "warning": 0}, {"critical": None, "key": "label", @@ -1667,7 +1673,7 @@ Get a specific item when field matches the given value:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 42, + "value": 43, "warning": 0}]} GET smart @@ -1711,7 +1717,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "13 days, 20:36:24" + "13 days, 21:11:21" GET version ----------- @@ -1719,7 +1725,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.3.2_rc01" + "4.3.2" GET vms ------- @@ -1756,8 +1762,8 @@ Get plugin stats:: # curl http://localhost:61208/api/4/wifi [{"key": "ssid", - "quality_level": -63.0, - "quality_link": 47.0, + "quality_level": -60.0, + "quality_link": 50.0, "ssid": "wlp0s20f3"}] Get a specific field:: @@ -1769,8 +1775,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": -63.0, - "quality_link": 47.0, + "quality_level": -60.0, + "quality_link": 50.0, "ssid": "wlp0s20f3"}]} GET all stats @@ -1834,34 +1840,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2025-07-05T08:00:56.009714+00:00", 2.7], - ["2025-07-05T08:00:57.081256+00:00", 0.9], - ["2025-07-05T08:00:58.101843+00:00", 0.9]], - "user": [["2025-07-05T08:00:56.009713+00:00", 4.3], - ["2025-07-05T08:00:57.081255+00:00", 1.4], - ["2025-07-05T08:00:58.101842+00:00", 1.4]]} + {"system": [["2025-07-05T08:35:52.821333+00:00", 2.7], + ["2025-07-05T08:35:53.893521+00:00", 0.9], + ["2025-07-05T08:35:54.915545+00:00", 0.9]], + "user": [["2025-07-05T08:35:52.821332+00:00", 4.0], + ["2025-07-05T08:35:53.893520+00:00", 1.1], + ["2025-07-05T08:35:54.915543+00:00", 1.1]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2025-07-05T08:00:57.081256+00:00", 0.9], - ["2025-07-05T08:00:58.101843+00:00", 0.9]], - "user": [["2025-07-05T08:00:57.081255+00:00", 1.4], - ["2025-07-05T08:00:58.101842+00:00", 1.4]]} + {"system": [["2025-07-05T08:35:53.893521+00:00", 0.9], + ["2025-07-05T08:35:54.915545+00:00", 0.9]], + "user": [["2025-07-05T08:35:53.893520+00:00", 1.1], + ["2025-07-05T08:35:54.915543+00:00", 1.1]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2025-07-05T08:00:54.878479+00:00", 2.7], - ["2025-07-05T08:00:56.009714+00:00", 2.7], - ["2025-07-05T08:00:57.081256+00:00", 0.9], - ["2025-07-05T08:00:58.101843+00:00", 0.9]]} + {"system": [["2025-07-05T08:35:51.703171+00:00", 2.7], + ["2025-07-05T08:35:52.821333+00:00", 2.7], + ["2025-07-05T08:35:53.893521+00:00", 0.9], + ["2025-07-05T08:35:54.915545+00:00", 0.9]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2025-07-05T08:00:57.081256+00:00", 0.9], - ["2025-07-05T08:00:58.101843+00:00", 0.9]]} + {"system": [["2025-07-05T08:35:53.893521+00:00", 0.9], + ["2025-07-05T08:35:54.915545+00:00", 0.9]]} GET limits (used for thresholds) -------------------------------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index 5354d31d..778bd0d0 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -28,7 +28,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" "Jul 05, 2025" "4.3.2_rc01" "Glances" +.TH "GLANCES" "1" "Jul 05, 2025" "4.3.2" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS diff --git a/glances/__init__.py b/glances/__init__.py index 5c71add5..097e8268 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -19,7 +19,7 @@ import tracemalloc # Global name # Version should start and end with a numerical char # See https://packaging.python.org/specifications/core-metadata/#version -__version__ = "4.3.2_rc01" +__version__ = "4.3.2" __apiversion__ = '4' __author__ = 'Nicolas Hennion ' __license__ = 'LGPLv3'