Glances 3.2.4

This commit is contained in:
nicolargo 2021-11-20 10:21:20 +01:00
parent 199a5e290c
commit 65b0d81710
6 changed files with 378 additions and 318 deletions

View File

@ -6,9 +6,37 @@
Version 3.2.4 Version 3.2.4
=============== ===============
Version under development. Please consult the roadmap here: Bugs corrected:
https://github.com/nicolargo/glances/milestone/53 * Failure to start on Apple M1 Max #1939
* Influxdb2 via SSL #1934
* Update WebUI (security patch). Thanks to @notFloran.
* Swith from black <> white theme with the '9' hotkey - Related to issue #976
* Fix: Docker plugin - Invalid IO stats with Arch Linux #1945
* Bug Fix: Docker plugin - Network stats not being displayed #1944
* Fix Grafana CPU temperature panel #1954
* is_disabled name fix #1949
* Fix tipo in documentation #1932
* distutils is deprecated in Python 3.10 #1923
* Separate battery percentages #1920
* Update docs and correct make docs-server target in Makefile
Enhancement requests:
* Improve --issue by displaying the second update iteration and not the first one. More relevant
* Improve --issue option with Python version and paths
* Correct an issue on idle display
* Refactor Mem + MemSwap Curse
* Refactor CPU Curses code
Contributors for this version:
* Nicolargo
* RazCrimson
* Floran Brutel
* H4ckerxx44
* Mohamad Mansour
* Néfix Estrada
* Zameer Manji
=============== ===============
Version 3.2.3.1 Version 3.2.3.1

View File

