diff options
-rw-r--r-- | conf/glances.conf | 8 | ||||
-rw-r--r-- | docs/aoa/diskio.rst | 8 | ||||
-rw-r--r-- | docs/aoa/docker.rst | 2 | ||||
-rw-r--r-- | docs/aoa/fs.rst | 5 | ||||
-rw-r--r-- | docs/aoa/network.rst | 2 | ||||
-rw-r--r-- | docs/aoa/wifi.rst | 1 | ||||
-rw-r--r-- | docs/api.rst | 1863 | ||||
-rw-r--r-- | docs/man/glances.1 | 6 | ||||
-rw-r--r-- | glances/plugins/glances_diskio.py | 5 | ||||
-rw-r--r-- | glances/plugins/glances_docker.py | 8 | ||||
-rw-r--r-- | glances/plugins/glances_fs.py | 6 | ||||
-rw-r--r-- | glances/plugins/glances_network.py | 4 | ||||
-rw-r--r-- | glances/plugins/glances_plugin.py | 13 | ||||
-rw-r--r-- | glances/plugins/glances_sensors.py | 2 | ||||
-rw-r--r-- | glances/plugins/glances_wifi.py | 2 |
15 files changed, 984 insertions, 951 deletions
diff --git a/conf/glances.conf b/conf/glances.conf index 57478e28..1d9ce3e0 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -158,6 +158,8 @@ tx_warning=80 tx_critical=90 # Define the list of hidden network interfaces (comma-separated regexp) #hide=docker.*,lo +# Define the list of wireless network interfaces to be show (comma-separated) +#show=docker.* # WLAN 0 alias #wlan0_alias=Wireless # It is possible to overwrite the bitrate thresholds per interface @@ -187,6 +189,8 @@ nf_conntrack_percent_critical=90 disable=True # Define the list of hidden wireless network interfaces (comma-separated regexp) hide=lo,docker.* +# Define the list of wireless network interfaces to be show (comma-separated) +#show=docker.* # Define SIGNAL thresholds in db (lower is better...) # Based on: http://serverfault.com/questions/501025/industry-standard-for-minimum-wifi-signal-strength careful=-65 @@ -198,6 +202,8 @@ disable=False # Define the list of hidden disks (comma-separated regexp) #hide=sda2,sda5,loop.* hide=loop.*,/dev/loop* +# Define the list of disks to be show (comma-separated) +#show=sda.* # Alias for sda1 #sda1_alias=InternalDisk @@ -205,6 +211,8 @@ hide=loop.*,/dev/loop* disable=False # Define the list of hidden file system (comma-separated regexp) hide=/boot.*,/snap.* +# Define the list of file system to be show (comma-separated) +#show=/,/srv # Define filesystem space thresholds in % # Default values if not defined: 50/70/90 # It is also possible to define per mount point value diff --git a/docs/aoa/diskio.rst b/docs/aoa/diskio.rst index f6d03ffe..6ae77207 100644 --- a/docs/aoa/diskio.rst +++ b/docs/aoa/diskio.rst @@ -17,6 +17,7 @@ There is no alert on this information. It's possible to define: +- a list of disk to show (white list) - a list of disks to hide - aliases for disk name @@ -29,3 +30,10 @@ and the specific ``sda5`` partition: [diskio] hide=sda5,loop.* + +or another example: + +.. code-block:: ini + + [diskio] + show=sda.* diff --git a/docs/aoa/docker.rst b/docs/aoa/docker.rst index c21dc850..2c5b951d 100644 --- a/docs/aoa/docker.rst +++ b/docs/aoa/docker.rst @@ -25,6 +25,8 @@ under the ``[docker]`` section: show=thiscontainer,andthisone,andthoseones.* # Hide some containers (comma separeted list of container name or regular expression) hide=donotshowthisone,andthose.* + # Show only specific containers (comma separeted list of container name or regular expression) + #show=showthisone,andthose.* # Define the maximum docker size name (default is 20 chars) max_name_size=20 # Global containers' thresholds for CPU and MEM (in %) diff --git a/docs/aoa/fs.rst b/docs/aoa/fs.rst index 92428555..1b3b7155 100644 --- a/docs/aoa/fs.rst +++ b/docs/aoa/fs.rst @@ -46,9 +46,10 @@ To hide all mount points starting with /boot and /snap: Filtering are also applied on device name (Glances 3.1.4 or higher). -Example to hide all /dev/sdb mount points: +It is also possible to configure a white list of devices to display: +Example to only show /dev/sdb mount points: .. code-block:: ini [fs] - hide=/dev/sdb.* + show=/dev/sdb.* diff --git a/docs/aoa/network.rst b/docs/aoa/network.rst index 2c5bd719..27ad1581 100644 --- a/docs/aoa/network.rst +++ b/docs/aoa/network.rst @@ -39,6 +39,8 @@ virtual docker interface (docker0, docker1, ...): tx_critical=90 # Define the list of hidden network interfaces (comma-separated regexp) hide=docker.*,lo + # Define the list of network interfaces to show (comma-separated regexp) + #show=eth0,eth1 # WLAN 0 alias wlan0_alias=Wireless IF # It is possible to overwrite the bitrate thresholds per interface diff --git a/docs/aoa/wifi.rst b/docs/aoa/wifi.rst index deb71fbc..ca279655 100644 --- a/docs/aoa/wifi.rst +++ b/docs/aoa/wifi.rst @@ -27,6 +27,7 @@ hide the loopback interface (lo) and all the virtual docker interfaces: [wifi] hide=lo,docker.* + #show=wlp2s0 # Define SIGNAL thresholds in dBm (lower is better...) careful=-65 warning=-75 diff --git a/docs/api.rst b/docs/api.rst index cf45dc46..826deb89 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -20,7 +20,7 @@ It will return nothing but a 200 return code if everythin is OK. Get the Rest API status:: # curl -I http://localhost:61208/api/3/status - 'HTTP/1.0 200 OK' + "HTTP/1.0 200 OK" GET plugins list ---------------- @@ -28,56 +28,37 @@ GET plugins list Get the plugins list:: # curl http://localhost:61208/api/3/pluginslist - ['alert', - 'amps', - 'cloud', - 'connections', - 'core', - 'cpu', - 'diskio', - 'docker', - 'folders', - 'fs', - 'gpu', - 'help', - 'ip', - 'irq', - 'load', - 'mem', - 'memswap', - 'network', - 'now', - 'percpu', - 'ports', - 'processcount', - 'processlist', - 'psutilversion', - 'quicklook', - 'raid', - 'sensors', - 'smart', - 'system', - 'uptime', - 'wifi'] - -GET alert ---------- - -Get plugin stats:: - - # curl http://localhost:61208/api/3/alert - [[1649600032.0, - -1, - 'WARNING', - 'MEM', - 87.2703077870435, - 87.2703077870435, - 87.2703077870435, - 87.2703077870435, - 1, - [], - '', - 'memory_percent']] + ["alert", + "amps", + "cloud", + "connections", + "core", + "cpu", + "diskio", + "docker", + "folders", + "fs", + "gpu", + "help", + "ip", + "irq", + "load", + "mem", + "memswap", + "network", + "now", + "percpu", + "ports", + "processcount", + "processlist", + "psutilversion", + "quicklook", + "raid", + "sensors", + "smart", + "system", + "uptime", + "wifi"] GET amps -------- @@ -85,42 +66,42 @@ GET amps Get plugin stats:: # curl http://localhost:61208/api/3/amps - [{'count': 0, - 'countmax': None, - 'countmin': 1.0, - 'key': 'name', - 'name': 'Dropbox', - 'refresh': 3.0, - 'regex': True, - 'result': None, - 'timer': 0.14095854759216309}, - {'count': 0, - 'countmax': 20.0, - 'countmin': None, - 'key': 'name', - 'name': 'Python', - 'refresh': 3.0, - 'regex': True, - 'result': None, - 'timer': 0.14076852798461914}] + [{"count": 0, + "countmax": None, + "countmin": 1.0, + "key": "name", + "name": "Dropbox", + "refresh": 3.0, + "regex": True, + "result": None, + "timer": 0.9064404964447021}, + {"count": 0, + "countmax": 20.0, + "countmin": None, + "key": "name", + "name": "Python", + "refresh": 3.0, + "regex": True, + "result": None, + "timer": 0.9063467979431152}] Get a specific field:: # curl http://localhost:61208/api/3/amps/name - {'name': ['Dropbox', 'Python', 'Conntrack', 'Nginx', 'Systemd', 'SystemV']} + {"name": ["Dropbox", "Python", "Conntrack", "Nginx", "Systemd", "SystemV"]} Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/amps/name/Dropbox - {'Dropbox': [{'count': 0, - 'countmax': None, - 'countmin': 1.0, - 'key': 'name', - 'name': 'Dropbox', - 'refresh': 3.0, - 'regex': True, - 'result': None, - 'timer': 0.14095854759216309}]} + {"Dropbox": [{"count": 0, + "countmax": None, + "countmin": 1.0, + "key": "name", + "name": "Dropbox", + "refresh": 3.0, + "regex": True, + "result": None, + "timer": 0.9064404964447021}]} GET core -------- @@ -128,7 +109,7 @@ GET core Get plugin stats:: # curl http://localhost:61208/api/3/core - {'log': 4, 'phys': 2} + {"log": 4, "phys": 2} Fields descriptions: @@ -138,7 +119,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/core/phys - {'phys': 2} + {"phys": 2} GET cpu ------- @@ -146,23 +127,23 @@ GET cpu Get plugin stats:: # curl http://localhost:61208/api/3/cpu - {'cpucore': 4, - 'ctx_switches': 0, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 59.6, - 'interrupts': 0, - 'iowait': 0.2, - 'irq': 0.0, - 'nice': 0.7, - 'soft_interrupts': 0, - 'softirq': 0.9, - 'steal': 0.0, - 'syscalls': 0, - 'system': 10.1, - 'time_since_update': 1, - 'total': 38.8, - 'user': 28.5} + {"cpucore": 4, + "ctx_switches": 0, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 31.9, + "interrupts": 0, + "iowait": 0.2, + "irq": 0.0, + "nice": 0.0, + "soft_interrupts": 0, + "softirq": 0.0, + "steal": 0.0, + "syscalls": 0, + "system": 5.5, + "time_since_update": 1, + "total": 64.3, + "user": 62.4} Fields descriptions: @@ -184,7 +165,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/cpu/total - {'total': 38.8} + {"total": 64.3} GET diskio ---------- @@ -192,36 +173,71 @@ GET diskio Get plugin stats:: # curl http://localhost:61208/api/3/diskio - [{'disk_name': 'sda', - 'key': 'disk_name', - 'read_bytes': 0, - 'read_count': 0, - 'time_since_update': 1, - 'write_bytes': 0, - 'write_count': 0}, - {'disk_name': 'sda1', - 'key': 'disk_name', - 'read_bytes': 0, - 'read_count': 0, - 'time_since_update': 1, - 'write_bytes': 0, - 'write_count': 0}] + [{"disk_name": "sda", + "key": "disk_name", + "read_bytes": 0, + "read_count": 0, + "time_since_update": 1, + "write_bytes": 0, + "write_count": 0}, + {"disk_name": "sda1", + "key": "disk_name", + "read_bytes": 0, + "read_count": 0, + "time_since_update": 1, + "write_bytes": 0, + "write_count": 0}] Get a specific field:: # curl http://localhost:61208/api/3/diskio/disk_name - {'disk_name': ['sda', 'sda1', 'sda2', 'sda5', 'dm-0', 'dm-1']} + {"disk_name": ["sda", "sda1", "sda2", "sda5", "dm-0", "dm-1"]} Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/diskio/disk_name/sda - {'sda': [{'disk_name': 'sda', - 'key': 'disk_name', - 'read_bytes': 0, - 'read_count': 0, - 'time_since_update': 1, - 'write_bytes': 0, - 'write_count': 0}]} + {"sda": [{"disk_name": "sda", + "key": "disk_name", + "read_bytes": 0, + "read_count": 0, + "time_since_update": 1, + "write_bytes": 0, + "write_count": 0}]} + +GET docker +---------- + +Get plugin stats:: + + # curl http://localhost:61208/api/3/docker + [{"Command": ["/entrypoint.sh", "telegraf"], + "Id": "9230f84acadbb7bc8c087d0827389c9a87bb7c7022a1a299dcf4a5f3a441f1d3", + "Image": ["telegraf:latest"], + "Names": ["telegraf"], + "Status": "running", + "Uptime": "1 weeks", + "cpu_percent": 0.0, + "io_r": None, + "io_w": None, + "key": "name", + "memory_usage": 48050176, + "name": "telegraf", + "network_rx": None, + "network_tx": None}, + {"Command": ["/run.sh"], + "Id": "09d96704c3e6b6cb21657d990e3c8ae1e44bac779ded141efb8fed899563dd66", + "Image": ["grafana/grafana:latest"], + "Names": ["grafana"], + "Status": "running", + "Uptime": "1 weeks", + "cpu_percent": 0.0, + "io_r": None, + "io_w": None, + "key": "name", + "memory_usage": None, + "name": "grafana", + "network_rx": None, + "network_tx": None}] GET fs ------ @@ -229,31 +245,31 @@ GET fs Get plugin stats:: # curl http://localhost:61208/api/3/fs - [{'device_name': '/dev/mapper/ubuntu--gnome--vg-root', - 'free': 79632797696, - 'fs_type': 'ext4', - 'key': 'mnt_point', - 'mnt_point': '/', - 'percent': 65.5, - 'size': 243396149248, - 'used': 151375896576}] + [{"device_name": "/dev/mapper/ubuntu--gnome--vg-root", + "free": 106242338816, + "fs_type": "ext4", + "key": "mnt_point", + "mnt_point": "/", + "percent": 54.0, + "size": 243396149248, + "used": 124766355456}] Get a specific field:: # curl http://localhost:61208/api/3/fs/mnt_point - {'mnt_point': ['/']} + {"mnt_point": ["/"]} 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': 79632797696, - 'fs_type': 'ext4', - 'key': 'mnt_point', - 'mnt_point': '/', - 'percent': 65.5, - 'size': 243396149248, - 'used': 151375896576}]} + {"/": [{"device_name": "/dev/mapper/ubuntu--gnome--vg-root", + "free": 106242338816, + "fs_type": "ext4", + "key": "mnt_point", + "mnt_point": "/", + "percent": 54.0, + "size": 243396149248, + "used": 124766355456}]} GET ip ------ @@ -261,16 +277,16 @@ GET ip Get plugin stats:: # curl http://localhost:61208/api/3/ip - {'address': '192.168.0.49', - 'gateway': '192.168.0.254', - 'mask': '255.255.255.0', - 'mask_cidr': 24, - 'public_address': '88.165.169.242'} + {"address": "192.168.0.33", + "gateway": "192.168.0.254", + "mask": "255.255.255.0", + "mask_cidr": 24, + "public_address": "91.166.228.228"} Get a specific field:: # curl http://localhost:61208/api/3/ip/address - {'address': '192.168.0.49'} + {"address": "192.168.0.33"} GET load -------- @@ -278,7 +294,10 @@ GET load Get plugin stats:: # curl http://localhost:61208/api/3/load - {'cpucore': 4, 'min1': 1.76, 'min15': 1.61, 'min5': 1.69} + {"cpucore": 4, + "min1": 2.14453125, + "min15": 0.71728515625, + "min5": 1.24462890625} Fields descriptions: @@ -290,7 +309,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/load/min1 - {'min1': 1.76} + {"min1": 2.14453125} GET mem ------- @@ -298,16 +317,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/3/mem - {'active': 3452456960, - 'available': 999153664, - 'buffers': 112189440, - 'cached': 1540894720, - 'free': 999153664, - 'inactive': 1303179264, - 'percent': 87.3, - 'shared': 497025024, - 'total': 7849000960, - 'used': 6849847296} + {"active": 2638856192, + "available": 2748903424, + "buffers": 271753216, + "cached": 3217653760, + "free": 2748903424, + "inactive": 4105572352, + "percent": 64.9, + "shared": 640585728, + "total": 7837945856, + "used": 5089042432} Fields descriptions: @@ -326,7 +345,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/mem/total - {'total': 7849000960} + {"total": 7837945856} GET memswap ----------- @@ -334,13 +353,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/3/memswap - {'free': 7769960448, - 'percent': 3.9, - 'sin': 21983232, - 'sout': 333402112, - 'time_since_update': 1, - 'total': 8082419712, - 'used': 312459264} + {"free": 7083606016, + "percent": 12.4, + "sin": 413794304, + "sout": 1457811456, + "time_since_update": 1, + "total": 8082419712, + "used": 998813696} Fields descriptions: @@ -355,7 +374,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/memswap/total - {'total': 8082419712} + {"total": 8082419712} GET network ----------- @@ -363,30 +382,30 @@ GET network Get plugin stats:: # curl http://localhost:61208/api/3/network - [{'alias': None, - 'cumulative_cx': 243100, - 'cumulative_rx': 6357, - 'cumulative_tx': 236743, - 'cx': 0, - 'interface_name': 'docker0', - 'is_up': False, - 'key': 'interface_name', - 'rx': 0, - 'speed': 0, - 'time_since_update': 1, - 'tx': 0}, - {'alias': None, - 'cumulative_cx': 183333, - 'cumulative_rx': 0, - 'cumulative_tx': 183333, - 'cx': 0, - 'interface_name': 'vboxnet0', - 'is_up': True, - 'key': 'interface_name', - 'rx': 0, - 'speed': 10485760, - 'time_since_update': 1, - 'tx': 0}] + [{"alias": None, + "cumulative_cx": 102971498, + "cumulative_rx": 51485749, + "cumulative_tx": 51485749, + "cx": 4922, + "interface_name": "lo", + "is_up": True, + "key": "interface_name", + "rx": 2461, + "speed": 0, + "time_since_update": 1, + "tx": 2461}, + {"alias": None, + "cumulative_cx": 3379334650, + "cumulative_rx": 3170582491, + "cumulative_tx": 208752159, + "cx": 27167, + "interface_name": "wlp2s0", + "is_up": True, + "key": "interface_name", + "rx": 20882, + "speed": 0, + "time_since_update": 1, + "tx": 6285}] Fields descriptions: @@ -403,30 +422,32 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/network/interface_name - {'interface_name': ['docker0', - 'vboxnet0', - 'br-87386b77b676', - 'lo', - 'br-119e6ee04e05', - 'br_grafana', - 'mpqemubr0', - 'wlp2s0']} + {"interface_name": ["lo", + "wlp2s0", + "mpqemubr0", + "br-87386b77b676", + "br_grafana", + "docker0", + "br-119e6ee04e05", + "vethfbde85e", + "veth33a86dc", + "veth5ebe4bf"]} Get a specific item when field matchs the given value:: - # curl http://localhost:61208/api/3/network/interface_name/docker0 - {'docker0': [{'alias': None, - 'cumulative_cx': 243100, - 'cumulative_rx': 6357, - 'cumulative_tx': 236743, - 'cx': 0, - 'interface_name': 'docker0', - 'is_up': False, - 'key': 'interface_name', - 'rx': 0, - 'speed': 0, - 'time_since_update': 1, - 'tx': 0}]} + # curl http://localhost:61208/api/3/network/interface_name/lo + {"lo": [{"alias": None, + "cumulative_cx": 102971498, + "cumulative_rx": 51485749, + "cumulative_tx": 51485749, + "cx": 4922, + "interface_name": "lo", + "is_up": True, + "key": "interface_name", + "rx": 2461, + "speed": 0, + "time_since_update": 1, + "tx": 2461}]} GET now ------- @@ -434,7 +455,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/3/now - '2022-04-10 16:13:52 CEST' + "2022-05-22 16:21:44 CEST" GET percpu ---------- @@ -442,37 +463,37 @@ GET percpu Get plugin stats:: # curl http://localhost:61208/api/3/percpu - [{'cpu_number': 0, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 78.0, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 1.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 9.0, - 'total': 22.0, - 'user': 9.0}, - {'cpu_number': 1, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 55.0, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 1.0, - 'softirq': 2.0, - 'steal': 0.0, - 'system': 7.0, - 'total': 45.0, - 'user': 32.0}] + [{"cpu_number": 0, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 36.6, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 6.9, + "total": 63.4, + "user": 56.4}, + {"cpu_number": 1, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 34.0, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 3.0, + "total": 66.0, + "user": 62.0}] Get a specific field:: # curl http://localhost:61208/api/3/percpu/cpu_number - {'cpu_number': [0, 1, 2, 3]} + {"cpu_number": [0, 1, 2, 3]} GET ports --------- @@ -480,31 +501,31 @@ GET ports Get plugin stats:: # curl http://localhost:61208/api/3/ports - [{'description': 'DefaultGateway', - 'host': '192.168.0.254', - 'indice': 'port_0', - 'port': 0, - 'refresh': 30, - 'rtt_warning': None, - 'status': 0.007151, - 'timeout': 3}] + [{"description": "DefaultGateway", + "host": "192.168.0.254", + "indice": "port_0", + "port": 0, + "refresh": 30, + "rtt_warning": None, + "status": 0.027759, + "timeout": 3}] Get a specific field:: # curl http://localhost:61208/api/3/ports/host - {'host': ['192.168.0.254']} + {"host": ["192.168.0.254"]} Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/ports/host/192.168.0.254 - {'192.168.0.254': [{'description': 'DefaultGateway', - 'host': '192.168.0.254', - 'indice': 'port_0', - 'port': 0, - 'refresh': 30, - 'rtt_warning': None, - 'status': 0.007151, - 'timeout': 3}]} + {"192.168.0.254": [{"description": "DefaultGateway", + "host": "192.168.0.254", + "indice": "port_0", + "port": 0, + "refresh": 30, + "rtt_warning": None, + "status": 0.027759, + "timeout": 3}]} GET processcount ---------------- @@ -512,12 +533,12 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/3/processcount - {'pid_max': 0, 'running': 1, 'sleeping': 261, 'thread': 1317, 'total': 319} + {"pid_max": 0, "running": 1, "sleeping": 255, "thread": 1374, "total": 319} Get a specific field:: # curl http://localhost:61208/api/3/processcount/total - {'total': 319} + {"total": 319} GET processlist --------------- @@ -525,233 +546,251 @@ GET processlist Get plugin stats:: # curl http://localhost:61208/api/3/processlist - [{'cmdline': ['/usr/lib/virtualbox/VBoxHeadless', - '--comment', - 'minikube', - '--startvm', - '74869efd-ada3-41eb-98e3-b7d2901c8e39', - '--vrde', - 'config'], - 'cpu_percent': 0.0, - 'cpu_times': pcputimes(user=128.45, system=1415.02, children_user=0.0, children_system=0.0, iowait=0.0), - 'gids': pgids(real=1000, effective=1000, saved=1000), - 'io_counters': [0, 0, 0, 0, 0], - 'key': 'pid', - 'memory_info': pmem(rss=963088384, vms=4204658688, shared=924651520, text=53248, lib=0, data=98004992, dirty=0), - 'memory_percent': 12.270203417072839, - 'name': 'VBoxHeadless', - 'nice': 0, - 'num_threads': 28, - 'pid': 9872, - 'ppid': 9690, - 'status': 'S', - 'time_since_update': 1, - 'username': 'nicolargo'}, - {'cmdline': ['/usr/lib/firefox/firefox', - '-contentproc', - '-childID', - '4', - '-isForBrowser', - '-prefsLen', - '4855', - '-prefMapSize', - '253021', - '-jsInitLen', - '278884', - '-parentBuildID', - '20211215221728', - '-appDir', - '/usr/lib/firefox/browser', - '4964', - 'true', - 'tab'], - 'cpu_percent': 0.0, - 'cpu_times': pcputimes(user=157.91, system=26.98, children_user=0.0, children_system=0.0, iowait=0.03), - 'gids': pgids(real=1000, effective=1000, saved=1000), - 'io_counters': [9154560, 0, 0, 0, 0], - 'key': 'pid', - 'memory_info': pmem(rss=413597696, vms=3211755520, shared=44220416, text=643072, lib=0, data=648302592, dirty=0), - 'memory_percent': 5.269431079289866, - 'name': 'WebExtensions', - 'nice': 0, - 'num_threads': 21, - 'pid': 5235, - 'ppid': 4964, - 'status': 'S', - 'time_since_update': 1, - 'username': 'nicolargo'}] + [{"cmdline": ["/snap/firefox/1300/usr/lib/firefox/firefox"], + "cpu_percent": 0.0, + "cpu_times": pcputimes(user=2407.22, system=913.36, children_user=2160.45, children_system=460.56, iowait=0.0), + "gids": pgids(real=1000, effective=1000, saved=1000), + "io_counters": [1388816384, 3879223296, 0, 0, 0], + "key": "pid", + "memory_info": pmem(rss=517357568, vms=13510344704, shared=131108864, text=643072, lib=0, data=1639305216, dirty=0), + "memory_percent": 6.600678002948429, + "name": "firefox", + "nice": 0, + "num_threads": 123, + "pid": 10259, + "ppid": 2922, + "status": "S", + "time_since_update": 1, + "username": "nicolargo"}, + {"cmdline": ["/snap/firefox/1300/usr/lib/firefox/firefox", + "-contentproc", + "-childID", + "1", + "-isForBrowser", + "-prefsLen", + "628", + "-prefMapSize", + "2677 |