From 7a2ee5236288749efd0d9e553509f8c3548e9a1b Mon Sep 17 00:00:00 2001 From: nicolargo Date: Mon, 30 Dec 2024 15:15:43 +0100 Subject: [PATCH] version 4.3.0.6 --- NEWS.rst | 17 +- docs/api.rst | 732 ++++++++++++++------------------------------ glances/__init__.py | 2 +- snap/snapcraft.yaml | 2 +- 4 files changed, 243 insertions(+), 510 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index 1bf997569..6a5433760 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1,9 +1,22 @@ ============================================================================== Glances ChangeLog -============================================================================== +============================================================================ =============== -Version 4.3.0.4 +Version 4.3.0.6 +=============== + +Bug corrected: + +* Browser mode do not working with the sensors plugin #3069 +* netifaces is deprecated, use netifaces-plus or netifaces2 #3055 + +Continuous integration and documentation: + +* Update alpine Docker tag to v3.21 #3061 + +=============== +Version 4.3.0.5 =============== Bug corrected: diff --git a/docs/api.rst b/docs/api.rst index 6afc83f3c..6105e1a43 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.47823166847229004}, + "timer": 0.44138431549072266}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -169,7 +169,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.4781160354614258}] + "timer": 0.4412875175476074}] 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.47823166847229004}]} + "timer": 0.44138431549072266}]} GET cloud --------- @@ -238,26 +238,7 @@ GET containers Get plugin stats:: # curl http://localhost:61208/api/4/containers - [{"command": "/bin/sh -c /venv/bin/python3 -m glances $GLANCES_OPT", - "cpu": {"total": 0.0}, - "cpu_percent": 0.0, - "created": "2024-12-28T12:38:51.493509389Z", - "engine": "docker", - "id": "f0458f3348b4029aa898bc1dec0969d6decfd4d3369efef82051b1d227e4bb04", - "image": ["nicolargo/glances:ubuntu-4.3.0.4"], - "io": {}, - "io_rx": None, - "io_wx": None, - "key": "name", - "memory": {}, - "memory_percent": None, - "memory_usage": None, - "name": "glances-test-with-a-very-longname-indead", - "network": {}, - "network_rx": None, - "network_tx": None, - "status": "running", - "uptime": "9 mins"}] + [] Fields descriptions: @@ -278,38 +259,6 @@ Fields descriptions: * **pod_name**: Pod name (only with Podman) (unit is *None*) * **pod_id**: Pod ID (only with Podman) (unit is *None*) -Get a specific field:: - - # curl http://localhost:61208/api/4/containers/name - {"name": ["glances-test-with-a-very-longname-indead"]} - -Get a specific item when field matches the given value:: - - # curl http://localhost:61208/api/4/containers/name/value/glances-test-with-a-very-longname-indead - {"glances-test-with-a-very-longname-indead": [{"command": "/bin/sh -c " - "/venv/bin/python3 " - "-m glances " - "$GLANCES_OPT", - "cpu": {"total": 0.0}, - "cpu_percent": 0.0, - "created": "2024-12-28T12:38:51.493509389Z", - "engine": "docker", - "id": "f0458f3348b4029aa898bc1dec0969d6decfd4d3369efef82051b1d227e4bb04", - "image": ["nicolargo/glances:ubuntu-4.3.0.4"], - "io": {}, - "io_rx": None, - "io_wx": None, - "key": "name", - "memory": {}, - "memory_percent": None, - "memory_usage": None, - "name": "glances-test-with-a-very-longname-indead", - "network": {}, - "network_rx": None, - "network_tx": None, - "status": "running", - "uptime": "9 mins"}]} - GET core -------- @@ -335,19 +284,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 578106892, + "ctx_switches": 720803163, "guest": 0.0, - "idle": 89.5, - "interrupts": 401023815, + "idle": 92.7, + "interrupts": 517766451, "iowait": 0.1, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 158761746, + "soft_interrupts": 208566649, "steal": 0.0, "syscalls": 0, - "system": 3.6, - "total": 8.8, - "user": 6.7} + "system": 2.7, + "total": 7.7, + "user": 4.6} Fields descriptions: @@ -380,7 +329,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 8.8} + {"total": 7.7} GET diskio ---------- @@ -390,14 +339,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 10894701056, - "read_count": 479783, - "write_bytes": 367306499072, - "write_count": 4914018}, + "read_bytes": 13786498560, + "read_count": 621290, + "write_bytes": 378974737408, + "write_count": 5631561}, {"disk_name": "nvme0n1p1", "key": "disk_name", - "read_bytes": 20215808, - "read_count": 1350, + "read_bytes": 20798464, + "read_count": 1557, "write_bytes": 5120, "write_count": 3}] @@ -433,10 +382,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": 10894701056, - "read_count": 479783, - "write_bytes": 367306499072, - "write_count": 4914018}]} + "read_bytes": 13786498560, + "read_count": 621290, + "write_bytes": 378974737408, + "write_count": 5631561}]} GET folders ----------- @@ -463,13 +412,13 @@ Get plugin stats:: # curl http://localhost:61208/api/4/fs [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 843788865536, + "free": 840608923648, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 11.4, + "percent": 11.8, "size": 1003736440832, - "used": 108885069824}, + "used": 112065011712}, {"device_name": "zsfpool", "free": 41811968, "fs_type": "zfs", @@ -498,13 +447,13 @@ 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": 843788865536, + "free": 840608923648, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 11.4, + "percent": 11.8, "size": 1003736440832, - "used": 108885069824}]} + "used": 112065011712}]} GET gpu ------- @@ -577,10 +526,7 @@ GET load Get plugin stats:: # curl http://localhost:61208/api/4/load - {"cpucore": 16, - "min1": 3.71630859375, - "min15": 2.1337890625, - "min5": 2.75146484375} + {"cpucore": 16, "min1": 1.4208984375, "min15": 0.990234375, "min5": 0.974609375} Fields descriptions: @@ -592,7 +538,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 3.71630859375} + {"min1": 1.4208984375} GET mem ------- @@ -600,16 +546,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 7170293760, - "available": 5814927360, - "buffers": 314990592, - "cached": 5366272000, - "free": 5814927360, - "inactive": 5595136000, - "percent": 64.6, - "shared": 882409472, + {"active": 6342868992, + "available": 7187030016, + "buffers": 261287936, + "cached": 6754066432, + "free": 7187030016, + "inactive": 5996605440, + "percent": 56.2, + "shared": 990703616, "total": 16422453248, - "used": 10607525888} + "used": 9235423232} Fields descriptions: @@ -636,13 +582,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 2326523904, - "percent": 45.8, - "sin": 172572672, - "sout": 2141626368, + {"free": 2747789312, + "percent": 36.0, + "sin": 365170688, + "sout": 2811953152, "time_since_update": 1, "total": 4294963200, - "used": 1968439296} + "used": 1547173888} Fields descriptions: @@ -667,26 +613,26 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 7836044280, + "bytes_all_gauge": 9382392392, "bytes_recv": 0, - "bytes_recv_gauge": 7421870620, + "bytes_recv_gauge": 8835313558, "bytes_sent": 0, - "bytes_sent_gauge": 414173660, + "bytes_sent_gauge": 547078834, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4814465045928955}, + "time_since_update": 0.44423985481262207}, {"alias": None, "bytes_all": 0, - "bytes_all_gauge": 36927150, + "bytes_all_gauge": 45272145, "bytes_recv": 0, - "bytes_recv_gauge": 6364482, + "bytes_recv_gauge": 9353752, "bytes_sent": 0, - "bytes_sent_gauge": 30562668, + "bytes_sent_gauge": 35918393, "interface_name": "mpqemubr0", "key": "interface_name", "speed": 10485760000, - "time_since_update": 0.4814465045928955}] + "time_since_update": 0.44423985481262207}] Fields descriptions: @@ -715,15 +661,15 @@ 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": 7836044280, + "bytes_all_gauge": 9382392392, "bytes_recv": 0, - "bytes_recv_gauge": 7421870620, + "bytes_recv_gauge": 8835313558, "bytes_sent": 0, - "bytes_sent_gauge": 414173660, + "bytes_sent_gauge": 547078834, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4814465045928955}]} + "time_since_update": 0.44423985481262207}]} GET now ------- @@ -731,7 +677,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2024-12-28 13:48:51 CET", "iso": "2024-12-28T13:48:51+01:00"} + {"custom": "2024-12-30 15:13:19 CET", "iso": "2024-12-30T15:13:19+01:00"} Fields descriptions: @@ -741,7 +687,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2024-12-28T13:48:51+01:00"} + {"iso": "2024-12-30T15:13:19+01:00"} GET percpu ---------- @@ -753,7 +699,7 @@ Get plugin stats:: "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, + "idle": 42.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -762,13 +708,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 54.0, + "total": 58.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 34.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -776,8 +722,8 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 10.0, - "total": 63.0, + "system": 12.0, + "total": 66.0, "user": 0.0}] Fields descriptions: @@ -814,7 +760,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.006359, + "status": 0.003823, "timeout": 3}] Fields descriptions: @@ -842,7 +788,7 @@ Get a specific item when field matches the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.006359, + "status": 0.003823, "timeout": 3}]} GET processcount @@ -851,7 +797,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 1, "sleeping": 437, "thread": 2215, "total": 579} + {"pid_max": 0, "running": 1, "sleeping": 429, "thread": 2089, "total": 570} Fields descriptions: @@ -864,7 +810,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 579} + {"total": 570} GET processlist --------------- @@ -903,19 +849,19 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 106.19, - "user": 496.18}, + "system": 144.88, + "user": 686.69}, "gids": {"effective": 0, "real": 0, "saved": 0}, "io_counters": [0, 0, 0, 0, 0], "key": "pid", "memory_info": {"data": 1395154944, "dirty": 0, "lib": 0, - "rss": 887017472, - "shared": 4194304, + "rss": 827043840, + "shared": 3670016, "text": 6172672, "vms": 4359106560}, - "memory_percent": 5.401248270309583, + "memory_percent": 5.036055378027768, "name": "qemu-system-x86_64", "nice": 0, "num_threads": 4, @@ -923,151 +869,64 @@ Get plugin stats:: "status": "S", "time_since_update": 1, "username": "root"}, - {"cmdline": ["/snap/code/172/usr/share/code/code", - "/home/nicolargo/.vscode/extensions/ms-python.vscode-pylance-2024.12.1/dist/server.bundle.js", - "--cancellationReceive=file:2270db0b977df856f09230673763706254e8fcbbc9", - "--node-ipc", - "--clientProcessId=11100"], + {"cmdline": ["/snap/firefox/5361/usr/lib/firefox/firefox", + "-contentproc", + "-isForBrowser", + "-prefsHandle", + "0", + "-prefsLen", + "36125", + "-prefMapHandle", + "1", + "-prefMapSize", + "260746", + "-jsInitHandle", + "2", + "-jsInitLen", + "234660", + "-parentBuildID", + "20241125231607", + "-sandboxReporter", + "3", + "-chrootClient", + "4", + "-ipcHandle", + "5", + "-initialChannelId", + "{0dbd0e41-eefa-438f-bcf2-0bd899fba229}", + "-parentPid", + "5518", + "-crashReporter", + "6", + "-greomni", + "/snap/firefox/5361/usr/lib/firefox/omni.ja", + "-appomni", + "/snap/firefox/5361/usr/lib/firefox/browser/omni.ja", + "-appDir", + "/snap/firefox/5361/usr/lib/firefox/browser", + "2", + "tab"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 0.69, - "children_user": 3.55, + "cpu_times": {"children_system": 0.0, + "children_user": 0.0, "iowait": 0.0, - "system": 94.7, - "user": 1508.02}, + "system": 457.66, + "user": 2605.45}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [90528768, - 1916928, - 0, - 0, - 0, - 49804288, - 3407872, - 0, - 0, - 0, - 516501504, - 261136384, - 0, - 0, - 0, - 16429056, - 0, - 0, - 0, - 0, - 15295488, - 0, - 0, - 0, - 0, - 69611520, - 0, - 0, - 0, - 0, - 121771008, - 427237376, - 0, - 0, - 0, - 2814976, - 0, - 0, - 0, - 0, - 7654400, - 0, - 0, - 0, - 0, - 54331392, - 554795008, - 0, - 0, - 0, - 5175296, - 0, - 0, - 0, - 0, - 1063936, - 0, - 0, - 0, - 0, - 39179264, - 0, - 0, - 0, - 0, - 16163840, - 0, - 0, - 0, - 0, - 646144, - 0, - 0, - 0, - 0, - 17234944, - 6737920, - 0, - 0, - 0, - 7017472, - 0, - 0, - 0, - 0, - 394240, - 0, - 0, - 0, - 0, - 344064, - 0, - 0, - 0, - 0, - 870400, - 0, - 0, - 0, - 0, - 778240, - 0, - 0, - 0, - 0, - 6153216, - 11186176, - 0, - 0, - 0, - 27805696, - 348160, - 0, - 0, - 0, - 951296, - 0, - 0, - 0, - 0], + "io_counters": [8433664, 0, 0, 0, 0], "key": "pid", - "memory_info": {"data": 1280114688, + "memory_info": {"data": 1266036736, "dirty": 0, "lib": 0, - "rss": 877002752, - "shared": 63176704, - "text": 132239360, - "vms": 1219821342720}, - "memory_percent": 5.340266394771471, - "name": "code", + "rss": 684953600, + "shared": 113979392, + "text": 942080, + "vms": 25487286272}, + "memory_percent": 4.170836047795824, + "name": "WebExtensions", "nice": 0, - "num_threads": 14, - "pid": 11631, + "num_threads": 28, + "pid": 5749, "status": "S", "time_since_update": 1, "username": "nicolargo"}] @@ -1100,17 +959,17 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 106.19, - "user": 496.18}, + "system": 144.88, + "user": 686.69}, "io_counters": [0, 0, 0, 0, 0], "memory_info": {"data": 1395154944, "dirty": 0, "lib": 0, - "rss": 887017472, - "shared": 4194304, + "rss": 827043840, + "shared": 3670016, "text": 6172672, "vms": 4359106560}, - "memory_percent": 5.401248270309583, + "memory_percent": 5.036055378027768, "name": "qemu-system-x86_64", "nice": 0, "nprocs": 1, @@ -1119,166 +978,27 @@ Get plugin stats:: "status": "S", "time_since_update": 1, "username": "root"}, - {"childrens": [11631, - 11003, - 11100, - 17962, - 293018, - 11819, - 10919, - 293017, - 187970, - 11098, - 187968, - 308704, - 11099, - 11630, - 826951, - 293033, - 11056, - 470255, - 826952, - 11382, - 11849, - 10969, - 10922, - 10921], - "cmdline": ["code"], + {"childrens": [5749], + "cmdline": ["WebExtensions"], "cpu_percent": 0, - "cpu_times": {"children_system": 3710.2200000000007, - "children_user": 2738.5200000000004, - "system": 2419.2499999999995, - "user": 12487.670000000004}, - "io_counters": [90528768, - 1916928, - 0, - 0, - 0, - 49804288, - 3407872, - 0, - 0, - 0, - 516501504, - 261136384, - 0, - 0, - 0, - 16429056, - 0, - 0, - 0, - 0, - 15295488, - 0, - 0, - 0, - 0, - 69611520, - 0, - 0, - 0, - 0, - 121771008, - 427237376, - 0, - 0, - 0, - 2814976, - 0, - 0, - 0, - 0, - 7654400, - 0, - 0, - 0, - 0, - 54331392, - 554795008, - 0, - 0, - 0, - 5175296, - 0, - 0, - 0, - 0, - 1063936, - 0, - 0, - 0, - 0, - 39179264, - 0, - 0, - 0, - 0, - 16163840, - 0, - 0, - 0, - 0, - 646144, - 0, - 0, - 0, - 0, - 17234944, - 6737920, - 0, - 0, - 0, - 7017472, - 0, - 0, - 0, - 0, - 394240, - 0, - 0, - 0, - 0, - 344064, - 0, - 0, - 0, - 0, - 870400, - 0, - 0, - 0, - 0, - 778240, - 0, - 0, - 0, - 0, - 6153216, - 11186176, - 0, - 0, - 0, - 27805696, - 348160, - 0, - 0, - 0, - 951296, - 0, - 0, - 0, - 0], - "memory_info": {"data": 7970824192, - "rss": 4671074304, - "shared": 1538621440, - "text": 3173744640, - "vms": 24468864196608}, - "memory_percent": 28.443218765557233, - "name": "code", + "cpu_times": {"children_system": 0.0, + "children_user": 0.0, + "iowait": 0.0, + "system": 457.66, + "user": 2605.45}, + "io_counters": [8433664, 0, 0, 0, 0], + "memory_info": {"data": 1266036736, + "dirty": 0, + "lib": 0, + "rss": 684953600, + "shared": 113979392, + "text": 942080, + "vms": 25487286272}, + "memory_percent": 4.170836047795824, + "name": "WebExtensions", "nice": 0, - "nprocs": 24, - "num_threads": 307, + "nprocs": 1, + "num_threads": 28, "pid": "_", "status": "S", "time_since_update": 1, @@ -1314,19 +1034,19 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/4/quicklook - {"cpu": 8.8, + {"cpu": 7.7, "cpu_hz": 4475000000.0, - "cpu_hz_current": 743404187.5000001, + "cpu_hz_current": 779499187.5, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 13.3, - "mem": 64.6, + "load": 6.2, + "mem": 56.2, "percpu": [{"cpu_number": 0, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, + "idle": 42.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1335,13 +1055,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 54.0, + "total": 58.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 34.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1349,14 +1069,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 10.0, - "total": 63.0, + "system": 12.0, + "total": 66.0, "user": 0.0}, {"cpu_number": 2, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 43.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1365,13 +1085,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, - "user": 3.0}, + "total": 57.0, + "user": 0.0}, {"cpu_number": 3, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 47.0, + "idle": 42.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1379,14 +1099,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 53.0, + "system": 1.0, + "total": 58.0, "user": 0.0}, {"cpu_number": 4, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 38.0, + "idle": 19.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1395,13 +1115,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 7.0, - "total": 62.0, - "user": 2.0}, + "total": 81.0, + "user": 16.0}, {"cpu_number": 5, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 45.0, + "idle": 43.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1410,43 +1130,43 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 55.0, - "user": 2.0}, + "total": 57.0, + "user": 1.0}, {"cpu_number": 6, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 24.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": 9.0, - "total": 76.0, - "user": 12.0}, + "system": 7.0, + "total": 67.0, + "user": 2.0}, {"cpu_number": 7, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 35.0, + "idle": 43.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": 8.0, - "total": 65.0, - "user": 2.0}, + "system": 0.0, + "total": 57.0, + "user": 1.0}, {"cpu_number": 8, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 42.0, + "idle": 41.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1454,14 +1174,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 3.0, - "total": 58.0, - "user": 1.0}, + "system": 1.0, + "total": 59.0, + "user": 0.0}, {"cpu_number": 9, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 47.0, + "idle": 43.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1470,13 +1190,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 53.0, - "user": 0.0}, + "total": 57.0, + "user": 1.0}, {"cpu_number": 10, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 45.0, + "idle": 40.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1484,14 +1204,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 55.0, + "system": 2.0, + "total": 60.0, "user": 2.0}, {"cpu_number": 11, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 47.0, + "idle": 44.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1500,13 +1220,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 53.0, + "total": 56.0, "user": 0.0}, {"cpu_number": 12, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, + "idle": 42.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1514,14 +1234,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 54.0, + "system": 0.0, + "total": 58.0, "user": 1.0}, {"cpu_number": 13, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, + "idle": 42.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1529,14 +1249,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 54.0, - "user": 0.0}, + "system": 1.0, + "total": 58.0, + "user": 1.0}, {"cpu_number": 14, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, + "idle": 43.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1545,13 +1265,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 54.0, - "user": 1.0}, + "total": 57.0, + "user": 0.0}, {"cpu_number": 15, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 46.0, + "idle": 43.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1560,9 +1280,9 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 54.0, - "user": 0.0}], - "swap": 45.8} + "total": 57.0, + "user": 1.0}], + "swap": 36.0} Fields descriptions: @@ -1712,7 +1432,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "7 days, 0:40:30" + "9 days, 2:04:56" GET version ----------- @@ -1720,7 +1440,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.3.0.5" + "4.3.0.6" GET vms ------- @@ -1753,8 +1473,8 @@ Get plugin stats:: # curl http://localhost:61208/api/4/wifi [{"key": "ssid", - "quality_level": -64.0, - "quality_link": 46.0, + "quality_level": -55.0, + "quality_link": 55.0, "ssid": "wlp0s20f3"}] Get a specific field:: @@ -1766,8 +1486,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": -64.0, - "quality_link": 46.0, + "quality_level": -55.0, + "quality_link": 55.0, "ssid": "wlp0s20f3"}]} GET all stats @@ -1812,34 +1532,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2024-12-28T13:48:52.665575", 3.6], - ["2024-12-28T13:48:53.777233", 0.8], - ["2024-12-28T13:48:54.794587", 0.8]], - "user": [["2024-12-28T13:48:52.665571", 6.7], - ["2024-12-28T13:48:53.777230", 1.5], - ["2024-12-28T13:48:54.794584", 1.5]]} + {"system": [["2024-12-30T15:13:20.097189", 2.7], + ["2024-12-30T15:13:21.197963", 0.6], + ["2024-12-30T15:13:22.215910", 0.6]], + "user": [["2024-12-30T15:13:20.097185", 4.6], + ["2024-12-30T15:13:21.197960", 1.2], + ["2024-12-30T15:13:22.215906", 1.2]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2024-12-28T13:48:53.777233", 0.8], - ["2024-12-28T13:48:54.794587", 0.8]], - "user": [["2024-12-28T13:48:53.777230", 1.5], - ["2024-12-28T13:48:54.794584", 1.5]]} + {"system": [["2024-12-30T15:13:21.197963", 0.6], + ["2024-12-30T15:13:22.215910", 0.6]], + "user": [["2024-12-30T15:13:21.197960", 1.2], + ["2024-12-30T15:13:22.215906", 1.2]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2024-12-28T13:48:51.512120", 3.6], - ["2024-12-28T13:48:52.665575", 3.6], - ["2024-12-28T13:48:53.777233", 0.8], - ["2024-12-28T13:48:54.794587", 0.8]]} + {"system": [["2024-12-30T15:13:18.930744", 2.7], + ["2024-12-30T15:13:20.097189", 2.7], + ["2024-12-30T15:13:21.197963", 0.6], + ["2024-12-30T15:13:22.215910", 0.6]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2024-12-28T13:48:53.777233", 0.8], - ["2024-12-28T13:48:54.794587", 0.8]]} + {"system": [["2024-12-30T15:13:21.197963", 0.6], + ["2024-12-30T15:13:22.215910", 0.6]]} GET limits (used for thresholds) -------------------------------- diff --git a/glances/__init__.py b/glances/__init__.py index 2f2c3a030..b84df597e 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -19,7 +19,7 @@ # Global name # Version should start and end with a numerical char # See https://packaging.python.org/specifications/core-metadata/#version -__version__ = "4.3.1_dev06" +__version__ = "4.3.0.6" __apiversion__ = '4' __author__ = 'Nicolas Hennion ' __license__ = 'LGPLv3' diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6f45eccf5..1f525a323 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: glances -version: '4.3.0.5+build01' # Put the current stable version+buildXX +version: '4.3.0.6+build01' # Put the current stable version+buildXX summary: Glances an Eye on your system. A top/htop alternative. description: |