From 1341ed3d6832762f16bfadb08e886efd17edeccb Mon Sep 17 00:00:00 2001 From: nicolargo Date: Fri, 20 Feb 2026 08:42:10 +0100 Subject: [PATCH] GPU monitoring (INTEL) #994 --- docs/aoa/gpu.rst | 6 +- docs/api/python.rst | 540 +++++------ docs/api/restful.rst | 863 ++++++++++-------- docs/man/glances.1 | 2 +- .../static/js/components/plugin-gpu.vue | 162 ++-- glances/outputs/static/package-lock.json | 853 +++++++++++------ glances/outputs/static/package.json | 18 +- glances/outputs/static/public/browser.js | Bin 518677 -> 519699 bytes glances/outputs/static/public/glances.js | Bin 629937 -> 631125 bytes glances/plugins/gpu/__init__.py | 4 + 10 files changed, 1430 insertions(+), 1018 deletions(-) diff --git a/docs/aoa/gpu.rst b/docs/aoa/gpu.rst index 15f1715a..6f7d9f1d 100644 --- a/docs/aoa/gpu.rst +++ b/docs/aoa/gpu.rst @@ -11,9 +11,9 @@ For the moment, following GPU are supported: The GPU stats are shown as a percentage of value and for the configured refresh time. It displays: -- GPU usage or frequency -- memory consumption -- temperature +- GPU usage (NVidia and AMD) or frequency (Intel) +- memory consumption (NVidia and AMD) +- temperature (if available) .. image:: ../_static/gpu.png diff --git a/docs/api/python.rst b/docs/api/python.rst index 587108aa..dd8ff852 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': 457737318, + 'ctx_switches': 570812343, 'guest': 0.0, - 'idle': 91.2, - 'interrupts': 374880645, - 'iowait': 0.5, + 'idle': 91.7, + 'interrupts': 476851916, + 'iowait': 0.6, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 171791518, + 'soft_interrupts': 215734885, 'steal': 0.0, 'syscalls': 0, - 'system': 5.3, - 'total': 6.9, + 'system': 4.6, + 'total': 8.7, 'user': 2.9} >>> gl.cpu.get("total") - 6.9 + 8.7 >>> gl.mem.get("used") - 11354140680 + 12535353352 >>> gl.auto_unit(gl.mem.get("used")) - 10.6G + 11.7G If the stats return a list of items (like network interfaces or processes), you can access them by their name: @@ -48,22 +48,22 @@ access them by their name: .. code-block:: python >>> gl.network.keys() - ['wlp0s20f3', 'vethd0fe83d', 'veth55973b0', 'veth3a3dd57', 'ipv6leakintrf0', 'proton0'] + ['wlp0s20f3', 'vethd0fe83d', 'veth55973b0', 'veth3a3dd57'] >>> gl.network["wlp0s20f3"] {'alias': None, - 'bytes_all': 2672, - 'bytes_all_gauge': 8872391810, - 'bytes_all_rate_per_sec': 7706.0, - 'bytes_recv': 2040, - 'bytes_recv_gauge': 8295853870, - 'bytes_recv_rate_per_sec': 5883.0, - 'bytes_sent': 632, - 'bytes_sent_gauge': 576537940, - 'bytes_sent_rate_per_sec': 1822.0, + 'bytes_all': 2042768, + 'bytes_all_gauge': 10847490560, + 'bytes_all_rate_per_sec': 5692456.0, + 'bytes_recv': 2029610, + 'bytes_recv_gauge': 10096628093, + 'bytes_recv_rate_per_sec': 5655790.0, + 'bytes_sent': 13158, + 'bytes_sent_gauge': 750862467, + 'bytes_sent_rate_per_sec': 36666.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.3467388153076172} + 'time_since_update': 0.3588552474975586} Init Glances Python API ----------------------- @@ -95,19 +95,32 @@ Alert stats: >>> type(gl.alert) >>> gl.alert - [{'avg': 98.4944329208688, - 'begin': 1771361839, + [{'avg': 99.07979877452733, + 'begin': 1771573297, 'count': 2, 'desc': '', 'end': -1, 'global_msg': 'High swap (paging) usage', - 'max': 98.4945282883914, - 'min': 98.49433755334621, + 'max': 99.07979877452733, + 'min': 99.07979877452733, 'sort': 'memory_percent', 'state': 'CRITICAL', - 'sum': 196.9888658417376, - 'top': ['cloudcode_cli', 'code', 'Isolated Web Co'], - 'type': 'MEMSWAP'}] + 'sum': 198.15959754905467, + 'top': ['cloudcode_cli', 'code', 'code'], + 'type': 'MEMSWAP'}, + {'avg': 76.28928195060519, + 'begin': 1771573297, + 'count': 2, + 'desc': '', + 'end': -1, + 'global_msg': 'High swap (paging) usage', + 'max': 76.32882573184365, + 'min': 76.24973816936672, + 'sort': 'memory_percent', + 'state': 'WARNING', + 'sum': 152.57856390121037, + 'top': [], + 'type': 'MEM'}] Alert fields description: @@ -148,7 +161,7 @@ Ports stats: 'port': 0, 'refresh': 30, 'rtt_warning': None, - 'status': 0.00518, + 'status': 0.02969, 'timeout': 3}] Ports fields description: @@ -189,14 +202,14 @@ Diskio stats: >>> gl.diskio.get("nvme0n1") {'disk_name': 'nvme0n1', 'key': 'disk_name', - 'read_bytes': 27377293824, - 'read_count': 1391423, + 'read_bytes': 30535420416, + 'read_count': 1541958, 'read_latency': 0, - 'read_time': 378009, - 'write_bytes': 44693361664, - 'write_count': 3478651, + 'read_time': 451365, + 'write_bytes': 55614190592, + 'write_count': 4151282, 'write_latency': 0, - 'write_time': 2983502} + 'write_time': 3692868} Diskio fields description: @@ -307,11 +320,11 @@ Processcount stats: >>> type(gl.processcount) >>> gl.processcount - {'pid_max': 0, 'running': 1, 'sleeping': 441, 'thread': 2360, 'total': 594} + {'pid_max': 0, 'running': 3, 'sleeping': 443, 'thread': 2401, 'total': 598} >>> gl.processcount.keys() ['total', 'running', 'sleeping', 'thread', 'pid_max'] >>> gl.processcount.get("total") - 594 + 598 Processcount fields description: @@ -338,7 +351,17 @@ Gpu stats: >>> type(gl.gpu) >>> gl.gpu - [] + Return a dict of dict with key= + >>> gl.gpu.keys() + ['intel0', 'intel1'] + >>> gl.gpu.get("intel0") + {'fan_speed': None, + 'gpu_id': 'intel0', + 'key': 'gpu_id', + 'mem': None, + 'name': 'UHD Graphics', + 'proc': 0, + 'temperature': None} Gpu fields description: @@ -384,7 +407,7 @@ Percpu stats: 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 47.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -392,9 +415,9 @@ Percpu stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 11.0, - 'total': 56.0, - 'user': 1.0} + 'system': 10.0, + 'total': 53.0, + 'user': 2.0} Percpu fields description: @@ -480,22 +503,22 @@ Network stats: >>> gl.network Return a dict of dict with key= >>> gl.network.keys() - ['wlp0s20f3', 'vethd0fe83d', 'veth55973b0', 'veth3a3dd57', 'ipv6leakintrf0', 'proton0'] + ['wlp0s20f3', 'vethd0fe83d', 'veth55973b0', 'veth3a3dd57'] >>> gl.network.get("wlp0s20f3") {'alias': None, - 'bytes_all': 0, - 'bytes_all_gauge': 8872391810, - 'bytes_all_rate_per_sec': 0.0, - 'bytes_recv': 0, - 'bytes_recv_gauge': 8295853870, - 'bytes_recv_rate_per_sec': 0.0, - 'bytes_sent': 0, - 'bytes_sent_gauge': 576537940, - 'bytes_sent_rate_per_sec': 0.0, + 'bytes_all': 34994, + 'bytes_all_gauge': 10847525554, + 'bytes_all_rate_per_sec': 8974897.0, + 'bytes_recv': 34822, + 'bytes_recv_gauge': 10096662915, + 'bytes_recv_rate_per_sec': 8930784.0, + 'bytes_sent': 172, + 'bytes_sent_gauge': 750862639, + 'bytes_sent_rate_per_sec': 44112.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.003910541534423828} + 'time_since_update': 0.003899097442626953} Network fields description: @@ -536,23 +559,23 @@ Cpu stats: >>> gl.cpu {'cpucore': 16, - 'ctx_switches': 457737318, + 'ctx_switches': 570812343, 'guest': 0.0, - 'idle': 91.2, - 'interrupts': 374880645, - 'iowait': 0.5, + 'idle': 91.7, + 'interrupts': 476851916, + 'iowait': 0.6, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 171791518, + 'soft_interrupts': 215734885, 'steal': 0.0, 'syscalls': 0, - 'system': 5.3, - 'total': 6.9, + 'system': 4.6, + 'total': 8.7, 'user': 2.9} >>> gl.cpu.keys() ['total', 'user', 'nice', 'system', 'idle', 'iowait', 'irq', 'steal', 'guest', 'ctx_switches', 'interrupts', 'soft_interrupts', 'syscalls', 'cpucore'] >>> gl.cpu.get("total") - 6.9 + 8.7 Cpu fields description: @@ -624,7 +647,7 @@ Amps stats: 'refresh': 3.0, 'regex': True, 'result': None, - 'timer': 0.3516852855682373} + 'timer': 0.3509867191314697} Amps fields description: @@ -655,7 +678,7 @@ Processlist stats: >>> gl.processlist Return a dict of dict with key= >>> gl.processlist.keys() - [155925, 154788, 7049, 7434, 155409, 6717, 7042, 7087, 528812, 18199, 489345, 628877, 5426, 457245, 155970, 176319, 6996, 7057, 7071, 628827, 6012, 3645, 18081, 534025, 486468, 18294, 164199, 637239, 223764, 155279, 626658, 626956, 626729, 7007, 18234, 154774, 619665, 361051, 200078, 155485, 6450, 7827, 18378, 730, 6968, 637236, 361494, 265511, 265512, 11716, 2742, 361495, 155883, 106219, 5843, 6010, 18153, 155280, 155282, 5118, 6489, 3089, 5544, 5721, 6964, 5630, 155277, 361501, 5553, 6066, 6462, 75502, 8333, 5591, 2837, 5589, 5905, 18084, 265590, 1, 186033, 5377, 5536, 6123, 186041, 155281, 5116, 5749, 6000, 6484, 2727, 16367, 2769, 5254, 2733, 18083, 5580, 5112, 5613, 5658, 5095, 5588, 5584, 5748, 5606, 440506, 4976, 3126, 7194, 5120, 2771, 2772, 361031, 2968, 5597, 360361, 440474, 3592, 5577, 461315, 5979, 2577, 3713, 279126, 3083, 5611, 360381, 24702, 2942, 265607, 24692, 2840, 788, 5781, 5586, 2746, 5946, 2730, 2944, 361499, 5186, 10091, 5361, 361498, 106199, 5412, 5852, 5861, 2723, 5648, 5756, 5608, 5130, 5373, 2755, 5599, 5747, 5517, 5578, 5828, 5869, 5605, 361500, 5811, 440513, 5190, 5240, 2751, 3651, 2578, 5969, 634787, 5343, 619137, 2756, 2576, 2722, 3572, 5347, 2738, 2870, 5425, 361497, 3573, 2721, 18898, 5113, 2575, 3814, 6491, 9933, 2726, 637232, 2748, 440516, 155063, 3652, 2587, 3679, 5197, 620540, 3666, 637235, 360312, 360290, 361011, 360319, 106171, 106178, 360298, 360306, 361004, 360326, 6813, 3654, 5102, 3266, 3072, 2585, 3070, 3663, 18098, 2825, 3588, 3267, 155041, 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, 762, 763, 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, 3687, 3740, 3741, 3742, 3743, 3744, 3745, 3746, 3747, 4045, 440498, 536112, 580837, 587112, 597152, 606224, 607761, 607864, 613677, 618623, 618909, 618927, 618928, 618933, 618934, 618936, 618942, 618948, 618951, 618958, 618966, 618969, 618971, 619301, 619873, 619882, 619984, 623036, 624920, 625217, 625218, 625219, 625220, 626309, 626689, 626690, 626785, 626857, 626869, 626904, 627171, 627551, 627770, 629128, 629342, 629677, 629802, 629868, 630184, 631242, 631243, 631776, 631779, 631795, 632343, 632663, 632677, 632898, 634440, 634441, 634457, 634482, 634483, 635887, 636411, 636899, 636900] + [155925, 155409, 154788, 7434, 6717, 18199, 7049, 7087, 7042, 528812, 785392, 5426, 781635, 628877, 155970, 3645, 176319, 7057, 6996, 7071, 785393, 785391, 6012, 18081, 486468, 785431, 628827, 18294, 785442, 164199, 801745, 223764, 696884, 155279, 18234, 797993, 800554, 800956, 154774, 7007, 781900, 155280, 155282, 200078, 361051, 6450, 155485, 5843, 18378, 7827, 6968, 801742, 361494, 265511, 6489, 361495, 265512, 155883, 11716, 106219, 6010, 730, 5630, 18153, 2742, 3089, 6964, 5118, 155277, 5721, 5544, 5553, 361501, 5589, 6066, 18084, 8333, 75502, 6462, 5591, 2837, 155281, 1, 5905, 6123, 5536, 5749, 18083, 5377, 186041, 186033, 5095, 2733, 5116, 6484, 2769, 2727, 265590, 6000, 16367, 5580, 5112, 5254, 5613, 5658, 7194, 2968, 5588, 3126, 5748, 5584, 2577, 4976, 440506, 440474, 5606, 461315, 5120, 696683, 5597, 5577, 788, 2840, 3083, 265607, 3592, 5979, 2771, 2772, 361499, 740014, 3713, 10091, 361498, 360381, 5586, 2723, 799848, 2942, 2730, 2746, 24702, 5130, 2755, 5611, 279126, 2944, 5186, 24692, 5946, 360361, 5861, 5648, 106199, 5361, 5781, 361031, 3651, 361500, 5412, 5811, 2578, 5852, 5599, 5608, 696684, 5756, 5828, 5517, 5869, 5605, 5578, 440513, 2756, 5373, 5190, 2576, 5240, 2751, 5747, 5969, 2722, 780590, 5343, 2738, 2870, 5425, 5347, 2721, 18898, 361497, 5113, 2575, 3814, 6491, 2726, 801738, 9933, 2748, 155063, 440516, 3652, 2587, 790223, 5197, 3679, 801741, 3666, 106171, 106178, 360290, 360298, 360312, 360319, 360306, 360326, 361004, 361011, 696359, 3654, 3266, 5102, 6813, 696355, 2585, 3663, 18098, 2825, 696692, 3267, 155041, 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, 762, 763, 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, 3687, 3740, 3741, 3742, 3743, 3744, 3745, 3746, 3747, 4045, 440498, 697103, 763427, 767270, 769247, 771156, 773998, 774002, 774115, 775226, 775842, 776245, 777048, 777049, 777122, 780211, 780411, 780413, 780420, 780421, 780424, 780425, 780427, 780429, 780431, 780436, 780438, 780443, 780444, 780452, 780458, 780776, 781146, 782695, 783712, 786261, 787191, 787430, 787449, 788045, 789170, 790884, 792150, 793942, 794052, 794626, 794627, 795510, 796098, 796443, 796589, 797086, 797548, 797670, 797724, 798054, 798057, 798372, 798484, 798679, 798904, 800768, 801008, 801583, 801772, 801773] >>> gl.processlist.get("155925") {'cmdline': ['/home/nicolargo/.cache/cloud-code/cloudcode_cli/cloudcode_cli/eda53b3c/cloudcode_cli', 'duet', @@ -665,25 +688,25 @@ Processlist stats: 'cpu_times': {'children_system': 0.0, 'children_user': 0.0, 'iowait': 0.0, - 'system': 14.66, - 'user': 266.0}, + 'system': 25.02, + 'user': 380.6}, 'gids': {'effective': 1000, 'real': 1000, 'saved': 1000}, - 'io_counters': [267788288, 0, 267788288, 0, 1], + 'io_counters': [385667072, 0, 385667072, 0, 1], 'key': 'pid', - 'memory_info': {'data': 3939524608, + 'memory_info': {'data': 3940851712, 'dirty': 0, 'lib': 0, - 'rss': 1143791616, - 'shared': 16302080, + 'rss': 1556324352, + 'shared': 13406208, 'text': 99938304, - 'vms': 5786710016}, - 'memory_percent': 6.964643794207729, + 'vms': 5788037120}, + 'memory_percent': 9.47659048056107, 'name': 'cloudcode_cli', 'nice': 0, 'num_threads': 21, 'pid': 155925, 'status': 'S', - 'time_since_update': 0.6645684242248535, + 'time_since_update': 0.7017121315002441, 'username': 'nicolargo'} Processlist fields description: @@ -769,11 +792,14 @@ Load stats: >>> type(gl.load) >>> gl.load - {'cpucore': 16, 'min1': 0.46533203125, 'min15': 0.744140625, 'min5': 0.71484375} + {'cpucore': 16, + 'min1': 1.37255859375, + 'min15': 1.40478515625, + 'min5': 1.6005859375} >>> gl.load.keys() ['min1', 'min5', 'min15', 'cpucore'] >>> gl.load.get("min1") - 0.46533203125 + 1.37255859375 Load fields description: @@ -812,7 +838,7 @@ Sensors stats: 'label': 'Ambient', 'type': 'temperature_core', 'unit': 'C', - 'value': 38, + 'value': 37, 'warning': 0} Sensors fields description: @@ -850,7 +876,7 @@ Uptime stats: >>> type(gl.uptime) >>> gl.uptime - '19 days, 0:00:48' + '21 days, 10:45:04' Uptime limits: @@ -869,11 +895,11 @@ Now stats: >>> type(gl.now) >>> gl.now - {'custom': '2026-02-17 21:57:19 CET', 'iso': '2026-02-17T21:57:19+01:00'} + {'custom': '2026-02-20 08:41:37 CET', 'iso': '2026-02-20T08:41:37+01:00'} >>> gl.now.keys() ['iso', 'custom'] >>> gl.now.get("iso") - '2026-02-17T21:57:19+01:00' + '2026-02-20T08:41:37+01:00' Now fields description: @@ -902,14 +928,14 @@ Fs stats: ['/', '/zsfpool'] >>> gl.fs.get("/") {'device_name': '/dev/mapper/ubuntu--vg-ubuntu--lv', - 'free': 572585947136, + 'free': 569419173888, 'fs_type': 'ext4', 'key': 'mnt_point', 'mnt_point': '/', 'options': 'rw,relatime', - 'percent': 39.9, + 'percent': 40.2, 'size': 1003736440832, - 'used': 380087988224} + 'used': 383254761472} Fs fields description: @@ -949,8 +975,8 @@ Wifi stats: ['wlp0s20f3'] >>> gl.wifi.get("wlp0s20f3") {'key': 'ssid', - 'quality_level': -74.0, - 'quality_link': 36.0, + 'quality_level': -64.0, + 'quality_link': 46.0, 'ssid': 'wlp0s20f3'} Wifi limits: @@ -974,11 +1000,11 @@ Ip stats: >>> type(gl.ip) >>> gl.ip - {'address': '10.2.0.2', 'mask': '255.255.255.255', 'mask_cidr': 32} + {'address': '172.17.0.1', 'mask': '255.255.0.0', 'mask_cidr': 16} >>> gl.ip.keys() ['address', 'mask', 'mask_cidr'] >>> gl.ip.get("address") - '10.2.0.2' + '172.17.0.1' Ip fields description: @@ -1012,7 +1038,7 @@ Version stats: >>> type(gl.version) >>> gl.version - '4.5.0.5' + '4.5.1_dev03' Version limits: @@ -1078,16 +1104,16 @@ Mem stats: >>> type(gl.mem) >>> gl.mem - {'active': 3994329088, - 'available': 5068689400, - 'buffers': 181362688, - 'cached': 3463291896, - 'free': 1565749248, - 'inactive': 8892383232, - 'percent': 69.1, - 'shared': 804638720, + {'active': 5192114176, + 'available': 3887476728, + 'buffers': 163774464, + 'cached': 3328631800, + 'free': 1404932096, + 'inactive': 7854202880, + 'percent': 76.3, + 'shared': 809398272, 'total': 16422830080, - 'used': 11354140680} + 'used': 12535353352} >>> gl.mem.keys() ['total', 'available', 'percent', 'used', 'free', 'active', 'inactive', 'buffers', 'cached', 'shared'] >>> gl.mem.get("total") @@ -1157,19 +1183,79 @@ Quicklook stats: >>> type(gl.quicklook) >>> gl.quicklook - {'cpu': 6.9, + {'cpu': 8.7, 'cpu_hz': 4475000000.0, - 'cpu_hz_current': 678843625.0, + 'cpu_hz_current': 645937500.0, 'cpu_log_core': 16, 'cpu_name': '13th Gen Intel(R) Core(TM) i7-13620H', 'cpu_phys_core': 10, - 'load': 4.7, - 'mem': 69.1, + 'load': 8.8, + 'mem': 76.3, 'percpu': [{'cpu_number': 0, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 47.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 10.0, + 'total': 53.0, + 'user': 2.0}, + {'cpu_number': 1, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 61.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': 39.0, + 'user': 0.0}, + {'cpu_number': 2, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 58.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': 42.0, + 'user': 1.0}, + {'cpu_number': 3, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 62.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': 38.0, + 'user': 0.0}, + {'cpu_number': 4, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 35.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1178,73 +1264,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 11.0, - 'total': 56.0, - 'user': 1.0}, - {'cpu_number': 1, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 56.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': 44.0, - 'user': 0.0}, - {'cpu_number': 2, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 55.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': 45.0, - 'user': 0.0}, - {'cpu_number': 3, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 56.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': 44.0, - 'user': 0.0}, - {'cpu_number': 4, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 55.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': 45.0, - 'user': 1.0}, + 'total': 65.0, + 'user': 14.0}, {'cpu_number': 5, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 57.0, + 'idle': 60.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1253,69 +1279,39 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 1.0, - 'total': 43.0, + 'total': 40.0, 'user': 0.0}, {'cpu_number': 6, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 59.0, 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 9.0, - 'total': 56.0, - 'user': 4.0}, - {'cpu_number': 7, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 28.0, - 'interrupt': None, - 'iowait': 2.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 13.0, - 'total': 72.0, - 'user': 13.0}, - {'cpu_number': 8, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 54.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': 46.0, - 'user': 2.0}, - {'cpu_number': 9, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 58.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': 0.0, - 'total': 42.0, - 'user': 0.0}, - {'cpu_number': 10, + 'total': 41.0, + 'user': 2.0}, + {'cpu_number': 7, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 38.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 2.0, + 'steal': 0.0, + 'system': 13.0, + 'total': 62.0, + 'user': 8.0}, + {'cpu_number': 8, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, @@ -1325,12 +1321,57 @@ Quicklook stats: 'irq': 0.0, 'key': 'cpu_number', 'nice': 0.0, - 'softirq': 1.0, + 'softirq': 0.0, 'steal': 0.0, 'system': 1.0, 'total': 45.0, - 'user': 1.0}, + 'user': 4.0}, + {'cpu_number': 9, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 62.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': 38.0, + 'user': 0.0}, + {'cpu_number': 10, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 54.0, + 'interrupt': None, + 'iowait': 1.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 1.0, + 'steal': 0.0, + 'system': 2.0, + 'total': 46.0, + 'user': 3.0}, {'cpu_number': 11, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 62.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': 38.0, + 'user': 0.0}, + {'cpu_number': 12, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, @@ -1342,44 +1383,29 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 0.0, + 'system': 1.0, 'total': 42.0, - 'user': 0.0}, - {'cpu_number': 12, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 57.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': 43.0, - 'user': 0.0}, + 'user': 1.0}, {'cpu_number': 13, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 57.0, + 'idle': 60.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, 'key': 'cpu_number', 'nice': 0.0, - 'softirq': 1.0, + 'softirq': 0.0, 'steal': 0.0, - 'system': 0.0, - 'total': 43.0, - 'user': 1.0}, + 'system': 1.0, + 'total': 40.0, + 'user': 2.0}, {'cpu_number': 14, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 57.0, + 'idle': 59.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1387,14 +1413,14 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 0.0, - 'total': 43.0, - 'user': 0.0}, + 'system': 1.0, + 'total': 41.0, + 'user': 1.0}, {'cpu_number': 15, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 57.0, + 'idle': 61.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1402,10 +1428,10 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 0.0, - 'total': 43.0, - 'user': 0.0}], - 'swap': 98.5} + 'system': 1.0, + 'total': 39.0, + 'user': 1.0}], + 'swap': 99.1} >>> 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 +1481,13 @@ Memswap stats: >>> type(gl.memswap) >>> gl.memswap - {'free': 64667648, - 'percent': 98.5, - 'sin': 2318577664, - 'sout': 7897165824, - 'time_since_update': 0.7519216537475586, + {'free': 39522304, + 'percent': 99.1, + 'sin': 2714636288, + 'sout': 8338857984, + 'time_since_update': 0.765803337097168, 'total': 4294963200, - 'used': 4230295552} + 'used': 4255440896} >>> gl.memswap.keys() ['total', 'used', 'free', 'percent', 'sin', 'sout', 'time_since_update'] >>> gl.memswap.get("total") @@ -1496,10 +1522,10 @@ Use auto_unit() function to generate a human-readable string with the unit: .. code-block:: python >>> gl.mem.get("used") - 11354140680 + 12535353352 >>> gl.auto_unit(gl.mem.get("used")) - 10.6G + 11.7G Args: @@ -1525,7 +1551,7 @@ Use bar() function to generate a bar: .. code-block:: python >>> gl.bar(gl.mem["percent"]) - ■■■■■■■■■■■■□□□□□□ + ■■■■■■■■■■■■■■□□□□ Args: @@ -1555,7 +1581,7 @@ Use top_process() function to generate a list of top processes sorted by CPU or .. code-block:: python >>> gl.top_process() - [{'nice': 0, 'name': 'WebExtensions', 'cpu_percent': 17.4, 'memory_percent': 5.388579067609765, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 1377.39, 'system': 194.46, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'status': 'S', 'io_counters': [43490304, 0, 43490304, 0, 1], 'pid': 7434, 'num_threads': 28, 'memory_info': {'rss': 884957184, 'vms': 25567461376, 'shared': 93396992, 'text': 651264, 'lib': 0, 'data': 1230876672, 'dirty': 0}, 'key': 'pid', 'time_since_update': 0.6645684242248535, 'cmdline': ['/snap/firefox/7720/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:50531', '-prefMapHandle', '1:280845', '-jsInitHandle', '2:223968', '-parentBuildID', '20260127070045', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{7aafeccd-bad0-457d-98fb-a381838a6b34}', '-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', '10', 'tab'], 'username': 'nicolargo'}, {'nice': 0, 'name': 'firefox', 'cpu_percent': 6.3, 'memory_percent': 4.935552740006186, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 7438.5, 'system': 2146.81, 'children_user': 0.4, 'children_system': 2.81, 'iowait': 0.0}, 'status': 'S', 'io_counters': [3278865408, 11778777088, 3278865408, 11778744320, 1], 'pid': 6717, 'num_threads': 157, 'memory_info': {'rss': 810557440, 'vms': 30898294784, 'shared': 198406144, 'text': 651264, 'lib': 0, 'data': 1547018240, 'dirty': 0}, 'key': 'pid', 'time_since_update': 0.6645684242248535, 'cmdline': ['/snap/firefox/7720/usr/lib/firefox/firefox'], 'username': 'nicolargo'}, {'nice': 0, 'name': 'Isolated Web Co', 'cpu_percent': 4.8, 'memory_percent': 3.860276145535082, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 914.95, 'system': 90.23, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'status': 'S', 'io_counters': [84571136, 0, 84571136, 0, 1], 'pid': 7042, 'num_threads': 30, 'memory_info': {'rss': 633966592, 'vms': 3675176960, 'shared': 111738880, 'text': 651264, 'lib': 0, 'data': 860536832, 'dirty': 0}, 'key': 'pid', 'time_since_update': 0.6645684242248535, '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', '{619c0e2c-a5b4-4c45-962f-40601f40f9a6}', '-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', '5', 'tab'], 'username': 'nicolargo'}] + [{'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 6717, 'num_threads': 158, 'io_counters': [3583839232, 14182006784, 3583839232, 14178627584, 1], 'nice': 0, 'status': 'R', 'name': 'firefox', 'memory_percent': 4.540713508983709, 'cpu_times': {'user': 8910.77, 'system': 2570.76, 'children_user': 0.41, 'children_system': 3.17, 'iowait': 0.0}, 'memory_info': {'rss': 745713664, 'vms': 30898253824, 'shared': 165904384, 'text': 651264, 'lib': 0, 'data': 1554018304, 'dirty': 0}, 'cpu_percent': 13.7, 'key': 'pid', 'time_since_update': 0.7017121315002441, 'cmdline': ['/snap/firefox/7720/usr/lib/firefox/firefox'], 'username': 'nicolargo'}, {'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 5426, 'num_threads': 40, 'io_counters': [525635584, 6270976, 525635584, 6270976, 1], 'nice': 0, 'status': 'S', 'name': 'gnome-shell', 'memory_percent': 1.7487554495844846, 'cpu_times': {'user': 4507.11, 'system': 2309.34, 'children_user': 92.04, 'children_system': 14.72, 'iowait': 0.0}, 'memory_info': {'rss': 287195136, 'vms': 5946585088, 'shared': 72269824, 'text': 8192, 'lib': 0, 'data': 565555200, 'dirty': 0}, 'cpu_percent': 3.0, 'key': 'pid', 'time_since_update': 0.7017121315002441, 'cmdline': ['/usr/bin/gnome-shell'], 'username': 'nicolargo'}, {'gids': {'real': 0, 'effective': 0, 'saved': 0}, 'pid': 3645, 'num_threads': 74, 'io_counters': [0, 0, 0, 0, 0], 'nice': 0, 'status': 'S', 'name': 'dockerd', 'memory_percent': 1.537655755858615, 'cpu_times': {'user': 257.23, 'system': 124.39, 'children_user': 174.18, 'children_system': 55.1, 'iowait': 0.0}, 'memory_info': {'rss': 252526592, 'vms': 8469266432, 'shared': 31895552, 'text': 32280576, 'lib': 0, 'data': 952205312, 'dirty': 0}, 'cpu_percent': 3.0, 'key': 'pid', 'time_since_update': 0.7017121315002441, 'cmdline': ['/usr/bin/dockerd', '-H', 'fd://', '--containerd=/run/containerd/containerd.sock'], 'username': 'root'}] Args: diff --git a/docs/api/restful.rst b/docs/api/restful.rst index d09efe51..5f3ef46b 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.5819332599639893}, + "timer": 0.5851385593414307}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -262,7 +262,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.5818235874176025}] + "timer": 0.5849936008453369}] 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.5819332599639893}]} + "timer": 0.5851385593414307}]} GET cloud --------- @@ -338,19 +338,19 @@ Get plugin stats:: "engine": "docker", "id": "6dd06560d38df47d8a1eebe0a1d4ae222f96ce73082c3d318db50cdd2d931005", "image": ["timescale/timescaledb-ha:pg17"], - "io": {"cumulative_ior": 83410944, "cumulative_iow": 0}, + "io": {"cumulative_ior": 88256512, "cumulative_iow": 0}, "io_rx": None, "io_wx": None, "key": "name", - "memory": {"inactive_file": 20160512, + "memory": {"inactive_file": 12632064, "limit": 16422830080, - "usage": 79966208}, - "memory_inactive_file": 20160512, + "usage": 67096576}, + "memory_inactive_file": 12632064, "memory_limit": 16422830080, "memory_percent": None, - "memory_usage": 79966208, + "memory_usage": 67096576, "name": "timescaledb-for-glances", - "network": {"cumulative_rx": 296754, "cumulative_tx": 30702}, + "network": {"cumulative_rx": 458612, "cumulative_tx": 33648}, "network_rx": None, "network_tx": None, "ports": "5432->5432/tcp,8008/tcp,8081/tcp", @@ -419,21 +419,21 @@ Get a specific item when field matches the given value:: "engine": "docker", "id": "6dd06560d38df47d8a1eebe0a1d4ae222f96ce73082c3d318db50cdd2d931005", "image": ["timescale/timescaledb-ha:pg17"], - "io": {"cumulative_ior": 83410944, + "io": {"cumulative_ior": 88256512, "cumulative_iow": 0}, "io_rx": None, "io_wx": None, "key": "name", - "memory": {"inactive_file": 20160512, + "memory": {"inactive_file": 12632064, "limit": 16422830080, - "usage": 79966208}, - "memory_inactive_file": 20160512, + "usage": 67096576}, + "memory_inactive_file": 12632064, "memory_limit": 16422830080, "memory_percent": None, - "memory_usage": 79966208, + "memory_usage": 67096576, "name": "timescaledb-for-glances", - "network": {"cumulative_rx": 296754, - "cumulative_tx": 30702}, + "network": {"cumulative_rx": 458612, + "cumulative_tx": 33648}, "network_rx": None, "network_tx": None, "ports": "5432->5432/tcp,8008/tcp,8081/tcp", @@ -465,19 +465,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 457759073, + "ctx_switches": 570849086, "guest": 0.0, - "idle": 92.9, - "interrupts": 374899196, - "iowait": 0.5, + "idle": 89.1, + "interrupts": 476880920, + "iowait": 0.2, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 171802243, + "soft_interrupts": 215752463, "steal": 0.0, "syscalls": 0, - "system": 3.0, - "total": 6.4, - "user": 3.6} + "system": 3.8, + "total": 12.3, + "user": 6.7} Fields descriptions: @@ -510,7 +510,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 6.4} + {"total": 12.3} GET diskio ---------- @@ -520,14 +520,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 27400636928, - "read_count": 1392035, + "read_bytes": 30544361984, + "read_count": 1542330, "read_latency": 0, - "read_time": 378111, - "write_bytes": 44694303744, - "write_count": 3478741, + "read_time": 451429, + "write_bytes": 55615136768, + "write_count": 4151294, "write_latency": 0, - "write_time": 2983748}, + "write_time": 3692916}, {"disk_name": "nvme0n1p1", "key": "disk_name", "read_bytes": 10400768, @@ -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": 27400636928, - "read_count": 1392035, + "read_bytes": 30544361984, + "read_count": 1542330, "read_latency": 0, - "read_time": 378111, - "write_bytes": 44694303744, - "write_count": 3478741, + "read_time": 451429, + "write_bytes": 55615136768, + "write_count": 4151294, "write_latency": 0, - "write_time": 2983748}]} + "write_time": 3692916}]} 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": 572586029056, + "free": 569394343936, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", - "percent": 39.9, + "percent": 40.2, "size": 1003736440832, - "used": 380087906304}, + "used": 383279591424}, {"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": 572586029056, + "free": 569394343936, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", - "percent": 39.9, + "percent": 40.2, "size": 1003736440832, - "used": 380087906304}]} + "used": 383279591424}]} GET gpu ------- @@ -666,7 +666,20 @@ GET gpu Get plugin stats:: # curl http://localhost:61208/api/4/gpu - [] + [{"fan_speed": None, + "gpu_id": "intel0", + "key": "gpu_id", + "mem": None, + "name": "UHD Graphics", + "proc": 0, + "temperature": None}, + {"fan_speed": None, + "gpu_id": "intel1", + "key": "gpu_id", + "mem": None, + "name": "Arc A370M", + "proc": 0, + "temperature": None}] Fields descriptions: @@ -677,6 +690,22 @@ Fields descriptions: * **temperature**: GPU temperature (unit is *celsius*) * **fan_speed**: GPU fan speed (unit is *roundperminute*) +Get a specific field:: + + # curl http://localhost:61208/api/4/gpu/gpu_id + {"gpu_id": ["intel0", "intel1"]} + +Get a specific item when field matches the given value:: + + # curl http://localhost:61208/api/4/gpu/gpu_id/value/intel0 + {"intel0": [{"fan_speed": None, + "gpu_id": "intel0", + "key": "gpu_id", + "mem": None, + "name": "UHD Graphics", + "proc": 0, + "temperature": None}]} + GET help -------- @@ -691,7 +720,7 @@ GET ip Get plugin stats:: # curl http://localhost:61208/api/4/ip - {"address": "10.2.0.2", "mask": "255.255.255.255", "mask_cidr": 32} + {"address": "172.17.0.1", "mask": "255.255.0.0", "mask_cidr": 16} Fields descriptions: @@ -705,7 +734,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/ip/address - {"address": "10.2.0.2"} + {"address": "172.17.0.1"} GET irq ------- @@ -727,9 +756,9 @@ Get plugin stats:: # curl http://localhost:61208/api/4/load {"cpucore": 16, - "min1": 0.427734375, - "min15": 0.73974609375, - "min5": 0.70263671875} + "min1": 1.34228515625, + "min15": 1.40234375, + "min5": 1.59033203125} Fields descriptions: @@ -741,7 +770,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 0.427734375} + {"min1": 1.34228515625} GET mem ------- @@ -749,16 +778,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 3995623424, - "available": 5061730296, - "buffers": 181747712, - "cached": 3492094968, - "free": 1535078400, - "inactive": 8900124672, - "percent": 69.2, - "shared": 810668032, + {"active": 5179965440, + "available": 3828531192, + "buffers": 163917824, + "cached": 3404297208, + "free": 1311670272, + "inactive": 7884238848, + "percent": 76.7, + "shared": 851136512, "total": 16422830080, - "used": 11361099784} + "used": 12594298888} Fields descriptions: @@ -785,13 +814,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 64913408, - "percent": 98.5, - "sin": 2318848000, - "sout": 7897165824, + {"free": 39526400, + "percent": 99.1, + "sin": 2714640384, + "sout": 8338857984, "time_since_update": 1, "total": 4294963200, - "used": 4230049792} + "used": 4255436800} Fields descriptions: @@ -816,32 +845,32 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 8872674202, + "bytes_all_gauge": 10872906250, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 8296104308, + "bytes_recv_gauge": 10121886239, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 576569894, + "bytes_sent_gauge": 751020011, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.5932052135467529}, + "time_since_update": 0.5996825695037842}, {"alias": None, "bytes_all": 0, - "bytes_all_gauge": 2067254, + "bytes_all_gauge": 2228448, "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": 1784836, + "bytes_sent_gauge": 1946030, "bytes_sent_rate_per_sec": 0, "interface_name": "vethd0fe83d", "key": "interface_name", "speed": 10485760000, - "time_since_update": 0.5932052135467529}] + "time_since_update": 0.5996825695037842}] Fields descriptions: @@ -863,30 +892,25 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/network/interface_name - {"interface_name": ["wlp0s20f3", - "vethd0fe83d", - "veth55973b0", - "veth3a3dd57", - "ipv6leakintrf0", - "proton0"]} + {"interface_name": ["wlp0s20f3", "vethd0fe83d", "veth55973b0", "veth3a3dd57"]} 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": 8872674202, + "bytes_all_gauge": 10872906250, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 8296104308, + "bytes_recv_gauge": 10121886239, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 576569894, + "bytes_sent_gauge": 751020011, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.5932052135467529}]} + "time_since_update": 0.5996825695037842}]} GET now ------- @@ -894,7 +918,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2026-02-17 21:57:25 CET", "iso": "2026-02-17T21:57:25+01:00"} + {"custom": "2026-02-20 08:41:42 CET", "iso": "2026-02-20T08:41:42+01:00"} Fields descriptions: @@ -904,7 +928,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2026-02-17T21:57:25+01:00"} + {"iso": "2026-02-20T08:41:42+01:00"} GET npu ------- @@ -938,22 +962,7 @@ Get plugin stats:: "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 42.0, - "interrupt": None, - "iowait": 3.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 12.0, - "total": 58.0, - "user": 1.0}, - {"cpu_number": 1, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 58.0, + "idle": 44.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -961,9 +970,24 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 42.0, - "user": 0.0}] + "system": 13.0, + "total": 56.0, + "user": 1.0}, + {"cpu_number": 1, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 55.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": 45.0, + "user": 3.0}] Fields descriptions: @@ -999,7 +1023,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.004678, + "status": 0.018838, "timeout": 3}] Fields descriptions: @@ -1027,7 +1051,7 @@ Get a specific item when field matches the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.004678, + "status": 0.018838, "timeout": 3}]} GET processcount @@ -1036,7 +1060,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 1, "sleeping": 441, "thread": 2366, "total": 595} + {"pid_max": 0, "running": 1, "sleeping": 445, "thread": 2390, "total": 598} Fields descriptions: @@ -1049,7 +1073,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 595} + {"total": 598} GET processlist --------------- @@ -1065,19 +1089,19 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 14.66, - "user": 266.0}, + "system": 25.02, + "user": 380.6}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [267788288, 0, 0, 0, 0], + "io_counters": [385667072, 0, 0, 0, 0], "key": "pid", - "memory_info": {"data": 3939524608, + "memory_info": {"data": 3940851712, "dirty": 0, "lib": 0, - "rss": 1143791616, - "shared": 16302080, + "rss": 1556324352, + "shared": 13406208, "text": 99938304, - "vms": 5786710016}, - "memory_percent": 6.964643794207729, + "vms": 5788037120}, + "memory_percent": 9.47659048056107, "name": "cloudcode_cli", "nice": 0, "num_threads": 21, @@ -1085,107 +1109,114 @@ Get plugin stats:: "status": "S", "time_since_update": 1, "username": "nicolargo"}, - {"cmdline": ["/proc/self/exe", - "--type=utility", - "--utility-sub-type=node.mojom.NodeService", - "--lang=en-US", - "--service-sandbox-type=none", - "--no-sandbox", - "--dns-result-order=ipv4first", - "--experimental-network-inspection", - "--inspect-port=0", - "--crashpad-handler-pid=18098", - "--enable-crash-reporter=864d4bb7-dd20-4851-830f-29e81dd93517,no_channel", - "--user-data-dir=/home/nicolargo/.config/Code", - "--standard-schemes=vscode-webview,vscode-file", - "--secure-schemes=vscode-webview,vscode-file", - "--cors-schemes=vscode-webview,vscode-file", - "--fetch-schemes=vscode-webview,vscode-file", - "--service-worker-schemes=vscode-webview", - "--code-cache-schemes=vscode-webview,vscode-file", - "--shared-files=v8_context_snapshot_data:100", - "--field-trial-handle=3,i,12795521450766184042,1990760475772140227,262144", - "--enable-features=DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync", - "--disable-features=CalculateNativeWinOcclusion,FontationsLinuxSystemFonts,ScreenAIOCREnabled,SpareRendererForSitePerProcess", - "--variations-seed-version"], + {"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"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 685.44, - "children_user": 788.48, + "cpu_times": {"children_system": 1.73, + "children_user": 1.61, "iowait": 0.0, - "system": 479.35, - "user": 849.45}, + "system": 50.28, + "user": 770.3}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [974182400, - 304934912, + "io_counters": [259288064, + 913408, 0, 0, 0, - 210949120, - 688128, + 1293346816, + 436121600, 0, 0, 0, - 257570816, - 405504, + 285589504, + 462848, 0, 0, 0, - 32763904, + 9625600, 0, 0, 0, 0, - 15943680, + 72269824, + 0, + 0, + 0, + 0, + 8392704, + 0, + 0, + 0, + 0, + 6486016, + 0, + 0, + 0, + 0, + 2989760512, + 750940160, + 0, + 0, + 0, + 3497984, + 0, + 0, + 0, + 0, + 39556096, 1622016, 0, 0, 0, - 2942315520, - 715902976, + 297531392, + 3038773248, 0, 0, 0, - 288899072, - 3037757440, + 5363712, + 5275648, 0, 0, 0, - 13550592, + 13818880, 782336, 0, 0, 0, - 15571968, + 16678912, 0, 0, 0, 0, - 17096704, + 25829376, 0, 0, 0, 0, - 4768768, + 4920320, 0, 0, 0, 0, - 10711040, + 11603968, 0, 0, 0, 0, - 26272768, + 26493952, 237568, 0, 0, 0, - 6815744, + 6836224, 0, 0, 0, 0, - 4255744, + 4268032, 0, 0, 0, @@ -1195,12 +1226,12 @@ Get plugin stats:: 0, 0, 0, - 24153088, - 20742144, + 25013248, + 25731072, 0, 0, 0, - 65441792, + 111403008, 1622016, 0, 0, @@ -1211,18 +1242,18 @@ Get plugin stats:: 0, 0], "key": "pid", - "memory_info": {"data": 2599489536, + "memory_info": {"data": 1752997888, "dirty": 0, "lib": 0, - "rss": 948285440, - "shared": 40521728, + "rss": 905146368, + "shared": 35262464, "text": 148733952, - "vms": 1499905118208}, - "memory_percent": 5.774190169298762, + "vms": 1501580857344}, + "memory_percent": 5.511512714865768, "name": "code", "nice": 0, - "num_threads": 21, - "pid": 154788, + "num_threads": 16, + "pid": 155409, "status": "S", "time_since_update": 1, "username": "nicolargo"}] @@ -1256,17 +1287,17 @@ Get plugin stats:: "cpu_times": {"children_system": 0.0, "children_user": 0.0, "iowait": 0.0, - "system": 14.66, - "user": 266.0}, - "io_counters": [267788288, 0, 0, 0, 0], - "memory_info": {"data": 3939524608, + "system": 25.02, + "user": 380.6}, + "io_counters": [385667072, 0, 0, 0, 0], + "memory_info": {"data": 3940851712, "dirty": 0, "lib": 0, - "rss": 1143791616, - "shared": 16302080, + "rss": 1556324352, + "shared": 13406208, "text": 99938304, - "vms": 5786710016}, - "memory_percent": 6.964643794207729, + "vms": 5788037120}, + "memory_percent": 9.47659048056107, "name": "cloudcode_cli", "nice": 0, "nprocs": 1, @@ -1275,13 +1306,18 @@ Get plugin stats:: "status": "S", "time_since_update": 1, "username": "nicolargo"}, - {"childrens": [154788, - 155409, + {"childrens": [155409, + 154788, 18199, + 785392, 155970, - 628827, + 785393, + 785391, 18081, + 785431, + 628827, 18294, + 785442, 164199, 18234, 154774, @@ -1296,81 +1332,106 @@ Get plugin stats:: 18083], "cmdline": ["code"], "cpu_percent": 0, - "cpu_times": {"children_system": 1160.7699999999998, - "children_user": 2325.4900000000002, - "system": 1163.2799999999995, - "user": 6002.140000000001}, - "io_counters": [974182400, - 304934912, + "cpu_times": {"children_system": 1456.25, + "children_user": 2597.85, + "system": 1704.8199999999995, + "user": 9652.5}, + "io_counters": [259288064, + 913408, 0, 0, 0, - 210949120, - 688128, + 1293346816, + 436121600, 0, 0, 0, - 257570816, - 405504, + 285589504, + 462848, 0, 0, 0, - 32763904, + 9625600, 0, 0, 0, 0, - 15943680, + 72269824, + 0, + 0, + 0, + 0, + 8392704, + 0, + 0, + 0, + 0, + 6486016, + 0, + 0, + 0, + 0, + 2989760512, + 750940160, + 0, + 0, + 0, + 3497984, + 0, + 0, + 0, + 0, + 39556096, 1622016, 0, 0, 0, - 2942315520, - 715902976, + 297531392, + 3038773248, 0, 0, 0, - 288899072, - 3037757440, + 5363712, + 5275648, 0, 0, 0, - 13550592, + 13818880, 782336, 0, 0, 0, - 15571968, + 16678912, 0, 0, 0, 0, - 17096704, + 25829376, 0, 0, 0, 0, - 4768768, + 4920320, 0, 0, 0, 0, - 10711040, + 11603968, 0, 0, 0, 0, - 26272768, + 26493952, 237568, 0, 0, 0, - 6815744, + 6836224, 0, 0, 0, 0, - 4255744, + 4268032, 0, 0, 0, @@ -1380,12 +1441,12 @@ Get plugin stats:: 0, 0, 0, - 24153088, - 20742144, + 25013248, + 25731072, 0, 0, 0, - 65441792, + 111403008, 1622016, 0, 0, @@ -1395,16 +1456,16 @@ Get plugin stats:: 0, 0, 0], - "memory_info": {"data": 15990562816, - "rss": 3513806848, - "shared": 779067392, - "text": 2825945088, - "vms": 22635906191360}, - "memory_percent": 21.39586679569421, + "memory_info": {"data": 19866779648, + "rss": 4491677696, + "shared": 1071964160, + "text": 3569614848, + "vms": 30110436642816}, + "memory_percent": 27.350205014116547, "name": "code", "nice": 0, - "nprocs": 19, - "num_threads": 308, + "nprocs": 24, + "num_threads": 353, "pid": "_", "status": "S", "time_since_update": 1, @@ -1441,30 +1502,60 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/4/quicklook - {"cpu": 6.4, + {"cpu": 12.3, "cpu_hz": 4475000000.0, - "cpu_hz_current": 734788500.0, + "cpu_hz_current": 827852687.4999999, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 4.7, - "mem": 69.2, + "load": 8.8, + "mem": 76.7, "percpu": [{"cpu_number": 0, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 42.0, + "idle": 44.0, "interrupt": None, - "iowait": 3.0, + "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 12.0, - "total": 58.0, + "system": 13.0, + "total": 56.0, "user": 1.0}, {"cpu_number": 1, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 55.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": 45.0, + "user": 3.0}, + {"cpu_number": 2, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 52.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": 48.0, + "user": 3.0}, + {"cpu_number": 3, "dpc": None, "guest": 0.0, "guest_nice": 0.0, @@ -1478,37 +1569,7 @@ Get plugin stats:: "steal": 0.0, "system": 0.0, "total": 42.0, - "user": 0.0}, - {"cpu_number": 2, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 56.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": 44.0, "user": 1.0}, - {"cpu_number": 3, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 59.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": 41.0, - "user": 0.0}, {"cpu_number": 4, "dpc": None, "guest": 0.0, @@ -1521,29 +1582,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 2.0, + "system": 6.0, "total": 53.0, - "user": 8.0}, + "user": 4.0}, {"cpu_number": 5, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 40.0, - "interrupt": None, - "iowait": 3.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 13.0, - "total": 60.0, - "user": 3.0}, - {"cpu_number": 6, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 45.0, + "idle": 39.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1551,16 +1597,121 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 6.0, - "total": 55.0, - "user": 5.0}, + "system": 4.0, + "total": 61.0, + "user": 15.0}, + {"cpu_number": 6, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 53.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": 47.0, + "user": 3.0}, {"cpu_number": 7, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 44.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 1.0, + "steal": 0.0, + "system": 11.0, + "total": 56.0, + "user": 1.0}, + {"cpu_number": 8, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 53.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": 47.0, + "user": 4.0}, + {"cpu_number": 9, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 57.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": 43.0, + "user": 1.0}, + {"cpu_number": 10, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 52.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": 48.0, + "user": 4.0}, + {"cpu_number": 11, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 57.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": 43.0, + "user": 1.0}, + {"cpu_number": 12, "dpc": None, "guest": 0.0, "guest_nice": 0.0, "idle": 54.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": 1.0, + "total": 46.0, + "user": 2.0}, + {"cpu_number": 13, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 54.0, + "interrupt": None, + "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, @@ -1568,102 +1719,12 @@ Get plugin stats:: "steal": 0.0, "system": 2.0, "total": 46.0, - "user": 0.0}, - {"cpu_number": 8, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 56.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": 44.0, - "user": 0.0}, - {"cpu_number": 9, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 58.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": 42.0, - "user": 0.0}, - {"cpu_number": 10, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 57.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": 43.0, - "user": 1.0}, - {"cpu_number": 11, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 58.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": 42.0, - "user": 0.0}, - {"cpu_number": 12, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 56.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": 44.0, - "user": 0.0}, - {"cpu_number": 13, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 57.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": 43.0, - "user": 1.0}, + "user": 3.0}, {"cpu_number": 14, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 57.0, + "idle": 54.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1672,24 +1733,24 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 43.0, - "user": 0.0}, + "total": 46.0, + "user": 3.0}, {"cpu_number": 15, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 58.0, + "idle": 53.0, "interrupt": None, - "iowait": 0.0, + "iowait": 1.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, "system": 1.0, - "total": 42.0, - "user": 0.0}], - "swap": 98.5} + "total": 47.0, + "user": 2.0}], + "swap": 99.1} Fields descriptions: @@ -1727,14 +1788,14 @@ Get plugin stats:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 38, + "value": 37, "warning": 0}, {"critical": None, "key": "label", "label": "Ambient 3", "type": "temperature_core", "unit": "C", - "value": 31, + "value": 29, "warning": 0}] Fields descriptions: @@ -1797,7 +1858,7 @@ Get a specific item when field matches the given value:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 38, + "value": 37, "warning": 0}]} GET smart @@ -1841,7 +1902,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "19 days, 0:00:54" + "21 days, 10:45:09" GET version ----------- @@ -1849,7 +1910,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.5.0.5" + "4.5.1_dev03" GET vms ------- @@ -1886,8 +1947,8 @@ Get plugin stats:: # curl http://localhost:61208/api/4/wifi [{"key": "ssid", - "quality_level": -75.0, - "quality_link": 35.0, + "quality_level": -63.0, + "quality_link": 47.0, "ssid": "wlp0s20f3"}] Get a specific field:: @@ -1899,8 +1960,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": -75.0, - "quality_link": 35.0, + "quality_level": -63.0, + "quality_link": 47.0, "ssid": "wlp0s20f3"}]} GET all stats @@ -1964,34 +2025,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2026-02-17T20:57:26.595193+00:00", 3.0], - ["2026-02-17T20:57:27.720142+00:00", 1.1], - ["2026-02-17T20:57:28.766243+00:00", 1.1]], - "user": [["2026-02-17T20:57:26.595191+00:00", 3.6], - ["2026-02-17T20:57:27.720139+00:00", 1.2], - ["2026-02-17T20:57:28.766241+00:00", 1.2]]} + {"system": [["2026-02-20T07:41:43.880968+00:00", 3.8], + ["2026-02-20T07:41:44.995257+00:00", 3.8], + ["2026-02-20T07:41:46.039676+00:00", 3.8]], + "user": [["2026-02-20T07:41:43.880962+00:00", 6.7], + ["2026-02-20T07:41:44.995254+00:00", 10.2], + ["2026-02-20T07:41:46.039673+00:00", 10.2]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2026-02-17T20:57:27.720142+00:00", 1.1], - ["2026-02-17T20:57:28.766243+00:00", 1.1]], - "user": [["2026-02-17T20:57:27.720139+00:00", 1.2], - ["2026-02-17T20:57:28.766241+00:00", 1.2]]} + {"system": [["2026-02-20T07:41:44.995257+00:00", 3.8], + ["2026-02-20T07:41:46.039676+00:00", 3.8]], + "user": [["2026-02-20T07:41:44.995254+00:00", 10.2], + ["2026-02-20T07:41:46.039673+00:00", 10.2]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2026-02-17T20:57:25.337323+00:00", 3.0], - ["2026-02-17T20:57:26.595193+00:00", 3.0], - ["2026-02-17T20:57:27.720142+00:00", 1.1], - ["2026-02-17T20:57:28.766243+00:00", 1.1]]} + {"system": [["2026-02-20T07:41:42.586748+00:00", 3.8], + ["2026-02-20T07:41:43.880968+00:00", 3.8], + ["2026-02-20T07:41:44.995257+00:00", 3.8], + ["2026-02-20T07:41:46.039676+00:00", 3.8]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2026-02-17T20:57:27.720142+00:00", 1.1], - ["2026-02-17T20:57:28.766243+00:00", 1.1]]} + {"system": [["2026-02-20T07:41:44.995257+00:00", 3.8], + ["2026-02-20T07:41:46.039676+00:00", 3.8]]} GET limits (used for thresholds) -------------------------------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index b8b05209..1c1feacd 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 17, 2026" "4.5.0.5" "Glances" +.TH "GLANCES" "1" "Feb 20, 2026" "4.5.1_dev03" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS diff --git a/glances/outputs/static/js/components/plugin-gpu.vue b/glances/outputs/static/js/components/plugin-gpu.vue index eee58e17..358a2be6 100644 --- a/glances/outputs/static/js/components/plugin-gpu.vue +++ b/glances/outputs/static/js/components/plugin-gpu.vue @@ -1,30 +1,31 @@