.. _api: Python API documentation ======================== This documentation describes the Glances Python API. Note: This API is only available in Glances 4.4.0 or higher. TL;DR ----- You can access the Glances API by importing the `glances.api` module and creating an instance of the `GlancesAPI` class. This instance provides access to all Glances plugins and their fields. For example, to access the CPU plugin and its total field, you can use the following code: .. code-block:: python >>> from glances import api >>> gl = api.GlancesAPI() >>> gl.cpu {'cpucore': 16, 'ctx_switches': 321598828, 'guest': 0.0, 'idle': 92.2, 'interrupts': 197800248, 'iowait': 0.3, 'irq': 0.0, 'nice': 0.0, 'soft_interrupts': 101446182, 'steal': 0.0, 'syscalls': 0, 'system': 5.1, 'total': 15.7, 'user': 2.4} >>> gl.cpu.get("total") 15.7 >>> gl.mem.get("used") 9229208584 >>> gl.auto_unit(gl.mem.get("used")) 8.60G If the stats return a list of items (like network interfaces or processes), you can access them by their name: .. code-block:: python >>> gl.network.keys() ['wlp0s20f3', 'veth22ca982'] >>> gl.network["wlp0s20f3"] {'alias': None, 'bytes_all': 0, 'bytes_all_gauge': 4752368171, 'bytes_all_rate_per_sec': 0.0, 'bytes_recv': 0, 'bytes_recv_gauge': 4387358888, 'bytes_recv_rate_per_sec': 0.0, 'bytes_sent': 0, 'bytes_sent_gauge': 365009283, 'bytes_sent_rate_per_sec': 0.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, 'time_since_update': 0.26566219329833984} Init Glances Python API ----------------------- Init the Glances API: .. code-block:: python >>> from glances import api >>> gl = api.GlancesAPI() Get Glances plugins list ------------------------ Get the plugins list: .. code-block:: python >>> gl.plugins() ['alert', 'ports', 'diskio', 'containers', 'processcount', 'programlist', 'gpu', 'percpu', 'system', 'network', 'cpu', 'amps', 'processlist', 'load', 'sensors', 'uptime', 'now', 'fs', 'wifi', 'ip', 'help', 'version', 'psutilversion', 'core', 'mem', 'folders', 'quicklook', 'memswap'] Glances alert ------------- Alert stats: .. code-block:: python >>> type(gl.alert) >>> gl.alert [] Alert fields description: * begin: Begin timestamp of the event * end: End timestamp of the event (or -1 if ongoing) * state: State of the event (WARNING|CRITICAL) * type: Type of the event (CPU|LOAD|MEM) * max: Maximum value during the event period * avg: Average value during the event period * min: Minimum value during the event period * sum: Sum of the values during the event period * count: Number of values during the event period * top: Top 3 processes name during the event period * desc: Description of the event * sort: Sort key of the top processes * global_msg: Global alert message Alert limits: .. code-block:: python >>> gl.alert.limits {'alert_disable': ['False'], 'history_size': 1200.0} Glances ports ------------- Ports stats: .. code-block:: python >>> type(gl.ports) >>> gl.ports [{'description': 'DefaultGateway', 'host': '192.168.1.1', 'indice': 'port_0', 'port': 0, 'refresh': 30, 'rtt_warning': None, 'status': 0.008506, 'timeout': 3}] Ports fields description: * host: Measurement is be done on this host (or IP address) * port: Measurement is be done on this port (0 for ICMP) * description: Human readable description for the host/port * refresh: Refresh time (in seconds) for this host/port * timeout: Timeout (in seconds) for the measurement * status: Measurement result (in seconds) * rtt_warning: Warning threshold (in seconds) for the measurement * indice: Unique indice for the host/port Ports limits: .. code-block:: python >>> gl.ports.limits {'history_size': 1200.0, 'ports_disable': ['False'], 'ports_port_default_gateway': ['True'], 'ports_refresh': 30.0, 'ports_timeout': 3.0} Glances diskio -------------- Diskio stats: .. code-block:: python >>> type(gl.diskio) >>> gl.diskio Return a dict of dict with key= >>> gl.diskio.keys() ['nvme0n1', 'nvme0n1p1', 'nvme0n1p2', 'nvme0n1p3', 'dm-0', 'dm-1'] >>> gl.diskio.get("nvme0n1") {'disk_name': 'nvme0n1', 'key': 'disk_name', 'read_bytes': 20552676352, 'read_count': 1435818, 'read_latency': 0, 'read_time': 269919, 'write_bytes': 164608914432, 'write_count': 3340198, 'write_latency': 0, 'write_time': 7949769} Diskio fields description: * disk_name: Disk name. * read_count: Number of reads. * write_count: Number of writes. * read_bytes: Number of bytes read. * write_bytes: Number of bytes written. * read_time: Time spent reading. * write_time: Time spent writing. * read_latency: Mean time spent reading per operation. * write_latency: Mean time spent writing per operation. Diskio limits: .. code-block:: python >>> gl.diskio.limits {'diskio_disable': ['False'], 'diskio_hide': ['loop.*', '/dev/loop.*'], 'diskio_hide_zero': ['False'], 'diskio_rx_latency_careful': 10.0, 'diskio_rx_latency_critical': 50.0, 'diskio_rx_latency_warning': 20.0, 'diskio_tx_latency_careful': 10.0, 'diskio_tx_latency_critical': 50.0, 'diskio_tx_latency_warning': 20.0, 'history_size': 1200.0} Glances containers ------------------ Containers stats: .. code-block:: python >>> type(gl.containers) >>> gl.containers Return a dict of dict with key= >>> gl.containers.keys() ['nats-for-glances'] >>> gl.containers.get("nats-for-glances") {'command': '/nats-server --config nats-server.conf', 'cpu': {'total': 0.0}, 'cpu_percent': 0.0, 'created': '2026-03-12T20:14:41.833733458Z', 'engine': 'docker', 'id': '5a46c40efc1cf41d855e35617b5b34ba146b78b9f8fd2a07dcfab9cd2a9d673b', 'image': ('nats:latest',), 'io': {}, 'io_rx': None, 'io_wx': None, 'key': 'name', 'memory': {}, 'memory_inactive_file': None, 'memory_limit': None, 'memory_percent': None, 'memory_usage': None, 'name': 'nats-for-glances', 'network': {}, 'network_rx': None, 'network_tx': None, 'ports': '4222->4222/tcp,6222->6222/tcp,8222->8222/tcp', 'status': 'running', 'uptime': 'a week'} Containers fields description: * name: Container name * id: Container ID * image: Container image * status: Container status * created: Container creation date * command: Container command * cpu_percent: Container CPU consumption * memory_inactive_file: Container memory inactive file * memory_limit: Container memory limit * memory_usage: Container memory usage * io_rx: Container IO bytes read rate * io_wx: Container IO bytes write rate * network_rx: Container network RX bitrate * network_tx: Container network TX bitrate * ports: Container ports * uptime: Container uptime * engine: Container engine (Docker, Podman, and LXD are currently supported) * pod_name: Pod name (only with Podman) * pod_id: Pod ID (only with Podman) Containers limits: .. code-block:: python >>> gl.containers.limits {'containers_all': ['False'], 'containers_disable': ['False'], 'containers_disable_stats': ['command'], 'containers_max_name_size': 20.0, 'history_size': 1200.0} Glances processcount -------------------- Processcount stats: .. code-block:: python >>> type(gl.processcount) >>> gl.processcount {'pid_max': 0, 'running': 1, 'sleeping': 425, 'thread': 2171, 'total': 570} >>> gl.processcount.keys() ['total', 'running', 'sleeping', 'thread', 'pid_max'] >>> gl.processcount.get("total") 570 Processcount fields description: * total: Total number of processes * running: Total number of running processes * sleeping: Total number of sleeping processes * thread: Total number of threads * pid_max: Maximum number of processes Processcount limits: .. code-block:: python >>> gl.processcount.limits {'history_size': 1200.0, 'processcount_disable': ['False']} Glances gpu ----------- Gpu stats: .. code-block:: python >>> 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: * gpu_id: GPU identification * name: GPU name * mem: Memory consumption * proc: GPU processor consumption * temperature: GPU temperature * fan_speed: GPU fan speed Gpu limits: .. code-block:: python >>> gl.gpu.limits {'gpu_disable': ['False'], 'gpu_mem_careful': 50.0, 'gpu_mem_critical': 90.0, 'gpu_mem_warning': 70.0, 'gpu_proc_careful': 50.0, 'gpu_proc_critical': 90.0, 'gpu_proc_warning': 70.0, 'gpu_temperature_careful': 60.0, 'gpu_temperature_critical': 80.0, 'gpu_temperature_warning': 70.0, 'history_size': 1200.0} Glances percpu -------------- Percpu stats: .. code-block:: python >>> type(gl.percpu) >>> gl.percpu Return a dict of dict with key= >>> gl.percpu.keys() [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] >>> gl.percpu.get("0") {'cpu_number': 0, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, 'idle': 28.0, 'interrupt': None, 'iowait': 1.0, 'irq': 0.0, 'key': 'cpu_number', 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, 'system': 13.0, 'total': 72.0, 'user': 2.0} Percpu fields description: * cpu_number: CPU number * total: Sum of CPU percentages (except idle) for current CPU number. * system: Percent time spent in kernel space. System CPU time is the time spent running code in the Operating System kernel. * user: CPU percent time spent in user space. User CPU time is the time spent on the processor running your program's code (or code in libraries). * iowait: *(Linux)*: percent time spent by the CPU waiting for I/O operations to complete. * idle: percent of CPU used by any program. Every program or task that runs on a computer system occupies a certain amount of processing time on the CPU. If the CPU has completed all tasks it is idle. * irq: *(Linux and BSD)*: percent time spent servicing/handling hardware/software interrupts. Time servicing interrupts (hardware + software). * nice: *(Unix)*: percent time occupied by user level processes with a positive nice value. The time the CPU has spent running users' processes that have been *niced*. * steal: *(Linux)*: percentage of time a virtual CPU waits for a real CPU while the hypervisor is servicing another virtual processor. * guest: *(Linux)*: percent of time spent running a virtual CPU for guest operating systems under the control of the Linux kernel. * guest_nice: *(Linux)*: percent of time spent running a niced guest (virtual CPU). * softirq: *(Linux)*: percent of time spent handling software interrupts. * dpc: *(Windows)*: percent of time spent handling deferred procedure calls. * interrupt: *(Windows)*: percent of time spent handling software interrupts. Percpu limits: .. code-block:: python >>> gl.percpu.limits {'history_size': 1200.0, 'percpu_disable': ['False'], 'percpu_iowait_careful': 50.0, 'percpu_iowait_critical': 90.0, 'percpu_iowait_warning': 70.0, 'percpu_max_cpu_display': 4.0, 'percpu_system_careful': 50.0, 'percpu_system_critical': 90.0, 'percpu_system_warning': 70.0, 'percpu_user_careful': 50.0, 'percpu_user_critical': 90.0, 'percpu_user_warning': 70.0} Glances system -------------- System stats: .. code-block:: python >>> type(gl.system) >>> gl.system {'hostname': 'nicolargo-xps15', 'hr_name': 'Ubuntu 24.04 64bit / Linux 6.17.0-19-generic', 'linux_distro': 'Ubuntu 24.04', 'os_name': 'Linux', 'os_version': '6.17.0-19-generic', 'platform': '64bit'} >>> gl.system.keys() ['os_name', 'hostname', 'platform', 'os_version', 'linux_distro', 'hr_name'] >>> gl.system.get("os_name") 'Linux' System fields description: * os_name: Operating system name * hostname: Hostname * platform: Platform (32 or 64 bits) * linux_distro: Linux distribution * os_version: Operating system version * hr_name: Human readable operating system name System limits: .. code-block:: python >>> gl.system.limits {'history_size': 1200.0, 'system_disable': ['False'], 'system_refresh': 60} Glances network --------------- Network stats: .. code-block:: python >>> type(gl.network) >>> gl.network Return a dict of dict with key= >>> gl.network.keys() ['wlp0s20f3', 'veth22ca982'] >>> gl.network.get("wlp0s20f3") {'alias': None, 'bytes_all': 0, 'bytes_all_gauge': 4752368171, 'bytes_all_rate_per_sec': 0.0, 'bytes_recv': 0, 'bytes_recv_gauge': 4387358888, 'bytes_recv_rate_per_sec': 0.0, 'bytes_sent': 0, 'bytes_sent_gauge': 365009283, 'bytes_sent_rate_per_sec': 0.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, 'time_since_update': 0.007162809371948242} Network fields description: * interface_name: Interface name. * alias: Interface alias name (optional). * bytes_recv: Number of bytes received. * bytes_sent: Number of bytes sent. * bytes_all: Number of bytes received and sent. * speed: Maximum interface speed (in bit per second). Can return 0 on some operating-system. * is_up: Is the interface up ? Network limits: .. code-block:: python >>> gl.network.limits {'history_size': 1200.0, 'network_disable': ['False'], 'network_hide': ['docker.*', 'lo'], 'network_hide_no_ip': ['True'], 'network_hide_no_up': ['True'], 'network_hide_zero': ['False'], 'network_rx_careful': 70.0, 'network_rx_critical': 90.0, 'network_rx_warning': 80.0, 'network_tx_careful': 70.0, 'network_tx_critical': 90.0, 'network_tx_warning': 80.0} Glances cpu ----------- Cpu stats: .. code-block:: python >>> type(gl.cpu) >>> gl.cpu {'cpucore': 16, 'ctx_switches': 321598828, 'guest': 0.0, 'idle': 92.2, 'interrupts': 197800248, 'iowait': 0.3, 'irq': 0.0, 'nice': 0.0, 'soft_interrupts': 101446182, 'steal': 0.0, 'syscalls': 0, 'system': 5.1, 'total': 15.7, 'user': 2.4} >>> gl.cpu.keys() ['total', 'user', 'nice', 'system', 'idle', 'iowait', 'irq', 'steal', 'guest', 'ctx_switches', 'interrupts', 'soft_interrupts', 'syscalls', 'cpucore'] >>> gl.cpu.get("total") 15.7 Cpu fields description: * total: Sum of all CPU percentages (except idle). * system: Percent time spent in kernel space. System CPU time is the time spent running code in the Operating System kernel. * user: CPU percent time spent in user space. User CPU time is the time spent on the processor running your program's code (or code in libraries). * iowait: *(Linux)*: percent time spent by the CPU waiting for I/O operations to complete. * dpc: *(Windows)*: time spent servicing deferred procedure calls (DPCs) * idle: percent of CPU used by any program. Every program or task that runs on a computer system occupies a certain amount of processing time on the CPU. If the CPU has completed all tasks it is idle. * irq: *(Linux and BSD)*: percent time spent servicing/handling hardware/software interrupts. Time servicing interrupts (hardware + software). * nice: *(Unix)*: percent time occupied by user level processes with a positive nice value. The time the CPU has spent running users' processes that have been *niced*. * steal: *(Linux)*: percentage of time a virtual CPU waits for a real CPU while the hypervisor is servicing another virtual processor. * guest: *(Linux)*: time spent running a virtual CPU for guest operating systems under the control of the Linux kernel. * ctx_switches: number of context switches (voluntary + involuntary) per second. A context switch is a procedure that a computer's CPU (central processing unit) follows to change from one task (or process) to another while ensuring that the tasks do not conflict. * interrupts: number of interrupts per second. * soft_interrupts: number of software interrupts per second. Always set to 0 on Windows and SunOS. * syscalls: number of system calls per second. Always 0 on Linux OS. * cpucore: Total number of CPU core. * time_since_update: Number of seconds since last update. * total_min: Minimum total observed since Glances startup. * total_max: Maximum total observed since Glances startup. * total_mean: Mean (average) total computed from the history. Cpu limits: .. code-block:: python >>> gl.cpu.limits {'cpu_ctx_switches_careful': 640000.0, 'cpu_ctx_switches_critical': 800000.0, 'cpu_ctx_switches_warning': 720000.0, 'cpu_disable': ['False'], 'cpu_iowait_careful': 5.0, 'cpu_iowait_critical': 6.25, 'cpu_iowait_warning': 5.625, 'cpu_steal_careful': 50.0, 'cpu_steal_critical': 90.0, 'cpu_steal_warning': 70.0, 'cpu_system_careful': 50.0, 'cpu_system_critical': 90.0, 'cpu_system_log': ['False'], 'cpu_system_warning': 70.0, 'cpu_total_careful': 65.0, 'cpu_total_critical': 85.0, 'cpu_total_log': ['True'], 'cpu_total_warning': 75.0, 'cpu_user_careful': 50.0, 'cpu_user_critical': 90.0, 'cpu_user_log': ['False'], 'cpu_user_warning': 70.0, 'history_size': 1200.0} Glances amps ------------ Amps stats: .. code-block:: python >>> type(gl.amps) >>> gl.amps Return a dict of dict with key= >>> gl.amps.keys() ['Dropbox', 'Python', 'Conntrack', 'Nginx', 'Systemd', 'SystemV'] >>> gl.amps.get("Dropbox") {'count': 0, 'countmax': None, 'countmin': 1.0, 'key': 'name', 'name': 'Dropbox', 'refresh': 3.0, 'regex': True, 'result': None, 'timer': 0.2458481788635254} Amps fields description: * name: AMP name. * result: AMP result (a string). * refresh: AMP refresh interval. * timer: Time until next refresh. * count: Number of matching processes. * countmin: Minimum number of matching processes. * countmax: Maximum number of matching processes. Amps limits: .. code-block:: python >>> gl.amps.limits {'amps_disable': ['False'], 'history_size': 1200.0} Glances processlist ------------------- Processlist stats: .. code-block:: python >>> type(gl.processlist) >>> gl.processlist Return a dict of dict with key= >>> gl.processlist.keys() [488460, 5858, 8146, 129, 374655, 373717, 9755, 3515, 8946, 9348, 373795, 351708, 9777, 436891, 479846, 9589, 419820, 8626, 375222, 419669, 3832, 373629, 180309, 6590, 7381, 373810, 375119, 348634, 377656, 373760, 356061, 373811, 485315, 374948, 373897, 485463, 8636, 488280, 486073, 374224, 374527, 469793, 8005, 373672, 488414, 30393, 952, 6075, 9338, 7814, 373632, 6280, 373631, 8567, 17796, 8047, 5990, 6588, 7658, 8017, 374441, 6063, 8563, 6319, 5563, 6032, 6003, 6039, 6620, 374519, 374535, 374665, 6065, 6196, 3227, 6719, 374523, 235363, 6487, 6029, 3114, 6023, 5982, 5561, 3147, 8041, 5823, 1, 3506, 3105, 6572, 5557, 30308, 5679, 3152, 3153, 6020, 65862, 5538, 2943, 6237, 5501, 6057, 6223, 6026, 235309, 3228, 3550, 3261, 3343, 5564, 6046, 3838, 8727, 3614, 312376, 6549, 312367, 36986, 3891, 6064, 6099, 6028, 3138, 3128, 5628, 5813, 3344, 992, 3110, 6199, 6378, 3100, 6489, 5857, 6359, 2944, 6060, 5820, 6234, 4714, 3139, 4715, 5963, 180319, 3134, 6050, 2942, 6204, 6021, 5575, 6385, 6325, 6185, 6053, 65842, 5632, 5797, 5663, 3099, 3246, 5991, 6322, 11946, 3121, 468274, 5798, 5558, 225420, 5871, 3098, 373919, 2941, 374270, 3104, 4153, 2955, 3131, 488410, 5545, 3839, 3852, 3864, 373646, 476214, 5639, 3850, 3846, 488413, 65789, 65805, 65774, 65781, 65811, 65798, 3690, 3489, 8378, 3491, 2952, 3222, 4401, 3691, 374243, 2, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 68, 69, 70, 71, 72, 74, 75, 76, 77, 78, 80, 81, 82, 83, 84, 86, 87, 88, 89, 90, 92, 93, 94, 95, 96, 98, 99, 100, 101, 102, 104, 105, 106, 107, 108, 110, 111, 112, 113, 114, 115, 116, 117, 118, 121, 122, 123, 124, 125, 126, 127, 132, 134, 135, 136, 137, 138, 140, 141, 142, 145, 146, 147, 148, 150, 151, 153, 163, 164, 165, 166, 167, 184, 186, 212, 214, 233, 234, 267, 268, 269, 270, 271, 272, 273, 274, 276, 359, 361, 362, 363, 364, 365, 488, 490, 495, 823, 824, 825, 827, 835, 886, 887, 987, 988, 1019, 1218, 1258, 1259, 1582, 1583, 1584, 1586, 1587, 1588, 1589, 1590, 1591, 1592, 1593, 1594, 1595, 1596, 1597, 1598, 1599, 1629, 1639, 1773, 1774, 1775, 1776, 1777, 1783, 1784, 1823, 1828, 2260, 2261, 2262, 2263, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2339, 2340, 2341, 2342, 2343, 2344, 2346, 2347, 2379, 2380, 2381, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 2422, 2423, 2424, 2425, 2426, 2427, 2428, 2429, 2430, 2431, 2432, 2433, 2434, 2435, 2436, 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2460, 2461, 2463, 2464, 2465, 2466, 2467, 2468, 2469, 2471, 2472, 2473, 2476, 2479, 3355, 3640, 3874, 3892, 3893, 3894, 3895, 3896, 3897, 3898, 3899, 4352, 356271, 391714, 402956, 418346, 430242, 434818, 434954, 436126, 439688, 452462, 455764, 456495, 458270, 458931, 459136, 459781, 461161, 466905, 467743, 467973, 468146, 468148, 468151, 468155, 468158, 468162, 468172, 468718, 473514, 473600, 474829, 477205, 478595, 479470, 479833, 479985, 480018, 480332, 480456, 480587, 480600, 480702, 480711, 480987, 481513, 482612, 482783, 483909, 484637, 486272, 486313, 486354, 487602, 487676, 487689, 488001, 488002, 488003] >>> gl.processlist.get("488460") {'cmdline': ['/home/nicolargo/dev/glances/.venv/bin/python3', '-m', 'glances', '-C', 'conf/glances.conf', '--api-doc'], 'cpu_percent': 78.2, 'cpu_times': {'children_system': 0.02, 'children_user': 0.0, 'iowait': 0.0, 'system': 0.47, 'user': 0.51}, 'gids': {'effective': 1000, 'real': 1000, 'saved': 1000}, 'io_counters': [4096, 651264, 4096, 651264, 1], 'key': 'pid', 'memory_info': {'data': 125001728, 'dirty': 0, 'lib': 0, 'rss': 96014336, 'shared': 23875584, 'text': 31211520, 'vms': 585486336}, 'memory_percent': 0.5846965693943361, 'name': 'python3', 'nice': 0, 'num_threads': 5, 'pid': 488460, 'status': 'R', 'time_since_update': 0.5573058128356934, 'username': 'nicolargo'} Processlist fields description: * pid: Process identifier (ID) * name: Process name * cmdline: Command line with arguments * username: Process owner * num_threads: Number of threads * cpu_percent: Process CPU consumption (returned value can be > 100.0 in case of a process running multiple threads on different CPU cores) * memory_percent: Process memory consumption * memory_info: Process memory information (dict with rss, vms, shared, text, lib, data, dirty keys) * status: Process status * nice: Process nice value * cpu_times: Process CPU times (dict with user, system, iowait keys) * gids: Process group IDs (dict with real, effective, saved keys) * io_counters: Process IO counters (list with read_count, write_count, read_bytes, write_bytes, io_tag keys) * cpu_num: CPU core number where the process is currently executing (0-based indexing) Processlist limits: .. code-block:: python >>> gl.processlist.limits {'history_size': 1200.0, 'processlist_cpu_careful': 50.0, 'processlist_cpu_critical': 90.0, 'processlist_cpu_warning': 70.0, 'processlist_disable': ['False'], 'processlist_disable_stats': ['cpu_num'], 'processlist_mem_careful': 50.0, 'processlist_mem_critical': 90.0, 'processlist_mem_warning': 70.0, 'processlist_nice_warning': ['-20', '-19', '-18', '-17', '-16', '-15', '-14', '-13', '-12', '-11', '-10', '-9', '-8', '-7', '-6', '-5', '-4', '-3', '-2', '-1', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'], 'processlist_status_critical': ['Z', 'D'], 'processlist_status_ok': ['R', 'W', 'P', 'I']} Glances load ------------ Load stats: .. code-block:: python >>> type(gl.load) >>> gl.load {'cpucore': 16, 'min1': 1.5517578125, 'min15': 1.28125, 'min5': 1.3681640625} >>> gl.load.keys() ['min1', 'min5', 'min15', 'cpucore'] >>> gl.load.get("min1") 1.5517578125 Load fields description: * min1: Average sum of the number of processes waiting in the run-queue plus the number currently executing over 1 minute. * min5: Average sum of the number of processes waiting in the run-queue plus the number currently executing over 5 minutes. * min15: Average sum of the number of processes waiting in the run-queue plus the number currently executing over 15 minutes. * cpucore: Total number of CPU core. * min1_min: Minimum min1 observed since Glances startup. * min1_max: Maximum min1 observed since Glances startup. * min1_mean: Mean (average) min1 computed from the history. Load limits: .. code-block:: python >>> gl.load.limits {'history_size': 1200.0, 'load_careful': 0.7, 'load_critical': 5.0, 'load_disable': ['False'], 'load_warning': 1.0} Glances sensors --------------- Sensors stats: .. code-block:: python >>> type(gl.sensors) >>> gl.sensors Return a dict of dict with key=