summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2023-05-13 15:30:09 +0200
committernicolargo <nicolas@nicolargo.com>2023-05-13 15:30:09 +0200
commit6ea9185ba2106339c2ca05bdab15435c461b7c90 (patch)
treeaccf635f0bdfbee56fb976d5dc18c25c7f582dd0
parente8daa49eeae92cd33b754958b482926a4ec399b8 (diff)
Error while generating the documentation (ModuleNotFoundError: No module named 'glances') #2391
-rw-r--r--docs/api.rst630
-rw-r--r--docs/conf.py2
-rw-r--r--docs/man/glances.12
3 files changed, 335 insertions, 299 deletions
diff --git a/docs/api.rst b/docs/api.rst
index e09c866c..bd984be2 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -66,14 +66,14 @@ GET alert
Get plugin stats::
# curl http://localhost:61208/api/3/alert
- [[1683966001.0,
+ [[1683984558.0,
-1,
"WARNING",
"MEM",
- 72.50695326143375,
- 72.50695326143375,
- 72.50695326143375,
- 72.50695326143375,
+ 73.17533404664918,
+ 73.17533404664918,
+ 73.17533404664918,
+ 73.17533404664918,
1,
[],
"",
@@ -93,7 +93,7 @@ Get plugin stats::
"refresh": 3.0,
"regex": True,
"result": None,
- "timer": 0.8150734901428223},
+ "timer": 0.8803508281707764},
{"count": 0,
"countmax": 20.0,
"countmin": None,
@@ -102,7 +102,7 @@ Get plugin stats::
"refresh": 3.0,
"regex": True,
"result": None,
- "timer": 0.8149070739746094}]
+ "timer": 0.8801853656768799}]
Get a specific field::
@@ -120,7 +120,7 @@ Get a specific item when field matchs the given value::
"refresh": 3.0,
"regex": True,
"result": None,
- "timer": 0.8150734901428223}]}
+ "timer": 0.8803508281707764}]}
GET connections
---------------
@@ -141,21 +141,44 @@ GET containers
Get plugin stats::
# curl http://localhost:61208/api/3/containers
- {"containers": [{"Command": ["top"],
+ {"containers": [{"Command": ["/portainer"],
+ "Created": "2022-10-29T14:59:10.266701439Z",
+ "Id": "3abd51c615968482d9ccff5afc629f267f6dda113ed68b75b432615fae3b49fb",
+ "Image": ["portainer/portainer-ce:2.9.3"],
+ "Status": "running",
+ "Uptime": "6 hours",
+ "cpu": {"total": 0.0},
+ "cpu_percent": 0.0,
+ "engine": "docker",
+ "io": {"cumulative_ior": 0, "cumulative_iow": 184320},
+ "io_r": None,
+ "io_w": None,
+ "key": "name",
+ "memory": {"cache": None,
+ "limit": 7836184576,
+ "max_usage": None,
+ "rss": None,
+ "usage": 19238912},
+ "memory_usage": 19238912,
+ "name": "portainer",
+ "network": {"cumulative_rx": 516952, "cumulative_tx": 0},
+ "network_rx": None,
+ "network_tx": None},
+ {"Command": ["top"],
"Created": "2023-05-08T15:29:34.918692365+02:00",
"Id": "4b7f732d43e4bc5d92fe5298cba025b550e6a608754c1c38f9a90aaecd46b8f9",
"Image": "["docker.io/library/ubuntu:latest"]",
"Status": "running",
"Uptime": "4 days",
- "cpu": {"total": 2.7540959823779166e-07},
- "cpu_percent": 2.7540959823779166e-07,
+ "cpu": {"total": 3.4516486319009634e-07},
+ "cpu_percent": 3.4516486319009634e-07,
"engine": "podman",
"io": {"ior": 0.0, "iow": 0.0, "time_since_update": 1},
"io_r": 0.0,
"io_w": 0.0,
"key": "name",
- "memory": {"limit": 7836184576.0, "usage": 2289664.0},
- "memory_usage": 2289664.0,
+ "memory": {"limit": 7836184576.0, "usage": 2195456.0},
+ "memory_usage": 2195456.0,
"name": "frosty_bouman",
"network": {"rx": 0.0, "time_since_update": 1, "tx": 0.0},
"network_rx": 0.0,
@@ -168,40 +191,21 @@ Get plugin stats::
"Image": "["k8s.gcr.io/pause:3.5"]",
"Status": "running",
"Uptime": "4 days",
- "cpu": {"total": 2.497081292340971e-10},
- "cpu_percent": 2.497081292340971e-10,
+ "cpu": {"total": 2.5083365383979135e-10},
+ "cpu_percent": 2.5083365383979135e-10,
"engine": "podman",
"io": {"ior": 0.0, "iow": 0.0, "time_since_update": 1},
"io_r": 0.0,
"io_w": 0.0,
"key": "name",
- "memory": {"limit": 7836184576.0, "usage": 671744.0},
- "memory_usage": 671744.0,
+ "memory": {"limit": 7836184576.0, "usage": 647168.0},
+ "memory_usage": 647168.0,
"name": "8d0f1c783def-infra",
"network": {"rx": 0.0, "time_since_update": 1, "tx": 0.0},
"network_rx": 0.0,
"network_tx": 0.0,
"pod_id": "8d0f1c783def",
- "pod_name": "8d0f1c783def-infra"},
- {"Command": ["/portainer"],
- "Created": "2022-10-29T14:59:10.266701439Z",
- "Id": "3abd51c615968482d9ccff5afc629f267f6dda113ed68b75b432615fae3b49fb",
- "Image": ["portainer/portainer-ce:2.9.3"],
- "Status": "running",
- "Uptime": "56 mins",
- "cpu": {"total": 0.0},
- "cpu_percent": 0.0,
- "engine": "docker",
- "io": {},
- "io_r": None,
- "io_w": None,
- "key": "name",
- "memory": {},
- "memory_usage": None,
- "name": "portainer",
- "network": {},
- "network_rx": None,
- "network_tx": None}],
+ "pod_name": "8d0f1c783def-infra"}],
"version": {},
"version_podman": {}}
@@ -233,19 +237,19 @@ Get plugin stats::
"ctx_switches": 0,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 68.2,
+ "idle": 70.8,
"interrupts": 0,
- "iowait": 0.0,
+ "iowait": 0.2,
"irq": 0.0,
"nice": 0.0,
"soft_interrupts": 0,
"softirq": 0.0,
"steal": 0.0,
"syscalls": 0,
- "system": 4.3,
+ "system": 3.7,
"time_since_update": 1,
- "total": 33.6,
- "user": 27.6}
+ "total": 29.0,
+ "user": 25.2}
Fields descriptions:
@@ -268,7 +272,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/3/cpu/total
- {"total": 33.6}
+ {"total": 29.0}
GET diskio
----------
@@ -314,13 +318,13 @@ Get plugin stats::
# curl http://localhost:61208/api/3/fs
[{"device_name": "/dev/mapper/ubuntu--gnome--vg-root",
- "free": 9130688512,
+ "free": 9096110080,
"fs_type": "ext4",
"key": "mnt_point",
"mnt_point": "/",
- "percent": 96.0,
+ "percent": 96.1,
"size": 243334156288,
- "used": 221816012800},
+ "used": 221850591232},
{"device_name": "zsfpool",
"free": 41811968,
"fs_type": "zfs",
@@ -339,13 +343,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": 9130688512,
+ "free": 9096110080,
"fs_type": "ext4",
"key": "mnt_point",
"mnt_point": "/",
- "percent": 96.0,
+ "percent": 96.1,
"size": 243334156288,
- "used": 221816012800}]}
+ "used": 221850591232}]}
GET ip
------
@@ -353,17 +357,17 @@ GET ip
Get plugin stats::
# curl http://localhost:61208/api/3/ip
- {"address": "192.168.0.32",
- "gateway": "192.168.0.254",
+ {"address": "192.168.1.14",
+ "gateway": "192.168.1.1",
"mask": "255.255.255.0",
"mask_cidr": 24,
- "public_address": "91.166.228.228",
+ "public_address": "92.151.148.66",
"public_info_human": ""}
Get a specific field::
# curl http://localhost:61208/api/3/ip/gateway
- {"gateway": "192.168.0.254"}
+ {"gateway": "192.168.1.1"}
GET load
--------
@@ -372,9 +376,9 @@ Get plugin stats::
# curl http://localhost:61208/api/3/load
{"cpucore": 4,
- "min1": 1.02783203125,
- "min15": 0.9677734375,
- "min5": 0.92041015625}
+ "min1": 0.8857421875,
+ "min15": 0.74365234375,
+ "min5": 0.77685546875}
Fields descriptions:
@@ -386,7 +390,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/3/load/min1
- {"min1": 1.02783203125}
+ {"min1": 0.8857421875}
GET mem
-------
@@ -394,16 +398,16 @@ GET mem
Get plugin stats::
# curl http://localhost:61208/api/3/mem
- {"active": 2569023488,
- "available": 2154405888,
- "buffers": 287842304,
- "cached": 2519867392,
- "free": 2154405888,
- "inactive": 3937296384,
- "percent": 72.5,
- "shared": 520912896,
+ {"active": 2534027264,
+ "available": 2102030336,
+ "buffers": 218550272,
+ "cached": 2393772032,
+ "free": 2102030336,
+ "inactive": 3635040256,
+ "percent": 73.2,
+ "shared": 637190144,
"total": 7836184576,
- "used": 5681778688}
+ "used": 5734154240}
Fields descriptions:
@@ -430,13 +434,13 @@ GET memswap
Get plugin stats::
# curl http://localhost:61208/api/3/memswap
- {"free": 7106760704,
- "percent": 12.1,
- "sin": 290373632,
- "sout": 1480765440,
+ {"free": 7234039808,
+ "percent": 10.5,
+ "sin": 499916800,
+ "sout": 1525796864,
"time_since_update": 1,
"total": 8082419712,
- "used": 975659008}
+ "used": 848379904}
Fields descriptions:
@@ -460,29 +464,29 @@ Get plugin stats::
# curl http://localhost:61208/api/3/network
[{"alias": None,
- "cumulative_cx": 49269114,
- "cumulative_rx": 24634557,
- "cumulative_tx": 24634557,
- "cx": 2354,
+ "cumulative_cx": 56960572,
+ "cumulative_rx": 28480286,
+ "cumulative_tx": 28480286,
+ "cx": 6512,
"interface_name": "lo",
"is_up": True,
"key": "interface_name",
- "rx": 1177,
+ "rx": 3256,
"speed": 0,
"time_since_update": 1,
- "tx": 1177},
+ "tx": 3256},
{"alias": None,
- "cumulative_cx": 3174346554,
- "cumulative_rx": 3052552104,
- "cumulative_tx": 121794450,
- "cx": 32826,
+ "cumulative_cx": 3229266842,
+ "cumulative_rx": 3098498206,
+ "cumulative_tx": 130768636,
+ "cx": 22545,
"interface_name": "wlp2s0",
"is_up": True,
"key": "interface_name",
- "rx": 24521,
+ "rx": 14112,
"speed": 0,
"time_since_update": 1,
- "tx": 8305}]
+ "tx": 8433}]
Fields descriptions:
@@ -512,17 +516,17 @@ 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": 49269114,
- "cumulative_rx": 24634557,
- "cumulative_tx": 24634557,
- "cx": 2354,
+ "cumulative_cx": 56960572,
+ "cumulative_rx": 28480286,
+ "cumulative_tx": 28480286,
+ "cx": 6512,
"interface_name": "lo",
"is_up": True,
"key": "interface_name",
- "rx": 1177,
+ "rx": 3256,
"speed": 0,
"time_since_update": 1,
- "tx": 1177}]}
+ "tx": 3256}]}
GET now
-------
@@ -530,7 +534,7 @@ GET now
Get plugin stats::
# curl http://localhost:61208/api/3/now
- "2023-05-13 10:20:00 CEST"
+ "2023-05-13 15:29:18 CEST"
GET percpu
----------
@@ -541,29 +545,29 @@ Get plugin stats::
[{"cpu_number": 0,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 77.0,
+ "idle": 2.9,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 3.0,
- "total": 23.0,
- "user": 20.0},
+ "system": 4.9,
+ "total": 97.1,
+ "user": 92.2},
{"cpu_number": 1,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 56.0,
+ "idle": 96.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 4.0,
- "total": 44.0,
- "user": 38.0}]
+ "system": 1.0,
+ "total": 4.0,
+ "user": 3.0}]
Get a specific field::
@@ -577,30 +581,30 @@ Get plugin stats::
# curl http://localhost:61208/api/3/ports
[{"description": "DefaultGateway",
- "host": "192.168.0.254",
+ "host": "192.168.1.1",
"indice": "port_0",
"port": 0,
"refresh": 30,
"rtt_warning": None,
- "status": 0.006516,
+ "status": 0.008301,
"timeout": 3}]
Get a specific field::
# curl http://localhost:61208/api/3/ports/host
- {"host": ["192.168.0.254"]}
+ {"host": ["192.168.1.1"]}
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.006516,
- "timeout": 3}]}
+ # curl http://localhost:61208/api/3/ports/host/192.168.1.1
+ {"192.168.1.1": [{"description": "DefaultGateway",
+ "host": "192.168.1.1",
+ "indice": "port_0",
+ "port": 0,
+ "refresh": 30,
+ "rtt_warning": None,
+ "status": 0.008301,
+ "timeout": 3}]}
GET processcount
----------------
@@ -608,12 +612,12 @@ GET processcount
Get plugin stats::
# curl http://localhost:61208/api/3/processcount
- {"pid_max": 0, "running": 1, "sleeping": 313, "thread": 1532, "total": 378}
+ {"pid_max": 0, "running": 1, "sleeping": 310, "thread": 1568, "total": 439}
Get a specific field::
# curl http://localhost:61208/api/3/processcount/total
- {"total": 378}
+ {"total": 439}
GET processlist
---------------
@@ -621,7 +625,22 @@ GET processlist
Get plugin stats::
# curl http://localhost:61208/api/3/processlist
- [{"cmdline": ["/snap/firefox/2605/usr/lib/firefox/firefox",
+ [{"cmdline": ["/snap/firefox/2605/usr/lib/firefox/firefox"],
+ "cpu_percent": 0.0,
+ "cpu_times": [2184.25, 667.78, 1237.1, 178.98, 0.0],
+ "gids": [1000, 1000, 1000],
+ "io_counters": [1531420672, 2813288448, 0, 0, 0],
+ "key": "pid",
+ "memory_info": [487464960, 21833334784, 137736192, 618496, 0, 1029808128, 0],
+ "memory_percent": 6.220692676037344,
+ "name": "firefox",
+ "nice": 0,
+ "num_threads": 140,
+ "pid": 10541,
+ "status": "S",
+ "time_since_update": 1,
+ "username": "nicolargo"},
+ {"cmdline": ["/snap/firefox/2605/usr/lib/firefox/firefox",
"-contentproc",
"-childID",
"6",
@@ -641,211 +660,182 @@ Get plugin stats::
"true",
"tab"],
"cpu_percent": 0.0,
- "cpu_times": [357.9, 40.31, 0.0, 0.0, 0.0],
+ "cpu_times": [435.82, 49.35, 0.0, 0.0, 0.0],
"gids": [1000, 1000, 1000],
- "io_counters": [22819840, 0, 0, 0, 0],
+ "io_counters": [30860288, 0, 0, 0, 0],
"key": "pid",
- "memory_info": [473870336, 3517755392, 86867968, 618496, 0, 924098560, 0],
- "memory_percent": 6.047207431169115,
+ "memory_info": [473804800, 3518271488, 87040000, 618496, 0, 924098560, 0],
+ "memory_percent": 6.046371105794638,
"name": "WebExtensions",
"nice": 0,
"num_threads": 20,
"pid": 11043,
"status": "S",
"time_since_update": 1,
- "username": "nicolargo"},
- {"cmdline": ["/usr/share/code/code",
- "--ms-enable-electron-run-as-node",
- "/home/nicolargo/.vscode/extensions/ms-python.vscode-pylance-2023.5.10/dist/server.bundle.js",
- "--cancellationReceive=file:a45d0addfc80b8027622ae0652ef4d4c3a3d754b26",
- "--node-ipc",
- "--clientProcessId=59454"],
- "cpu_percent": 0.0,
- "cpu_times": [89.73, 7.11, 0.61, 0.16, 0.0],
- "gids": [1000, 1000, 1000],
- "io_counters": [55275520, 0, 0, 0, 0],
- "key": "pid",
- "memory_info": [468602880,
- 1205610397696,
- 43884544,
- 118128640,
- 0,
- 593600512,
- 0],
- "memory_percent": 5.979987779195466,
- "name": "code",
- "nice": 0,
- "num_threads": 13,
- "pid": 60503,
- "status": "S",
- "time_since_update": 1,
"username": "nicolargo"}]
Get a specific field::
# curl http://localhost:61208/api/3/processlist/pid
- {"pid": [11043,
+ {"pid": [10541,
+ 11043,
60503,
- 10541,
- 50925,
- 67269,
10770,
10778,
+ 67269,
59454,
3927,
59195,
- 70920,
+ 4288,
10774,
- 67532,
+ 82905,
55857,
- 4288,
+ 50925,
10790,
+ 71741,
59069,
10733,
60104,
- 59523,
+ 421,
+ 11646,
71710,
- 59161,
- 71792,
+ 59523,
60134,
- 11646,
- 71741,
60106,
+ 84415,
+ 59161,
60489,
- 72099,
- 71977,
- 71875,
+ 85078,
+ 85144,
59525,
- 421,
59663,
60232,
- 72192,
+ 2398,
3810,
+ 85317,
60191,
- 59182,
- 2398,
11380,
+ 59182,
60192,
10710,
11381,
- 4385,
4179,
+ 4385,
+ 4243,
4023,
1771,
- 4243,
- 20173,
3730,
- 59126,
+ 20173,
17997,
- 4000,
- 59127,
2636,
- 42348,
- 51297,
- 4403,
- 56140,
+ 59126,
+ 59127,
+ 4000,
+ 4666,
4091,
- 2168,
+ 1618,
+ 4403,
+ 1727,
1584,
+ 2168,
4046,
+ 56140,
4090,
- 1727,
- 4666,
36919,
- 1598,
4075,
+ 1598,
+ 3956,
1825,
- 1618,
4169,
2554,
- 2607,
- 3956,
+ 3991,
1,
+ 2607,
4442,
4339,
+ 84438,
1630,
1794,
51324,
4308,
- 3991,
1605,
- 4126,
4086,
+ 4126,
1379,
- 4080,
- 2341,
4244,
+ 2341,
+ 4080,
3901,
4078,
3719,
4105,
3710,
3908,
- 4097,
+ 3115,
51357,
+ 4097,
3825,
- 1764,
4009,
+ 1764,
1631,
1818,
- 3115,
1628,
2116,
+ 74953,
1627,
1566,
14243,
14266,
+ 3970,
3939,
4119,
- 3970,
4145,
- 3498,
- 4033,
+ 56119,
+ 78856,
3743,
- 68552,
- 3748,
+ 4033,
+ 3498,
+ 60199,
1583,
+ 3748,
4316,
3952,
4107,
3925,
- 21019,
4062,
1591,
- 56119,
- 2604,
- 10848,
4302,
1606,
+ 2604,
1624,
- 60199,
+ 4127,
4079,
4196,
- 4127,
- 3745,
4005,
3975,
+ 10848,
1616,
3947,
4098,
1380,
4074,
- 1612,
4099,
+ 3745,
+ 1612,
+ 16182,
4157,
461,
3989,
3819,
- 2605,
3727,
3753,
- 3728,
1579,
+ 2605,
+ 3728,
3888,
3499,
3934,
1575,
- 16182,
1593,
1377,
1964,
@@ -853,35 +843,36 @@ Get a specific field::
18045,
12489,
12480,
- 72157,
1634,
4332,
+ 85272,
1390,
1391,
- 3118,
59145,
+ 3118,
3573,
20400,
2361,
12492,
- 3720,
12483,
+ 3720,
+ 59130,
1725,
1726,
4593,
20396,
20180,
1567,
- 72191,
56106,
56087,
56100,
+ 85316,
56081,
3794,
4072,
2358,
3503,
- 68389,
+ 78769,
1637,
2382,
2345,
@@ -889,7 +880,6 @@ Get a specific field::
20185,
1392,
1577,
- 59130,
12486,
2,
3,
@@ -1035,73 +1025,119 @@ Get a specific field::
2515,
2525,
3988,
- 36366,
- 45495,
- 45496,
- 45498,
- 51075,
- 51076,
51078,
51079,
51081,
- 51124,
- 54611,
- 66069,
- 67615,
- 67699,
- 69087,
- 69233,
69313,
- 69374,
69647,
70461,
- 70622,
- 70658,
- 71347,
- 71413,
- 71823,
- 71824,
- 71836]}
+ 75183,
+ 80333,
+ 81339,
+ 81683,
+ 81911,
+ 82593,
+ 82688,
+ 82773,
+ 82994,
+ 83112,
+ 83723,
+ 83900,
+ 83920,
+ 84008,
+ 84129,
+ 84204,
+ 84205,
+ 84302,
+ 84303,
+ 84304,
+ 84305,
+ 84306,
+ 84307,
+ 84308,
+ 84309,
+ 84310,
+ 84311,
+ 84312,
+ 84313,
+ 84314,
+ 84315,
+ 84316,
+ 84317,
+ 84318,
+ 84319,
+ 84320,
+ 84321,
+ 84322,
+ 84323,
+ 84324,
+ 84325,
+ 84326,
+ 84327,
+ 84328,
+ 84329,
+ 84330,
+ 84331,
+ 84332,
+ 84333,
+ 84334,
+ 84335,
+ 84336,
+ 84337,
+ 84338,
+ 84339,
+ 84340,
+ 84341,
+ 84342,
+ 84343,
+ 84344,
+ 84345,
+ 84346,
+ 84347,
+ 84348,
+ 84349,
+ 84350,
+ 84351,
+ 84352,
+ 84353,
+ 84354,
+ 84355,
+ 84356,
+ 84357,
+ 84358,
+ 84359,
+ 84360,
+ 84361,
+ 84362,
+ 84363,
+ 84364,
+ 84365,
+ 84366,
+ 84403,
+ 84463,
+ 84575]}
Get a specific item when field matchs the given value::
- # curl http://localhost:61208/api/3/processlist/pid/11043
- {"11043": [{"cmdline": ["/snap/firefox/2605/usr/lib/firefox/firefox",
- "-contentproc",
- "-childID",
- "6",
- "-isForBrowser",
- "-prefsLen",
- "38436",
- "-prefMapSize",
- "241898",
- "-jsInitLen",
- "240056",
- "-parentBuildID",
- "20230424185118",
- "-appDir",
- "/snap/firefox/2605/usr/lib/firefox/browser",
- "{c94b5dea-52c6-4c75-a314-5de48bda9cdc}",
- "10541",
- "true",
- "tab"],
+ # curl http://localhost:61208/api/3/processlist/pid/10541
+ {"10541": [{"cmdline": ["/snap/firefox/2605/usr/lib/firefox/firefox"],
"cpu_percent": 0.0,
- "cpu_times": [357.9, 40.31, 0.0, 0.0, 0.0],
+ "cpu_times": [2184.25, 667.78, 1237.1, 178.98, 0.0],
"gids": [1000, 1000, 1000],
- "io_counters": [22819840, 0, 0, 0, 0],
+ "io_counters": [1531420672, 2813288448, 0, 0, 0],
"key": "pid",
- "memory_info": [473870336,
- 3517755392,
- 86867968,
+ "memory_info": [487464960,
+ 21833334784,
+ 137736192,
618496,
0,
- 924098560,
+ 1029808128,
0],
- "memory_percent": 6.047207431169115,
- "name": "WebExtensions",
+ "memory_percent": 6.220692676037344,
+ "name": "firefox",
"nice": 0,
- "num_threads": 20,
- "pid": 11043,
+ "num_threads": 140,
+ "pid": 10541,
"status": "S",
"time_since_update": 1,
"username": "nicolargo"}]}
@@ -1120,69 +1156,69 @@ GET quicklook
Get plugin stats::
# curl http://localhost:61208/api/3/quicklook
- {"cpu": 33.6,
+ {"cpu": 29.0,
"cpu_hz": 2025000000.0,
- "cpu_hz_current": 1247043500.0,
+ "cpu_hz_current": 1634067000.0,
"cpu_name": "Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz",
- "mem": 72.5,
+ "mem": 73.2,
"percpu": [{"cpu_number": 0,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 77.0,
+ "idle": 2.9,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 3.0,
- "total": 23.0,
- "user": 20.0},
+ "system": 4.9,
+ "total": 97.1,
+ "user": 92.2},
{"cpu_number": 1,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 56.0,
+ "idle": 96.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 4.0,
- "total": 44.0,
- "user": 38.0},
+ "system": 1.0,
+ "total": 4.0,
+ "user": 3.0},
{"cpu_number": 2,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 66.0,
+ "idle": 92.2,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 3.0,
- "total": 34.0,
- "user": 29.0},
+ "system": 3.9,
+ "total": 7.8,
+ "user": 3.9},
{"cpu_number": 3,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 62.0,
+ "idle": 94.1,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
- "softirq": 1.0,
+ "softirq": 0.0,
"steal": 0.0,
- "system": 3.0,
- "total": 38.0,
- "user": 32.0}],
- "swap": 12.1}
+ "system": 2.0,
+ "total": 5.9,
+ "user": 4.0}],
+ "swap": 10.5}
Get a specific field::
# curl http://localhost:61208/api/3/quicklook/cpu
- {"cpu": 33.6}
+ {"cpu": 29.0}
GET sensors
-----------
@@ -1253,7 +1289,7 @@ GET uptime
Get plugin stats::
# curl http://localhost:61208/api/3/uptime
- "4 days, 21:18:19"
+ "5 days, 2:27:37"
GET all stats
-------------
@@ -1269,33 +1305,33 @@ GET stats history
History of a plugin::
# curl http://localhost:61208/api/3/cpu/history
-