diff --git a/NEWS.rst b/NEWS.rst index 166bd6c5c..1bf997569 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -6,6 +6,14 @@ Version 4.3.0.4 =============== +Bug corrected: + +* WebUI errors in 4.3.0.4 on iPad Air (and Browser with low resolution) #3057 + +=============== +Version 4.3.0.4 +=============== + Continuous integration and documentation: * Pin Python version in Ubuntu image to 3.12 diff --git a/docs/api.rst b/docs/api.rst index 778971280..6afc83f3c 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.7665889263153076}, + "timer": 0.47823166847229004}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -169,7 +169,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.7664844989776611}] + "timer": 0.4781160354614258}] 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.7665889263153076}]} + "timer": 0.47823166847229004}]} GET cloud --------- @@ -238,7 +238,26 @@ 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: @@ -259,6 +278,38 @@ 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 -------- @@ -284,19 +335,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 480676778, - "guest": 0.2, - "idle": 93.5, - "interrupts": 340439064, - "iowait": 0.3, + "ctx_switches": 578106892, + "guest": 0.0, + "idle": 89.5, + "interrupts": 401023815, + "iowait": 0.1, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 136760686, + "soft_interrupts": 158761746, "steal": 0.0, "syscalls": 0, - "system": 2.7, - "total": 6.1, - "user": 3.5} + "system": 3.6, + "total": 8.8, + "user": 6.7} Fields descriptions: @@ -329,7 +380,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 6.1} + {"total": 8.8} GET diskio ---------- @@ -339,14 +390,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 10219117056, - "read_count": 448125, - "write_bytes": 361863476224, - "write_count": 4569207}, + "read_bytes": 10894701056, + "read_count": 479783, + "write_bytes": 367306499072, + "write_count": 4914018}, {"disk_name": "nvme0n1p1", "key": "disk_name", - "read_bytes": 19625984, - "read_count": 1272, + "read_bytes": 20215808, + "read_count": 1350, "write_bytes": 5120, "write_count": 3}] @@ -382,10 +433,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": 10219117056, - "read_count": 448125, - "write_bytes": 361863476224, - "write_count": 4569207}]} + "read_bytes": 10894701056, + "read_count": 479783, + "write_bytes": 367306499072, + "write_count": 4914018}]} GET folders ----------- @@ -412,13 +463,13 @@ Get plugin stats:: # curl http://localhost:61208/api/4/fs [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 843681222656, + "free": 843788865536, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "percent": 11.4, "size": 1003736440832, - "used": 108992712704}, + "used": 108885069824}, {"device_name": "zsfpool", "free": 41811968, "fs_type": "zfs", @@ -447,13 +498,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": 843681222656, + "free": 843788865536, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "percent": 11.4, "size": 1003736440832, - "used": 108992712704}]} + "used": 108885069824}]} GET gpu ------- @@ -526,7 +577,10 @@ GET load Get plugin stats:: # curl http://localhost:61208/api/4/load - {"cpucore": 16, "min1": 1.02490234375, "min15": 0.857421875, "min5": 0.953125} + {"cpucore": 16, + "min1": 3.71630859375, + "min15": 2.1337890625, + "min5": 2.75146484375} Fields descriptions: @@ -538,7 +592,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 1.02490234375} + {"min1": 3.71630859375} GET mem ------- @@ -546,16 +600,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 6004862976, - "available": 6386589696, - "buffers": 245743616, - "cached": 6980665344, - "free": 6386589696, - "inactive": 7792513024, - "percent": 61.1, - "shared": 859377664, + {"active": 7170293760, + "available": 5814927360, + "buffers": 314990592, + "cached": 5366272000, + "free": 5814927360, + "inactive": 5595136000, + "percent": 64.6, + "shared": 882409472, "total": 16422453248, - "used": 10035863552} + "used": 10607525888} Fields descriptions: @@ -582,13 +636,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 2547773440, - "percent": 40.7, - "sin": 136249344, - "sout": 1890574336, + {"free": 2326523904, + "percent": 45.8, + "sin": 172572672, + "sout": 2141626368, "time_since_update": 1, "total": 4294963200, - "used": 1747189760} + "used": 1968439296} Fields descriptions: @@ -613,26 +667,26 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 7385600494, + "bytes_all_gauge": 7836044280, "bytes_recv": 0, - "bytes_recv_gauge": 7030018451, + "bytes_recv_gauge": 7421870620, "bytes_sent": 0, - "bytes_sent_gauge": 355582043, + "bytes_sent_gauge": 414173660, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.7699084281921387}, + "time_since_update": 0.4814465045928955}, {"alias": None, "bytes_all": 0, - "bytes_all_gauge": 35227188, + "bytes_all_gauge": 36927150, "bytes_recv": 0, - "bytes_recv_gauge": 6344095, + "bytes_recv_gauge": 6364482, "bytes_sent": 0, - "bytes_sent_gauge": 28883093, + "bytes_sent_gauge": 30562668, "interface_name": "mpqemubr0", "key": "interface_name", "speed": 10485760000, - "time_since_update": 0.7699084281921387}] + "time_since_update": 0.4814465045928955}] Fields descriptions: @@ -661,15 +715,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": 7385600494, + "bytes_all_gauge": 7836044280, "bytes_recv": 0, - "bytes_recv_gauge": 7030018451, + "bytes_recv_gauge": 7421870620, "bytes_sent": 0, - "bytes_sent_gauge": 355582043, + "bytes_sent_gauge": 414173660, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.7699084281921387}]} + "time_since_update": 0.4814465045928955}]} GET now ------- @@ -677,7 +731,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2024-12-28 09:06:47 CET", "iso": "2024-12-28T09:06:47+01:00"} + {"custom": "2024-12-28 13:48:51 CET", "iso": "2024-12-28T13:48:51+01:00"} Fields descriptions: @@ -687,7 +741,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2024-12-28T09:06:47+01:00"} + {"iso": "2024-12-28T13:48:51+01:00"} GET percpu ---------- @@ -699,7 +753,7 @@ Get plugin stats:: "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 46.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -708,13 +762,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, + "total": 54.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 36.0, + "idle": 37.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -722,8 +776,8 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 8.0, - "total": 64.0, + "system": 10.0, + "total": 63.0, "user": 0.0}] Fields descriptions: @@ -760,7 +814,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.006402, + "status": 0.006359, "timeout": 3}] Fields descriptions: @@ -788,7 +842,7 @@ Get a specific item when field matches the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.006402, + "status": 0.006359, "timeout": 3}]} GET processcount @@ -797,7 +851,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 1, "sleeping": 425, "thread": 2149, "total": 567} + {"pid_max": 0, "running": 1, "sleeping": 437, "thread": 2215, "total": 579} Fields descriptions: @@ -810,7 +864,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 567} + {"total": 579} GET processlist --------------- @@ -849,22 +903,22 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 94.57, - "user": 454.34}, + "system": 106.19, + "user": 496.18}, "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": 934637568, + "rss": 887017472, "shared": 4194304, "text": 6172672, "vms": 4359106560}, - "memory_percent": 5.691217712029866, + "memory_percent": 5.401248270309583, "name": "qemu-system-x86_64", "nice": 0, - "num_threads": 5, + "num_threads": 4, "pid": 2939, "status": "S", "time_since_update": 1, @@ -875,73 +929,73 @@ Get plugin stats:: "--node-ipc", "--clientProcessId=11100"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 0.51, - "children_user": 2.66, + "cpu_times": {"children_system": 0.69, + "children_user": 3.55, "iowait": 0.0, - "system": 81.24, - "user": 1306.57}, + "system": 94.7, + "user": 1508.02}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [82799616, - 1200128, + "io_counters": [90528768, + 1916928, 0, 0, 0, - 48252928, - 3371008, + 49804288, + 3407872, 0, 0, 0, - 491828224, - 225730560, + 516501504, + 261136384, 0, 0, 0, - 14938112, + 16429056, 0, 0, 0, 0, - 69419008, + 15295488, 0, 0, 0, 0, - 2304000, + 69611520, 0, 0, 0, 0, - 118526976, - 357249024, + 121771008, + 427237376, 0, 0, 0, - 2487296, + 2814976, 0, 0, 0, 0, - 7642112, + 7654400, 0, 0, 0, 0, - 52082688, + 54331392, 554795008, 0, 0, 0, - 4978688, + 5175296, 0, 0, 0, 0, - 240640, + 1063936, 0, 0, 0, 0, - 36348928, + 39179264, 0, 0, 0, @@ -951,13 +1005,13 @@ Get plugin stats:: 0, 0, 0, - 5557248, - 6262784, + 646144, 0, 0, 0, - 646144, 0, + 17234944, + 6737920, 0, 0, 0, @@ -976,18 +1030,18 @@ Get plugin stats:: 0, 0, 0, - 845824, + 870400, 0, 0, 0, 0, - 757760, + 778240, 0, 0, 0, 0, - 6018048, - 9609216, + 6153216, + 11186176, 0, 0, 0, @@ -1002,14 +1056,14 @@ Get plugin stats:: 0, 0], "key": "pid", - "memory_info": {"data": 1250136064, + "memory_info": {"data": 1280114688, "dirty": 0, "lib": 0, - "rss": 852054016, - "shared": 66584576, + "rss": 877002752, + "shared": 63176704, "text": 132239360, "vms": 1219821342720}, - "memory_percent": 5.188347947367529, + "memory_percent": 5.340266394771471, "name": "code", "nice": 0, "num_threads": 14, @@ -1046,21 +1100,21 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 94.57, - "user": 454.34}, + "system": 106.19, + "user": 496.18}, "io_counters": [0, 0, 0, 0, 0], "memory_info": {"data": 1395154944, "dirty": 0, "lib": 0, - "rss": 934637568, + "rss": 887017472, "shared": 4194304, "text": 6172672, "vms": 4359106560}, - "memory_percent": 5.691217712029866, + "memory_percent": 5.401248270309583, "name": "qemu-system-x86_64", "nice": 0, "nprocs": 1, - "num_threads": 5, + "num_threads": 4, "pid": "_", "status": "S", "time_since_update": 1, @@ -1069,8 +1123,8 @@ Get plugin stats:: 11003, 11100, 17962, - 11819, 293018, + 11819, 10919, 293017, 187970, @@ -1079,8 +1133,8 @@ Get plugin stats:: 308704, 11099, 11630, - 293033, 826951, + 293033, 11056, 470255, 826952, @@ -1091,71 +1145,71 @@ Get plugin stats:: 10921], "cmdline": ["code"], "cpu_percent": 0, - "cpu_times": {"children_system": 2804.9300000000003, - "children_user": 2036.3200000000002, - "system": 2028.9799999999993, - "user": 10818.72}, - "io_counters": [82799616, - 1200128, + "cpu_times": {"children_system": 3710.2200000000007, + "children_user": 2738.5200000000004, + "system": 2419.2499999999995, + "user": 12487.670000000004}, + "io_counters": [90528768, + 1916928, 0, 0, 0, - 48252928, - 3371008, + 49804288, + 3407872, 0, 0, 0, - 491828224, - 225730560, + 516501504, + 261136384, 0, 0, 0, - 14938112, + 16429056, 0, 0, 0, 0, - 69419008, + 15295488, 0, 0, 0, 0, - 2304000, + 69611520, 0, 0, 0, 0, - 118526976, - 357249024, + 121771008, + 427237376, 0, 0, 0, - 2487296, + 2814976, 0, 0, 0, 0, - 7642112, + 7654400, 0, 0, 0, 0, - 52082688, + 54331392, 554795008, 0, 0, 0, - 4978688, + 5175296, 0, 0, 0, 0, - 240640, + 1063936, 0, 0, 0, 0, - 36348928, + 39179264, 0, 0, 0, @@ -1165,13 +1219,13 @@ Get plugin stats:: 0, 0, 0, - 5557248, - 6262784, + 646144, 0, 0, 0, - 646144, 0, + 17234944, + 6737920, 0, 0, 0, @@ -1190,18 +1244,18 @@ Get plugin stats:: 0, 0, 0, - 845824, + 870400, 0, 0, 0, 0, - 757760, + 778240, 0, 0, 0, 0, - 6018048, - 9609216, + 6153216, + 11186176, 0, 0, 0, @@ -1215,12 +1269,12 @@ Get plugin stats:: 0, 0, 0], - "memory_info": {"data": 7815016448, - "rss": 4703137792, - "shared": 1624358912, + "memory_info": {"data": 7970824192, + "rss": 4671074304, + "shared": 1538621440, "text": 3173744640, - "vms": 24468857602048}, - "memory_percent": 28.638460533128743, + "vms": 24468864196608}, + "memory_percent": 28.443218765557233, "name": "code", "nice": 0, "nprocs": 24, @@ -1260,19 +1314,19 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/4/quicklook - {"cpu": 6.1, + {"cpu": 8.8, "cpu_hz": 4475000000.0, - "cpu_hz_current": 634959125.0, + "cpu_hz_current": 743404187.5000001, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 5.4, - "mem": 61.1, + "load": 13.3, + "mem": 64.6, "percpu": [{"cpu_number": 0, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 46.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1281,13 +1335,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, + "total": 54.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 36.0, + "idle": 37.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1295,8 +1349,8 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 8.0, - "total": 64.0, + "system": 10.0, + "total": 63.0, "user": 0.0}, {"cpu_number": 2, "dpc": None, @@ -1312,12 +1366,12 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 56.0, - "user": 0.0}, + "user": 3.0}, {"cpu_number": 3, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 47.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1326,13 +1380,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, + "total": 53.0, "user": 0.0}, {"cpu_number": 4, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 38.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1340,14 +1394,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 56.0, - "user": 0.0}, + "system": 7.0, + "total": 62.0, + "user": 2.0}, {"cpu_number": 5, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 45.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1356,43 +1410,43 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, - "user": 0.0}, + "total": 55.0, + "user": 2.0}, {"cpu_number": 6, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 16.0, + "idle": 24.0, "interrupt": None, - "iowait": 1.0, + "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 15.0, - "total": 84.0, + "system": 9.0, + "total": 76.0, "user": 12.0}, {"cpu_number": 7, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 41.0, + "idle": 35.0, "interrupt": None, - "iowait": 0.0, + "iowait": 2.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 4.0, - "total": 59.0, - "user": 0.0}, + "system": 8.0, + "total": 65.0, + "user": 2.0}, {"cpu_number": 8, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 43.0, + "idle": 42.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1400,14 +1454,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 57.0, - "user": 0.0}, + "system": 3.0, + "total": 58.0, + "user": 1.0}, {"cpu_number": 9, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 47.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1416,13 +1470,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, + "total": 53.0, "user": 0.0}, {"cpu_number": 10, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 45.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1430,14 +1484,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 56.0, - "user": 0.0}, + "system": 0.0, + "total": 55.0, + "user": 2.0}, {"cpu_number": 11, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 47.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1446,13 +1500,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, + "total": 53.0, "user": 0.0}, {"cpu_number": 12, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 43.0, + "idle": 46.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1461,13 +1515,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 1.0, - "total": 57.0, - "user": 0.0}, + "total": 54.0, + "user": 1.0}, {"cpu_number": 13, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 46.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1475,14 +1529,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 56.0, + "system": 0.0, + "total": 54.0, "user": 0.0}, {"cpu_number": 14, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 46.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1491,13 +1545,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, + "total": 54.0, "user": 1.0}, {"cpu_number": 15, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 44.0, + "idle": 46.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1506,9 +1560,9 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 56.0, + "total": 54.0, "user": 0.0}], - "swap": 40.7} + "swap": 45.8} Fields descriptions: @@ -1546,14 +1600,14 @@ Get plugin stats:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 27, + "value": 35, "warning": 0}, {"critical": None, "key": "label", "label": "Ambient 3", "type": "temperature_core", "unit": "C", - "value": 22, + "value": 29, "warning": 0}] Fields descriptions: @@ -1614,7 +1668,7 @@ Get a specific item when field matches the given value:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 27, + "value": 35, "warning": 0}]} GET smart @@ -1658,7 +1712,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "6 days, 19:58:28" + "7 days, 0:40:30" GET version ----------- @@ -1666,7 +1720,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.3.0.4" + "4.3.0.5" GET vms ------- @@ -1674,20 +1728,7 @@ GET vms Get plugin stats:: # curl http://localhost:61208/api/4/vms - [{"cpu_count": 1, - "engine": "multipass", - "engine_version": "1.15.0", - "id": "78547d336e4c8f98864fd3088a7ab393d7ab970885263578404bad7fc7c5e5d8", - "ipv4": "10.160.166.56", - "key": "name", - "load_15min": 0, - "load_1min": 0, - "load_5min": 0.01, - "memory_total": 1002471424, - "memory_usage": 354496512, - "name": "upstanding-sparrow", - "release": "Ubuntu 24.04.1 LTS", - "status": "running"}] + {} Fields descriptions: @@ -1705,29 +1746,6 @@ Fields descriptions: * **engine**: VM engine name (only Mutlipass is currently supported) (unit is *None*) * **engine_version**: VM engine version (unit is *None*) -Get a specific field:: - - # curl http://localhost:61208/api/4/vms/name - {"name": ["upstanding-sparrow"]} - -Get a specific item when field matches the given value:: - - # curl http://localhost:61208/api/4/vms/name/value/upstanding-sparrow - {"upstanding-sparrow": [{"cpu_count": 1, - "engine": "multipass", - "engine_version": "1.15.0", - "id": "78547d336e4c8f98864fd3088a7ab393d7ab970885263578404bad7fc7c5e5d8", - "ipv4": "10.160.166.56", - "key": "name", - "load_15min": 0, - "load_1min": 0, - "load_5min": 0.01, - "memory_total": 1002471424, - "memory_usage": 354496512, - "name": "upstanding-sparrow", - "release": "Ubuntu 24.04.1 LTS", - "status": "running"}]} - GET wifi -------- @@ -1735,8 +1753,8 @@ Get plugin stats:: # curl http://localhost:61208/api/4/wifi [{"key": "ssid", - "quality_level": -68.0, - "quality_link": 42.0, + "quality_level": -64.0, + "quality_link": 46.0, "ssid": "wlp0s20f3"}] Get a specific field:: @@ -1748,8 +1766,8 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/wifi/ssid/value/wlp0s20f3 {"wlp0s20f3": [{"key": "ssid", - "quality_level": -68.0, - "quality_link": 42.0, + "quality_level": -64.0, + "quality_link": 46.0, "ssid": "wlp0s20f3"}]} GET all stats @@ -1794,34 +1812,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2024-12-28T09:06:48.521883", 2.7], - ["2024-12-28T09:06:49.889136", 1.4], - ["2024-12-28T09:06:50.912871", 1.4]], - "user": [["2024-12-28T09:06:48.521880", 3.5], - ["2024-12-28T09:06:49.889133", 1.9], - ["2024-12-28T09:06:50.912867", 1.9]]} + {"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]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2024-12-28T09:06:49.889136", 1.4], - ["2024-12-28T09:06:50.912871", 1.4]], - "user": [["2024-12-28T09:06:49.889133", 1.9], - ["2024-12-28T09:06:50.912867", 1.9]]} + {"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]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2024-12-28T09:06:47.350317", 2.7], - ["2024-12-28T09:06:48.521883", 2.7], - ["2024-12-28T09:06:49.889136", 1.4], - ["2024-12-28T09:06:50.912871", 1.4]]} + {"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]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2024-12-28T09:06:49.889136", 1.4], - ["2024-12-28T09:06:50.912871", 1.4]]} + {"system": [["2024-12-28T13:48:53.777233", 0.8], + ["2024-12-28T13:48:54.794587", 0.8]]} GET limits (used for thresholds) -------------------------------- @@ -2015,10 +2033,6 @@ All limits/thresholds:: "system_refresh": 60}, "uptime": {"history_size": 1200.0}, "version": {"history_size": 1200.0}, - "vms": {"history_size": 1200.0, - "vms_all": ["False"], - "vms_disable": ["False"], - "vms_max_name_size": 20.0}, "wifi": {"history_size": 1200.0, "wifi_careful": -65.0, "wifi_critical": -85.0, diff --git a/docs/man/glances.1 b/docs/man/glances.1 index af5fafd0f..d4f5715e2 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" "Dec 28, 2024" "4.3.0.4" "Glances" +.TH "GLANCES" "1" "Dec 28, 2024" "4.3.0.5" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS diff --git a/glances/__init__.py b/glances/__init__.py index dc82fe609..ee2fa5c85 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_dev03" +__version__ = "4.3.0.5" __apiversion__ = '4' __author__ = 'Nicolas Hennion ' __license__ = 'LGPLv3' diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 62e5186b3..6f45eccf5 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: glances -version: '4.3.0.4+build02' # Put the current stable version+buildXX +version: '4.3.0.5+build01' # Put the current stable version+buildXX summary: Glances an Eye on your system. A top/htop alternative. description: |