@ -49,25 +49,6 @@ Get the plugins list::
'uptime', 'uptime',
'wifi'] 'wifi']
GET alert
---------
Get plugin stats::
# curl http://localhost:61208/api/3/alert
[[1636623973.0,
-1,
'WARNING',
'MEM',
71.69530310265021,
71.69530310265021,
71.69530310265021,
71.69530310265021,
1,
[],
'',
'memory_percent']]
GET amps GET amps
-------- --------
@ -82,7 +63,7 @@ Get plugin stats::
'refresh': 3.0, 'refresh': 3.0,
'regex': True, 'regex': True,
'result': None, 'result': None,
'timer': 0.16523957252502441}, 'timer': 0.27605581283569336},
{'count': 0, {'count': 0,
'countmax': 20.0, 'countmax': 20.0,
'countmin': None, 'countmin': None,
@ -91,7 +72,7 @@ Get plugin stats::
'refresh': 3.0, 'refresh': 3.0,
'regex': True, 'regex': True,
'result': None, 'result': None,
'timer': 0.16511940956115723}] 'timer': 0.2759382724761963}]
Get a specific field:: Get a specific field::
@ -109,7 +90,7 @@ Get a specific item when field matchs the given value::
'refresh': 3.0, 'refresh': 3.0,
'regex': True, 'regex': True,
'result': None, 'result': None,
'timer': 0.16523957252502441}]} 'timer': 0.27605581283569336}]}
GET core GET core
-------- --------
@ -139,19 +120,19 @@ Get plugin stats::
'ctx_switches': 0, 'ctx_switches': 0,
'guest': 0.0, 'guest': 0.0,
'guest_nice': 0.0, 'guest_nice': 0.0,
'idle': 70.5, 'idle': 69.8,
'interrupts': 0, 'interrupts': 0,
'iowait': 0.0, 'iowait': 0.9,
'irq': 0.0, 'irq': 0.0,
'nice': 0.0, 'nice': 0.0,
'soft_interrupts': 0, 'soft_interrupts': 0,
'softirq': 3.8, 'softirq': 6.3,
'steal': 0.0, 'steal': 0.0,
'syscalls': 0, 'syscalls': 0,
'system': 3.6, 'system': 3.7,
'time_since_update': 1, 'time_since_update': 1,
'total': 28.9, 'total': 28.5,
'user': 22.1} 'user': 19.3}
Fields descriptions: Fields descriptions:
@ -172,7 +153,7 @@ Fields descriptions:
Get a specific field:: Get a specific field::
# curl http://localhost:61208/api/3/cpu/total # curl http://localhost:61208/api/3/cpu/total
{'total': 28.9} {'total': 28.5}
GET diskio GET diskio
---------- ----------
@ -218,13 +199,13 @@ Get plugin stats::
# curl http://localhost:61208/api/3/fs # curl http://localhost:61208/api/3/fs
[{'device_name': '/dev/mapper/ubuntu--gnome--vg-root', [{'device_name': '/dev/mapper/ubuntu--gnome--vg-root',
'free': 33024262144, 'free': 32537088000,
'fs_type': 'ext4', 'fs_type': 'ext4',
'key': 'mnt_point', 'key': 'mnt_point',
'mnt_point': '/', 'mnt_point': '/',
'percent': 85.7, 'percent': 85.9,
'size': 243396149248, 'size': 243396149248,
'used': 197984432128}] 'used': 198471606272}]
Get a specific field:: Get a specific field::
@ -235,13 +216,13 @@ Get a specific item when field matchs the given value::
# curl http://localhost:61208/api/3/fs/mnt_point// # curl http://localhost:61208/api/3/fs/mnt_point//
{'/': [{'device_name': '/dev/mapper/ubuntu--gnome--vg-root', {'/': [{'device_name': '/dev/mapper/ubuntu--gnome--vg-root',
'free': 33024262144, 'free': 32537088000,
'fs_type': 'ext4', 'fs_type': 'ext4',
'key': 'mnt_point', 'key': 'mnt_point',
'mnt_point': '/', 'mnt_point': '/',
'percent': 85.7, 'percent': 85.9,
'size': 243396149248, 'size': 243396149248,
'used': 197984432128}]} 'used': 198471606272}]}
GET ip GET ip
------ ------
@ -266,7 +247,7 @@ GET load
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/load # curl http://localhost:61208/api/3/load
{'cpucore': 4, 'min1': 1.18, 'min15': 1.3, 'min5': 1.45} {'cpucore': 4, 'min1': 1.25, 'min15': 0.8, 'min5': 1.01}
Fields descriptions: Fields descriptions:
@ -278,7 +259,7 @@ Fields descriptions:
Get a specific field:: Get a specific field::
# curl http://localhost:61208/api/3/load/min1 # curl http://localhost:61208/api/3/load/min1
{'min1': 1.18} {'min1': 1.25}
GET mem GET mem
------- -------
@ -286,16 +267,16 @@ GET mem
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/mem # curl http://localhost:61208/api/3/mem
{'active': 5186936832, {'active': 4793851904,
'available': 2221641728, 'available': 2405322752,
'buffers': 728940544, 'buffers': 560119808,
'cached': 2317426688, 'cached': 2057408512,
'free': 2221641728, 'free': 2405322752,
'inactive': 1455177728, 'inactive': 1450356736,
'percent': 71.7, 'percent': 69.4,
'shared': 778702848, 'shared': 607657984,
'total': 7849021440, 'total': 7849021440,
'used': 5627379712} 'used': 5443698688}
Fields descriptions: Fields descriptions:
@ -322,13 +303,13 @@ GET memswap
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/memswap # curl http://localhost:61208/api/3/memswap
{'free': 7204769792, {'free': 6194417664,
'percent': 10.9, 'percent': 23.4,
'sin': 445259776, 'sin': 916840448,
'sout': 1804820480, 'sout': 3278696448,
'time_since_update': 1, 'time_since_update': 1,
'total': 8082419712, 'total': 8082419712,
'used': 877649920} 'used': 1888002048}
Fields descriptions: Fields descriptions:
@ -420,7 +401,7 @@ GET now
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/now # curl http://localhost:61208/api/3/now
'2021-11-11 10:46:13 CET' '2021-11-20 10:12:37 CET'
GET percpu GET percpu
---------- ----------
@ -431,20 +412,20 @@ Get plugin stats::
[{'cpu_number': 0, [{'cpu_number': 0,
'guest': 0.0, 'guest': 0.0,
'guest_nice': 0.0, 'guest_nice': 0.0,
'idle': 15.0, 'idle': 79.0,
'iowait': 0.0, 'iowait': 2.0,
'irq': 0.0, 'irq': 0.0,
'key': 'cpu_number', 'key': 'cpu_number',
'nice': 0.0, 'nice': 0.0,
'softirq': 0.0, 'softirq': 1.0,
'steal': 0.0, 'steal': 0.0,
'system': 2.0, 'system': 4.0,
'total': 85.0, 'total': 21.0,
'user': 57.0}, 'user': 4.0},
{'cpu_number': 1, {'cpu_number': 1,
'guest': 0.0, 'guest': 0.0,
'guest_nice': 0.0, 'guest_nice': 0.0,
'idle': 63.0, 'idle': 28.0,
'iowait': 0.0, 'iowait': 0.0,
'irq': 0.0, 'irq': 0.0,
'key': 'cpu_number', 'key': 'cpu_number',
@ -452,8 +433,8 @@ Get plugin stats::
'softirq': 0.0, 'softirq': 0.0,
'steal': 0.0, 'steal': 0.0,
'system': 3.0, 'system': 3.0,
'total': 37.0, 'total': 72.0,
'user': 9.0}] 'user': 57.0}]
Get a specific field:: Get a specific field::
@ -472,7 +453,7 @@ Get plugin stats::
'port': 0, 'port': 0,
'refresh': 30, 'refresh': 30,
'rtt_warning': None, 'rtt_warning': None,
'status': 0.005204, 'status': 0.007204,
'timeout': 3}] 'timeout': 3}]
Get a specific field:: Get a specific field::
@ -489,7 +470,7 @@ Get a specific item when field matchs the given value::
'port': 0, 'port': 0,
'refresh': 30, 'refresh': 30,
'rtt_warning': None, 'rtt_warning': None,
'status': 0.005204, 'status': 0.007204,
'timeout': 3}]} 'timeout': 3}]}
GET processcount GET processcount
@ -498,12 +479,12 @@ GET processcount
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/processcount # curl http://localhost:61208/api/3/processcount
{'pid_max': 0, 'running': 1, 'sleeping': 275, 'thread': 1340, 'total': 334} {'pid_max': 0, 'running': 2, 'sleeping': 273, 'thread': 1311, 'total': 337}
Get a specific field:: Get a specific field::
# curl http://localhost:61208/api/3/processcount/total # curl http://localhost:61208/api/3/processcount/total
{'total': 334} {'total': 337}
GET processlist GET processlist
--------------- ---------------
@ -511,19 +492,43 @@ GET processlist
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/processlist # curl http://localhost:61208/api/3/processlist
[{'cmdline': ['/usr/lib/firefox/firefox', '-new-window'], [{'cmdline': ['/usr/share/code/code',
'--type=renderer',
'--disable-color-correct-rendering',
'--field-trial-handle=9801772374554752705,8463974869748304130,131072',
'--disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess',
'--lang=en-US',
'--enable-crash-reporter=7c06f526-63e8-47aa-8c08-b95f6ad2ec2d,no_channel',
'--global-crash-keys=7c06f526-63e8-47aa-8c08-b95f6ad2ec2d,no_channel,_companyName=Microsoft,_productName=VSCode,_version=1.59.1',
'--user-data-dir=/home/nicolargo/.config/Code',
'--standard-schemes=vscode-webview,vscode-file',
'--secure-schemes=vscode-webview,vscode-file',
'--bypasscsp-schemes',
'--cors-schemes=vscode-webview,vscode-file',
'--fetch-schemes=vscode-webview,vscode-file',
'--service-worker-schemes=vscode-webview',
'--streaming-schemes',
'--app-path=/usr/share/code/resources/app',
'--no-sandbox',
'--no-zygote',
'--num-raster-threads=2',
'--enable-main-frame-before-activation',
'--renderer-client-id=9',
'--no-v8-untrusted-code-mitigations',
'--shared-files=v8_context_snapshot_data:100',
'--vscode-window-config=vscode:662562c7-385c-48ce-8810-0faf0271b42a'],
'cpu_percent': 0.0, 'cpu_percent': 0.0,
'cpu_times': pcputimes(user=9544.16, system=3246.47, children_user=6410.27, children_system=1105.83, iowait=2.92), 'cpu_times': pcputimes(user=2032.8, system=162.49, children_user=6.03, children_system=1.31, iowait=1.38),
'gids': pgids(real=1000, effective=1000, saved=1000), 'gids': pgids(real=1000, effective=1000, saved=1000),
'io_counters': [2831810560, 11189903360, 0, 0, 0], 'io_counters': [258551808, 12414976, 0, 0, 0],
'key': 'pid', 'key': 'pid',
'memory_info': pmem(rss=656961536, vms=5053366272, shared=190525440, text=626688, lib=0, data=1272360960, dirty=0), 'memory_info': pmem(rss=770269184, vms=54677688320, shared=91856896, text=125108224, lib=0, data=1028259840, dirty=0),
'memory_percent': 8.36998014366489, 'memory_percent': 9.813569626330388,
'name': 'firefox', 'name': 'code',
'nice': 0, 'nice': 0,
'num_threads': 143, 'num_threads': 20,
'pid': 5637, 'pid': 239588,
'ppid': 3847, 'ppid': 238897,
'status': 'S', 'status': 'S',
'time_since_update': 1, 'time_since_update': 1,
'username': 'nicolargo'}, 'username': 'nicolargo'},
@ -546,15 +551,15 @@ Get plugin stats::
'true', 'true',
'tab'], 'tab'],
'cpu_percent': 0.0, 'cpu_percent': 0.0,
'cpu_times': pcputimes(user=1902.3, system=443.03, children_user=0.0, children_system=0.0, iowait=1.6), 'cpu_times': pcputimes(user=3253.71, system=870.96, children_user=0.0, children_system=0.0, iowait=2.51),
'gids': pgids(real=1000, effective=1000, saved=1000), 'gids': pgids(real=1000, effective=1000, saved=1000),
'io_counters': [78823424, 0, 0, 0, 0], 'io_counters': [142454784, 0, 0, 0, 0],
'key': 'pid', 'key': 'pid',
'memory_info': pmem(rss=522686464, vms=3613749248, shared=78860288, text=626688, lib=0, data=845529088, dirty=0), 'memory_info': pmem(rss=588206080, vms=3674382336, shared=73723904, text=626688, lib=0, data=957771776, dirty=0),
'memory_percent': 6.659256418084138, 'memory_percent': 7.494005265451281,
'name': 'Web Content', 'name': 'Web Content',
'nice': 0, 'nice': 0,
'num_threads': 24, 'num_threads': 26,
'pid': 5755, 'pid': 5755,
'ppid': 5637, 'ppid': 5637,
'status': 'S', 'status': 'S',
@ -564,182 +569,181 @@ Get plugin stats::
Get a specific field:: Get a specific field::
# curl http://localhost:61208/api/3/processlist/pid # curl http://localhost:61208/api/3/processlist/pid
{'pid': [5637, {'pid': [239588,
5755, 5755,
5637,
5895, 5895,
5946,
239588,
239766, 239766,
4092,
239606, 239606,
243259, 5946,
159796, 4092,
281859,
360983,
238929,
239618,
238897, 238897,
239897,
243853,
207471, 207471,
238993, 238993,
238929, 360036,
244353, 364329,
239618,
203033,
178587,
5798, 5798,
227849, 361393,
244524, 178587,
239660,
239023,
3934, 3934,
238947, 239023,
2259, 2259,
3336, 365213,
18486, 18486,
238901,
238900,
207747,
237994,
248427,
3913, 3913,
4121,
270468,
3855, 3855,
138395,
211213,
4374,
68322, 68322,
227849,
150281, 150281,
4181, 4181,
348,
242171,
2430, 2430,
3336,
238947,
6053, 6053,
3853, 211213,
213050, 348,
4928, 4928,
242169, 3853,
4241, 4241,
4265, 4265,
339476,
1139, 1139,
4152, 358705,
4374,
4261, 4261,
4266, 4152,
4287, 358682,
1, 1,
4143, 237994,
4264, 138395,
4284, 4287,
4121, 4266,
4196,
2216,
226115,
172714,
1158,
4123,
1180, 1180,
1158,
358704,
1285, 1285,
226113, 4196,
2394, 4143,
4116, 4116,
4274, 4264,
3847,
4078,
3764,
4262,
1008,
2208,
4164,
3863,
3890, 3890,
4267, 4164,
238903, 3847,
4343, 4274,
238900,
4284,
3764,
2216,
4078,
4123,
238901,
255840,
1575, 1575,
234622, 3863,
1153, 344713,
4279, 1008,
5587,
240887,
4339,
239661,
4129,
1176,
4332,
3959,
1354,
1324,
1178,
4252,
1121,
1181,
4263,
5573,
1138,
1300, 1300,
3921, 4267,
187870, 172714,
3896, 1121,
4281, 1138,
4276, 1153,
3868, 4262,
4340, 2394,
4160,
3858,
3932,
3908, 3908,
4332,
4279,
1354,
4340,
364970,
3959,
4339,
5587,
4263,
3858,
4252,
1176,
4343,
3896,
4276,
4129,
3927,
4281,
3921,
3932,
4137,
3902,
1324,
239661,
2208,
5573,
4160,
4273,
3868,
4048, 4048,
4120, 4120,
1173,
4273,
1147,
3927,
18537,
4272, 4272,
18537,
2406, 2406,
4285, 1178,
4260, 1173,
207437,
240886,
4137,
3883,
1010,
4057, 4057,
3902, 4260,
67406, 1181,
1166, 4285,
1130, 1147,
37983,
1150,
4072,
4141,
37989,
1182,
1007,
6521,
1163,
3339, 3339,
1129, 1166,
2403, 67406,
1130,
3883,
207437,
1150,
37983,
4062, 4062,
1010,
4072,
1182,
37989,
1129,
6521,
344711,
1007,
37992, 37992,
4141,
187870,
1135, 1135,
138445, 2403,
365201,
1163,
1451, 1451,
248409, 213050,
1209, 1209,
138445,
2230, 2230,
344710,
37995, 37995,
2404, 2404,
4601, 4601,
1122, 1122,
248426, 365212,
2229, 2229,
2035, 2035,
213333, 238903,
1335,
3848, 3848,
2235,
997, 997,
375, 375,
1335,
2235,
1214, 1214,
4029, 4029,
213333,
1132, 1132,
2, 2,
3, 3,
@ -861,7 +865,6 @@ Get a specific field::
24771, 24771,
25388, 25388,
57294, 57294,
57426,
57650, 57650,
57855, 57855,
86491, 86491,
@ -875,52 +878,81 @@ Get a specific field::
125413, 125413,
125958, 125958,
126036, 126036,
200243,
210727, 210727,
210918, 210918,
211155, 211155,
211634, 211634,
211932, 211932,
212305,
212663, 212663,
217976, 217976,
240992, 250739,
242044, 264756,
242047, 348017,
243760, 354417,
244188, 354655,
244858, 354729,
244896, 358068,
245238, 358526,
246553, 358542,
246555, 358544,
246557, 358559,
246558, 361039,
248087, 361854,
248320]} 361952,
363666,
364146,
364568,
364599,
364687,
365085,
365124]}
Get a specific item when field matchs the given value:: Get a specific item when field matchs the given value::
# curl http://localhost:61208/api/3/processlist/pid/5637 # curl http://localhost:61208/api/3/processlist/pid/239588
{'5637': [{'cmdline': ['/usr/lib/firefox/firefox', '-new-window'], {'239588': [{'cmdline': ['/usr/share/code/code',
'--type=renderer',
'--disable-color-correct-rendering',
'--field-trial-handle=9801772374554752705,8463974869748304130,131072',
'--disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess',
'--lang=en-US',
'--enable-crash-reporter=7c06f526-63e8-47aa-8c08-b95f6ad2ec2d,no_channel',
'--global-crash-keys=7c06f526-63e8-47aa-8c08-b95f6ad2ec2d,no_channel,_companyName=Microsoft,_productName=VSCode,_version=1.59.1',
'--user-data-dir=/home/nicolargo/.config/Code',
'--standard-schemes=vscode-webview,vscode-file',
'--secure-schemes=vscode-webview,vscode-file',
'--bypasscsp-schemes',
'--cors-schemes=vscode-webview,vscode-file',
'--fetch-schemes=vscode-webview,vscode-file',
'--service-worker-schemes=vscode-webview',
'--streaming-schemes',
'--app-path=/usr/share/code/resources/app',
'--no-sandbox',
'--no-zygote',
'--num-raster-threads=2',
'--enable-main-frame-before-activation',
'--renderer-client-id=9',
'--no-v8-untrusted-code-mitigations',
'--shared-files=v8_context_snapshot_data:100',
'--vscode-window-config=vscode:662562c7-385c-48ce-8810-0faf0271b42a'],
'cpu_percent': 0.0, 'cpu_percent': 0.0,
'cpu_times': [9544.16, 3246.47, 6410.27, 1105.83, 2.92], 'cpu_times': [2032.8, 162.49, 6.03, 1.31, 1.38],
'gids': [1000, 1000, 1000], 'gids': [1000, 1000, 1000],
'io_counters': [2831810560, 11189903360, 0, 0, 0], 'io_counters': [258551808, 12414976, 0, 0, 0],
'key': 'pid', 'key': 'pid',
'memory_info': [656961536, 'memory_info': [770269184,
5053366272, 54677688320,
190525440, 91856896,
626688, 125108224,
0, 0,
1272360960, 1028259840,
0], 0],
'memory_percent': 8.36998014366489, 'memory_percent': 9.813569626330388,
'name': 'firefox', 'name': 'code',
'nice': 0, 'nice': 0,
'num_threads': 143, 'num_threads': 20,
'pid': 5637, 'pid': 239588,
'ppid': 3847, 'ppid': 238897,
'status': 'S', 'status': 'S',
'time_since_update': 1, 'time_since_update': 1,
'username': 'nicolargo'}]} 'username': 'nicolargo'}]}
@ -939,28 +971,28 @@ GET quicklook
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/quicklook # curl http://localhost:61208/api/3/quicklook
{'cpu': 28.9, {'cpu': 28.5,
'cpu_hz': 2025000000.0, 'cpu_hz': 3000000000.0,
'cpu_hz_current': 1972059000.0, 'cpu_hz_current': 2171928500.0,
'cpu_name': 'Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz', 'cpu_name': 'Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz',
'mem': 71.7, 'mem': 69.4,
'percpu': [{'cpu_number': 0, 'percpu': [{'cpu_number': 0,
'guest': 0.0, 'guest': 0.0,
'guest_nice': 0.0, 'guest_nice': 0.0,
'idle': 15.0, 'idle': 79.0,
'iowait': 0.0, 'iowait': 2.0,
'irq': 0.0, 'irq': 0.0,
'key': 'cpu_number', 'key': 'cpu_number',
'nice': 0.0, 'nice': 0.0,
'softirq': 0.0, 'softirq': 1.0,
'steal': 0.0, 'steal': 0.0,
'system': 2.0, 'system': 4.0,
'total': 85.0, 'total': 21.0,
'user': 57.0}, 'user': 4.0},
{'cpu_number': 1, {'cpu_number': 1,
'guest': 0.0, 'guest': 0.0,
'guest_nice': 0.0, 'guest_nice': 0.0,
'idle': 63.0, 'idle': 28.0,
'iowait': 0.0, 'iowait': 0.0,
'irq': 0.0, 'irq': 0.0,
'key': 'cpu_number', 'key': 'cpu_number',
@ -968,40 +1000,40 @@ Get plugin stats::
'softirq': 0.0, 'softirq': 0.0,
'steal': 0.0, 'steal': 0.0,
'system': 3.0, 'system': 3.0,
'total': 37.0, 'total': 72.0,
'user': 9.0}, 'user': 57.0},
{'cpu_number': 2, {'cpu_number': 2,
'guest': 0.0, 'guest': 0.0,
'guest_nice': 0.0, 'guest_nice': 0.0,
'idle': 71.0, 'idle': 73.3,
'iowait': 0.0, 'iowait': 0.0,
'irq': 0.0, 'irq': 0.0,
'key': 'cpu_number', 'key': 'cpu_number',
'nice': 0.0, 'nice': 0.0,
'softirq': 1.0, 'softirq': 18.1,
'steal': 0.0, 'steal': 0.0,
'system': 1.0, 'system': 1.9,
'total': 29.0, 'total': 26.7,
'user': 2.0}, 'user': 6.7},
{'cpu_number': 3, {'cpu_number': 3,
'guest': 0.0, 'guest': 0.0,
'guest_nice': 0.0, 'guest_nice': 0.0,
'idle': 67.0, 'idle': 78.0,
'iowait': 0.0, 'iowait': 0.0,
'irq': 0.0, 'irq': 0.0,
'key': 'cpu_number', 'key': 'cpu_number',
'nice': 0.0, 'nice': 0.0,
'softirq': 9.0, 'softirq': 0.0,
'steal': 0.0, 'steal': 0.0,
'system': 1.0, 'system': 2.0,
'total': 33.0, 'total': 22.0,
'user': 4.0}], 'user': 7.0}],
'swap': 10.9} 'swap': 23.4}
Get a specific field:: Get a specific field::
# curl http://localhost:61208/api/3/quicklook/cpu # curl http://localhost:61208/api/3/quicklook/cpu
{'cpu': 28.9} {'cpu': 28.5}
GET sensors GET sensors
----------- -----------
@ -1072,7 +1104,7 @@ GET uptime
Get plugin stats:: Get plugin stats::
# curl http://localhost:61208/api/3/uptime # curl http://localhost:61208/api/3/uptime
{'seconds': 5401845} {'seconds': 6177424}
GET all stats GET all stats
------------- -------------
@ -1088,33 +1120,33 @@ GET stats history
History of a plugin:: History of a plugin::
# curl http://localhost:61208/api/3/cpu/history # curl http://localhost:61208/api/3/cpu/history
{'system': [['2021-11-11T10:46:14.029260', 3.6], {'system': [['2021-11-20T10:12:37.325561', 3.7],
['2021-11-11T10:46:15.085920', 3.6], ['2021-11-20T10:12:38.370014', 3.7],
['2021-11-11T10:46:16.237370', 1.4]], ['2021-11-20T10:12:39.462602', 1.6]],
'user': [['2021-11-11T10:46:14.029249', 22.1], 'user': [['2021-11-20T10:12:37.325555', 19.3],
['2021-11-11T10:46:15.085914', 22.1], ['2021-11-20T10:12:38.370009', 19.3],
['2021-11-11T10:46:16.237363', 3.7]]} ['2021-11-20T10:12:39.462598', 3.6]]}
Limit history to last 2 values:: Limit history to last 2 values::
# curl http://localhost:61208/api/3/cpu/history/2 # curl http://localhost:61208/api/3/cpu/history/2
{'system': [['2021-11-11T10:46:15.085920', 3.6], {'system': [['2021-11-20T10:12:38.370014', 3.7],
['2021-11-11T10:46:16.237370', 1.4]], ['2021-11-20T10:12:39.462602', 1.6]],
'user': [['2021-11-11T10:46:15.085914', 22.1], 'user': [['2021-11-20T10:12:38.370009', 19.3],
['2021-11-11T10:46:16.237363', 3.7]]} ['2021-11-20T10:12:39.462598', 3.6]]}
History for a specific field:: History for a specific field::
# curl http://localhost:61208/api/3/cpu/system/history # curl http://localhost:61208/api/3/cpu/system/history
{'system': [['2021-11-11T10:46:14.029260', 3.6], {'system': [['2021-11-20T10:12:37.325561', 3.7],
['2021-11-11T10:46:15.085920', 3.6], ['2021-11-20T10:12:38.370014', 3.7],
['2021-11-11T10:46:16.237370', 1.4]]} ['2021-11-20T10:12:39.462602', 1.6]]}
Limit history for a specific field to last 2 values:: Limit history for a specific field to last 2 values::
# curl http://localhost:61208/api/3/cpu/system/history # curl http://localhost:61208/api/3/cpu/system/history
{'system': [['2021-11-11T10:46:15.085920', 3.6], {'system': [['2021-11-20T10:12:38.370014', 3.7],
['2021-11-11T10:46:16.237370', 1.4]]} ['2021-11-20T10:12:39.462602', 1.6]]}
GET limits (used for thresholds) GET limits (used for thresholds)
-------------------------------- --------------------------------

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText. .\" Man page generated from reStructuredText.
. .
.TH "GLANCES" "1" "Nov 11, 2021" "3.2.4_beta03" "Glances" .TH "GLANCES" "1" "Nov 20, 2021" "3.2.4" "Glances"
.SH NAME .SH NAME
glances \- An eye on your system glances \- An eye on your system
. .

View File

@ -29,7 +29,7 @@ import sys
# Global name # Global name
# Version should start and end with a numerical char # Version should start and end with a numerical char
# See https://packaging.python.org/specifications/core-metadata/#version # See https://packaging.python.org/specifications/core-metadata/#version
__version__ = '3.2.4_beta03' __version__ = '3.2.4'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>' __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__license__ = 'LGPLv3' __license__ = 'LGPLv3'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long