diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-12-21 13:52:07 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-12-21 13:52:07 +0100 |
commit | 2c9ff45b16dbf99ebbad3d503d6669417a17b449 (patch) | |
tree | 6544b7b89d64eb8067156eb84f8e8e5c927e29f8 /docs | |
parent | 25fa4c6536abf996c1fde8238b328f875718caed (diff) |
The open-web-browser option was missing dashes #2219
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api.rst | 1089 | ||||
-rw-r--r-- | docs/cmds.rst | 2 | ||||
-rw-r--r-- | docs/man/glances.1 | 2 |
3 files changed, 588 insertions, 505 deletions
diff --git a/docs/api.rst b/docs/api.rst index c05d98fb..590b3a1e 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -74,7 +74,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.9592759609222412}, + "timer": 0.8624663352966309}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -83,7 +83,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.9590103626251221}] + "timer": 0.8622386455535889}] Get a specific field:: @@ -101,7 +101,7 @@ Get a specific item when field matchs the given value:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.9592759609222412}]} + "timer": 0.8624663352966309}]} GET core -------- @@ -131,19 +131,19 @@ Get plugin stats:: "ctx_switches": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 35.6, + "idle": 47.0, "interrupts": 0, - "iowait": 0.0, + "iowait": 2.2, "irq": 0.0, "nice": 0.0, "soft_interrupts": 0, - "softirq": 0.0, + "softirq": 1.0, "steal": 0.0, "syscalls": 0, - "system": 3.8, + "system": 8.0, "time_since_update": 1, - "total": 65.0, - "user": 60.7} + "total": 48.0, + "user": 41.8} Fields descriptions: @@ -166,7 +166,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/cpu/total - {"total": 65.0} + {"total": 48.0} GET diskio ---------- @@ -215,7 +215,7 @@ Get plugin stats:: "Id": "3abd51c615968482d9ccff5afc629f267f6dda113ed68b75b432615fae3b49fb", "Image": ["portainer/portainer-ce:2.9.3"], "Status": "running", - "Uptime": "yesterday", + "Uptime": "3 days", "cpu": {"total": 0.0}, "cpu_percent": 0.0, "io": {}, @@ -230,34 +230,34 @@ Get plugin stats:: "network_tx": None}], "version": {"ApiVersion": "1.41", "Arch": "amd64", - "BuildTime": "2022-10-25T18:00:04.000000000+00:00", + "BuildTime": "2022-12-15T22:25:58.000000000+00:00", "Components": [{"Details": {"ApiVersion": "1.41", "Arch": "amd64", - "BuildTime": "2022-10-25T18:00:04.000000000+00:00", + "BuildTime": "2022-12-15T22:25:58.000000000+00:00", "Experimental": "false", - "GitCommit": "3056208", - "GoVersion": "go1.18.7", - "KernelVersion": "5.15.0-48-generic", + "GitCommit": "42c8b31", + "GoVersion": "go1.18.9", + "KernelVersion": "5.15.0-56-generic", "MinAPIVersion": "1.12", "Os": "linux"}, "Name": "Engine", - "Version": "20.10.21"}, - {"Details": {"GitCommit": "770bd0108c32f3fb5c73ae1264f7e503fe7b2661"}, + "Version": "20.10.22"}, + {"Details": {"GitCommit": "78f51771157abb6c9ed224c22013cdf09962315d"}, "Name": "containerd", - "Version": "1.6.10"}, + "Version": "1.6.13"}, {"Details": {"GitCommit": "v1.1.4-0-g5fd4c4d"}, "Name": "runc", "Version": "1.1.4"}, {"Details": {"GitCommit": "de40ad0"}, "Name": "docker-init", "Version": "0.19.0"}], - "GitCommit": "3056208", - "GoVersion": "go1.18.7", - "KernelVersion": "5.15.0-48-generic", + "GitCommit": "42c8b31", + "GoVersion": "go1.18.9", + "KernelVersion": "5.15.0-56-generic", "MinAPIVersion": "1.12", "Os": "linux", "Platform": {"Name": "Docker Engine - Community"}, - "Version": "20.10.21"}} + "Version": "20.10.22"}} GET fs ------ @@ -266,13 +266,13 @@ Get plugin stats:: # curl http://localhost:61208/api/3/fs [{"device_name": "/dev/mapper/ubuntu--gnome--vg-root", - "free": 56459513856, + "free": 54919016448, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 75.6, + "percent": 76.2, "size": 243334156288, - "used": 174487187456}, + "used": 176027684864}, {"device_name": "zsfpool", "free": 41811968, "fs_type": "zfs", @@ -291,13 +291,13 @@ Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/fs/mnt_point// {"/": [{"device_name": "/dev/mapper/ubuntu--gnome--vg-root", - "free": 56459513856, + "free": 54919016448, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 75.6, + "percent": 76.2, "size": 243334156288, - "used": 174487187456}]} + "used": 176027684864}]} GET ip ------ @@ -323,7 +323,7 @@ GET load Get plugin stats:: # curl http://localhost:61208/api/3/load - {"cpucore": 4, "min1": 1.61376953125, "min15": 0.89453125, "min5": 1.0869140625} + {"cpucore": 4, "min1": 2.5703125, "min15": 2.0634765625, "min5": 2.2353515625} Fields descriptions: @@ -335,7 +335,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/load/min1 - {"min1": 1.61376953125} + {"min1": 2.5703125} GET mem ------- @@ -343,16 +343,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/3/mem - {"active": 3194380288, - "available": 2806358016, - "buffers": 111263744, - "cached": 3239358464, - "free": 2806358016, - "inactive": 3268075520, - "percent": 64.2, - "shared": 463376384, + {"active": 3018625024, + "available": 2375323648, + "buffers": 97480704, + "cached": 2774757376, + "free": 2375323648, + "inactive": 3403993088, + "percent": 69.7, + "shared": 623783936, "total": 7836188672, - "used": 5029830656} + "used": 5460865024} Fields descriptions: @@ -379,13 +379,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/3/memswap - {"free": 3936796672, - "percent": 51.3, - "sin": 9888763904, - "sout": 18512478208, + {"free": 5943132160, + "percent": 26.5, + "sin": 1293230080, + "sout": 3734319104, "time_since_update": 1, "total": 8082419712, - "used": 4145623040} + "used": 2139287552} Fields descriptions: @@ -409,29 +409,29 @@ Get plugin stats:: # curl http://localhost:61208/api/3/network [{"alias": None, - "cumulative_cx": 915958900, - "cumulative_rx": 457979450, - "cumulative_tx": 457979450, - "cx": 3230, + "cumulative_cx": 90372412, + "cumulative_rx": 45186206, + "cumulative_tx": 45186206, + "cx": 23560, "interface_name": "lo", "is_up": True, "key": "interface_name", - "rx": 1615, + "rx": 11780, "speed": 0, "time_since_update": 1, - "tx": 1615}, + "tx": 11780}, {"alias": None, - "cumulative_cx": 18022115359, - "cumulative_rx": 16556891245, - "cumulative_tx": 1465224114, - "cx": 26647, + "cumulative_cx": 5545979740, + "cumulative_rx": 5412582465, + "cumulative_tx": 133397275, + "cx": 11955338, "interface_name": "wlp2s0", "is_up": True, "key": "interface_name", - "rx": 20786, + "rx": 11833811, "speed": 0, "time_since_update": 1, - "tx": 5861}] + "tx": 121527}] Fields descriptions: @@ -439,8 +439,10 @@ Fields descriptions: * **alias**: Interface alias name (optional) (unit is *string*) * **rx**: The received/input rate (in bit per second) (unit is *bps*) * **tx**: The sent/output rate (in bit per second) (unit is *bps*) +* **cx**: The cumulative received+sent rate (in bit per second) (unit is *bps*) * **cumulative_rx**: The number of bytes received through the interface (cumulative) (unit is *bytes*) * **cumulative_tx**: The number of bytes sent through the interface (cumulative) (unit is *bytes*) +* **cumulative_cx**: The cumulative number of bytes reveived and sent through the interface (cumulative) (unit is *bytes*) * **speed**: Maximum interface speed (in bit per second). Can return 0 on some operating-system (unit is *bps*) * **is_up**: Is the interface up ? (unit is *bool*) * **time_since_update**: Number of seconds since last update (unit is *seconds*) @@ -450,28 +452,29 @@ Get a specific field:: # curl http://localhost:61208/api/3/network/interface_name {"interface_name": ["lo", "wlp2s0", + "docker0", + "br-119e6ee04e05", "br-87386b77b676", "br_grafana", - "br-119e6ee04e05", - "docker0", "mpqemubr0", - "veth7f04a34"]} + "tap-1e376645a40", + "veth7ad1596"]} Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/network/interface_name/lo {"lo": [{"alias": None, - "cumulative_cx": 915958900, - "cumulative_rx": 457979450, - "cumulative_tx": 457979450, - "cx": 3230, + "cumulative_cx": 90372412, + "cumulative_rx": 45186206, + "cumulative_tx": 45186206, + "cx": 23560, "interface_name": "lo", "is_up": True, "key": "interface_name", - "rx": 1615, + "rx": 11780, "speed": 0, "time_since_update": 1, - "tx": 1615}]} + "tx": 11780}]} GET now ------- @@ -479,7 +482,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/3/now - "2022-11-20 18:54:33 CET" + "2022-12-21 13:50:24 CET" GET percpu ---------- @@ -490,29 +493,29 @@ Get plugin stats:: [{"cpu_number": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 30.8, - "iowait": 0.0, + "idle": 40.0, + "iowait": 4.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 3.4, - "total": 69.2, - "user": 65.8}, + "system": 7.0, + "total": 60.0, + "user": 48.0}, {"cpu_number": 1, "guest": 0.0, "guest_nice": 0.0, - "idle": 28.0, + "idle": 49.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 72.0, - "user": 72.0}] + "system": 4.0, + "total": 51.0, + "user": 46.0}] Get a specific field:: @@ -531,7 +534,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.006331, + "status": 0.011101, "timeout": 3}] Get a specific field:: @@ -548,7 +551,7 @@ Get a specific item when field matchs the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.006331, + "status": 0.011101, "timeout": 3}]} GET processcount @@ -557,12 +560,12 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/3/processcount - {"pid_max": 0, "running": 1, "sleeping": 331, "thread": 1567, "total": 397} + {"pid_max": 0, "running": 1, "sleeping": 314, "thread": 1698, "total": 441} Get a specific field:: # curl http://localhost:61208/api/3/processcount/total - {"total": 397} + {"total": 441} GET processlist --------------- @@ -570,33 +573,51 @@ GET processlist Get plugin stats:: # curl http://localhost:61208/api/3/processlist - [{"cmdline": ["/snap/firefox/1943/usr/lib/firefox/firefox"], + [{"cmdline": ["/snap/firefox/2154/usr/lib/firefox/firefox", + "-contentproc", + "-childID", + "1", + "-isForBrowser", + "-prefsLen", + "31799", + "-prefMapSize", + "234979", + "-jsInitLen", + "246704", + "-parentBuildID", + "20221128185858", + "-appDir", + "/snap/firefox/2154/usr/lib/firefox/browser", + "{8ed7e0e9-5dcf-4c35-9523-65d5178968f5}", + "4674", + "true", + "tab"], "cpu_percent": 0.0, - "cpu_times": [20747.81, 7006.36, 15689.69, 2975.52, 0.0], + "cpu_times": [544.28, 96.68, 0.0, 0.0, 0.0], "gids": [1000, 1000, 1000], - "io_counters": [11227741184, 20424818688, 0, 0, 0], + "io_counters": [131830784, 0, 0, 0, 0], "key": "pid", - "memory_info": [476663808, 21594279936, 84930560, 634880, 0, 1127260160, 0], - "memory_percent": 6.082852620728732, - "name": "firefox", + "memory_info": [465154048, 3321061376, 73093120, 659456, 0, 731664384, 0], + "memory_percent": 5.935973053610519, + "name": "WebExtensions", "nice": 0, - "num_threads": 116, - "pid": 252940, + "num_threads": 22, + "pid": 4980, "status": "S", "time_since_update": 1, "username": "nicolargo"}, - {"cmdline": ["/usr/bin/gnome-shell"], + {"cmdline": ["/snap/firefox/2154/usr/lib/firefox/firefox"], "cpu_percent": 0.0, - "cpu_times": [11656.94, 3328.41, 32068.61, 6742.69, 0.0], + "cpu_times": [4509.1, 1511.09, 3792.22, 791.2, 0.0], "gids": [1000, 1000, 1000], - "io_counters": [14259195904, 14110011392, 0, 0, 0], + "io_counters": [1919733760, 4714143744, 0, 0, 0], "key": "pid", - "memory_info": [421511168, 6089482240, 42053632, 8192, 0, 667258880, 0], - "memory_percent": 5.379032915658721, - "name": "gnome-shell", + "memory_info": [456572928, 30645571584, 117829632, 659456, 0, 1229160448, 0], + "memory_percent": 5.826466757129147, + "name": "firefox", "nice": 0, - "num_threads": 19, - "pid": 3549, + "num_threads": 178, + "pid": 4674, "status": "S", "time_since_update": 1, "username": "nicolargo"}] @@ -604,234 +625,217 @@ Get plugin stats:: Get a specific field:: # curl http://localhost:61208/api/3/processlist/pid - {"pid": [252940, - 3549, - 253132, - 798728, - 798961, - 253182, - 674399, - 253186, - 798783, - 17347, - 690573, - 798767, - 975311, - 755066, - 798659, - 480067, - 985268, - 985798, - 253147, - 985873, - 964845, - 978231, - 798694, - 51440, - 943757, - 986334, - 2245, - 3499, - 1615, - 450239, - 798791, - 798708, - 923715, - 943740, - 975733, - 975653, - 3958, - 799100, - 4055, - 2917, - 3651, - 897521, - 944802, - 897527, - 2429, - 799468, - 4977, - 253654, - 838724, - 3844, - 838727, - 3744, - 3737, - 602074, - 975718, - 17373, + {"pid": [4980, + 4674, + 5464, + 5110, + 87895, + 87518, + 93773, + 3699, + 5113, + 87474, + 10499, + 10094, + 10140, + 56113, + 50931, + 87407, + 65742, + 5000, + 87546, + 99360, + 87753, + 87995, + 87994, + 99579, + 99462, + 99838, + 51406, + 51412, + 51549, + 10551, + 87616, + 94497, + 9953, + 87853, + 94498, + 87445, + 3586, + 87570, + 100353, + 2510, + 48450, + 4426, + 67307, + 5690, + 87454, + 1653, + 4206, + 87779, + 427, + 17411, + 4050, + 87412, + 4903, + 87413, + 5691, + 2702, + 3820, + 3512, + 5730, + 4008, + 17316, + 10649, + 1777, + 3903, + 3792, + 1616, + 4433, + 10381, + 67618, + 3902, + 10082, + 98474, + 3829, + 10318, + 3897, + 99871, + 10319, + 17315, + 64241, + 66633, + 2209, 1, - 3743, - 3364, - 4062, - 1369, - 4087, - 975786, - 3806, - 3618, - 3760, - 798663, - 3627, - 3929, - 3742, - 602075, - 1391, - 17501, - 3378, - 1415, - 798664, - 17754, - 3736, - 3345, - 3353, - 1587, - 3750, - 14997, - 979218, - 17755, - 3528, - 603305, - 3637, - 3663, - 19717, - 255947, - 1368, - 3592, - 17566, - 3557, - 492260, - 17292, - 253071, - 523017, - 3799, - 16698, - 3905, - 17308, - 2187, + 3351, + 3783, + 3676, + 4005, + 1662, + 4158, + 1641, + 1838, + 3910, + 3730, + 98475, + 2626, + 1636, + 3273, + 3695, + 64274, + 3915, + 10048, + 2688, + 4049, + 10032, + 3907, + 3901, + 4458, + 3904, + 3898, + 3805, + 2417, + 3486, + 1837, + 1868, + 87663, 1416, - 3373, + 10033, + 1782, + 1598, + 3970, + 1663, + 3591, + 3743, + 17467, + 1615, + 3956, + 17484, + 9974, + 4170, + 3527, + 3909, + 1642, + 3861, + 3521, + 1659, + 3908, + 2159, 3697, - 1945, - 670447, - 51420, - 480091, - 670439, - 3813, - 3633, - 3380, - 4518, - 1593, - 3748, - 15018, - 1375, - 799011, - 3745, - 944754, - 603476, - 1397, - 3943, - 17237, - 2371, - 1917, - 3741, - 2412, + 3717, + 1626, + 4036, + 3900, + 4089, + 1660, + 3524, + 3906, + 1654, 3891, - 1381, - 107499, - 1352, - 3817, - 17346, - 1365, - 54676, - 3547, - 107498, - 1392, - 1407, - 3739, - 668620, - 1408, - 3734, - 3804, - 1487, - 3747, - 3437, - 3599, - 3604, - 3583, - 3616, - 3444, - 109608, - 3753, - 3755, - 3569, - 17238, - 3588, - 3385, - 1412, - 17516, - 1360, - 1377, - 986309, - 3729, - 1399, - 798679, - 3517, - 978230, - 3362, - 1743, - 54624, - 3556, - 1367, - 3361, - 2920, - 1176, - 181215, - 602118, - 282637, - 2405, - 1470, - 668850, - 3953, - 54523, - 58637, - 17258, - 1363, - 2406, - 58407, - 566917, - 668849, - 1353, - 181218, - 670451, - 986333, - 181225, - 798666, - 670446, - 2208, - 181228, - 944703, - 3733, - 944728, - 17240, - 944733, - 568874, - 944688, - 3425, - 568871, - 981359, - 4187, - 670472, - 58639, - 2226, - 2252, - 568754, - 1485, - 568870, - 670443, - 567106, + 3781, + 3802, + 3896, + 3994, + 3748, + 465, + 3722, + 5769, + 3726, + 3905, + 3508, + 3584, + 3533, + 1612, + 1648, + 3510, + 3664, + 1652, + 1607, + 3706, + 2680, + 1999, + 1419, + 1629, + 1614, + 1415, + 2681, + 10372, + 5024, + 1666, 3354, - 568756, - 181221, + 4187, + 17364, + 100324, + 1432, + 67596, + 1430, + 87429, + 4620, + 2428, + 98346, + 98353, + 1609, + 67550, + 67574, + 3487, + 67558, + 4546, + 87415, + 67580, + 1599, + 99855, + 100352, + 10035, + 3895, + 2483, + 3572, + 98485, + 2430, + 2465, + 2492, + 1669, + 1431, + 98484, 2, 3, 4, @@ -879,153 +883,232 @@ Get a specific field:: 99, 100, 101, - 103, + 104, 105, - 106, 108, 110, 112, - 114, + 113, 118, 119, + 120, 121, - 130, - 133, - 139, - 188, - 195, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 210, - 211, - 216, - 217, - 234, - 283, - 284, - 359, - 362, - 386, - 485, - 495, - 559, - 560, - 561, - 562, - 778, - 779, - 780, - 781, - 788, - 789, - 790, - 791, - 792, - 793, - 794, - 795, - 848, - 849, - 850, - 851, - 852, - 853, - 854, - 855, - 856, - 857, - 858, - 859, - 860, - 861, - 862, - 863, - 864, - 865, - 866, - 890, - 891, - 898, - 899, - 915, - 916, - 917, - 918, - 919, - 920, - 921, - 1891, - 1897, - 2256, - 2266, - 3584, - 17274, - 58642, - 58643, - 58644, - 58645, - 58646, - 58647, - 58648, - 58649, - 58650, - 929662, - 929663, - 929664, - 972164, - 974002, - 975263, - 975367, - 975368, - 975370, - 975371, - 975372, - 975418, - 982071, - 983348, - 983532, - 984025, - 984027, - 984097, - 984482, - 984850, - 985330, - 985331, - 985482, - 985855, - 985856, - 985945, - 986019]} + 131, + 135, + 141, + 204, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 249, + 250, + 255, + 256, + 313, + 366, + 367, + 447, + 448, + 545, + 614, + 685, + 686, + 687, + 694, + 950, + 951, + 952, + 953, + 956, + 957, + 958, + 959, + 960, + 961, + 966, + 967, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1056, + 1057, + 1065, + 1066, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 2188, + 2190, + 2491, + 2527, + 2539, + 2586, + 2587, + 2589, + 2590, + 2592, + 2598, |