summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml8
-rw-r--r--NEWS.rst8
-rw-r--r--docs/api.rst360
-rw-r--r--docs/man/glances.12
-rw-r--r--glances/plugins/sensors/__init__.py11
-rwxr-xr-xsetup.py2
6 files changed, 242 insertions, 149 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 21a93ee5..ad42ce73 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,14 +14,6 @@ jobs:
test:
uses: ./.github/workflows/test.yml
needs: [quality]
- webui:
- if: github.event_name != 'pull_request' && !contains(github.ref, 'refs/tags/')
- uses: ./.github/workflows/webui.yml
- needs: [quality, test]
- cyber:
- if: github.event_name != 'pull_request'
- uses: ./.github/workflows/cyber.yml
- needs: [quality, test]
build:
if: github.event_name != 'pull_request'
uses: ./.github/workflows/build.yml
diff --git a/NEWS.rst b/NEWS.rst
index 4143cd53..f55db2a9 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -3,14 +3,6 @@
==============================================================================
===============
-Version 4.2.0
-===============
-
-Under development, see roadmap here: https://github.com/nicolargo/glances/milestone/73
-
-Contributors are welcome !
-
-===============
Version 4.1.0
===============
diff --git a/docs/api.rst b/docs/api.rst
index cbdd724a..58999ba0 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -141,7 +141,7 @@ Get plugin stats::
"refresh": 3.0,
"regex": True,
"result": None,
- "timer": 0.3547241687774658},
+ "timer": 0.48795127868652344},
{"count": 0,
"countmax": 20.0,
"countmin": None,
@@ -150,7 +150,7 @@ Get plugin stats::
"refresh": 3.0,
"regex": True,
"result": None,
- "timer": 0.35463643074035645}]
+ "timer": 0.48785948753356934}]
Fields descriptions:
@@ -178,7 +178,7 @@ Get a specific item when field matches the given value::
"refresh": 3.0,
"regex": True,
"result": None,
- "timer": 0.3547241687774658}]}
+ "timer": 0.48795127868652344}]}
GET cloud
---------
@@ -265,19 +265,19 @@ Get plugin stats::
# curl http://localhost:61208/api/4/cpu
{"cpucore": 16,
- "ctx_switches": 169444872,
+ "ctx_switches": 426798284,
"guest": 0.0,
- "idle": 1.0,
- "interrupts": 146166619,
- "iowait": 0.0,
+ "idle": 85.4,
+ "interrupts": 358987449,
+ "iowait": 0.1,
"irq": 0.0,
"nice": 0.0,
- "soft_interrupts": 52532028,
+ "soft_interrupts": 133317922,
"steal": 0.0,
"syscalls": 0,
- "system": 0.0,
- "total": 0.0,
- "user": 0.0}
+ "system": 3.2,
+ "total": 6.7,
+ "user": 11.4}
Fields descriptions:
@@ -310,7 +310,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/cpu/total
- {"total": 0.0}
+ {"total": 6.7}
GET diskio
----------
@@ -320,14 +320,14 @@ Get plugin stats::
# curl http://localhost:61208/api/4/diskio
[{"disk_name": "nvme0n1",
"key": "disk_name",
- "read_bytes": 4366260736,
- "read_count": 140249,
- "write_bytes": 8372364288,
- "write_count": 412923},
+ "read_bytes": 7464889856,
+ "read_count": 275684,
+ "write_bytes": 24858043392,
+ "write_count": 1204326},
{"disk_name": "nvme0n1p1",
"key": "disk_name",
- "read_bytes": 7476224,
- "read_count": 576,
+ "read_bytes": 7558144,
+ "read_count": 605,
"write_bytes": 1024,
"write_count": 2}]
@@ -363,10 +363,10 @@ Get a specific item when field matches the given value::
# curl http://localhost:61208/api/4/diskio/disk_name/nvme0n1
{"nvme0n1": [{"disk_name": "nvme0n1",
"key": "disk_name",
- "read_bytes": 4366260736,
- "read_count": 140249,
- "write_bytes": 8372364288,
- "write_count": 412923}]}
+ "read_bytes": 7464889856,
+ "read_count": 275684,
+ "write_bytes": 24858043392,
+ "write_count": 1204326}]}
GET folders
-----------
@@ -393,13 +393,13 @@ Get plugin stats::
# curl http://localhost:61208/api/4/fs
[{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv",
- "free": 899103723520,
+ "free": 896615567360,
"fs_type": "ext4",
"key": "mnt_point",
"mnt_point": "/",
- "percent": 5.6,
+ "percent": 5.9,
"size": 1003736440832,
- "used": 53570211840}]
+ "used": 56058368000}]
Fields descriptions:
@@ -420,13 +420,13 @@ Get a specific item when field matches the given value::
# curl http://localhost:61208/api/4/fs/mnt_point//
{"/": [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv",
- "free": 899103723520,
+ "free": 896615567360,
"fs_type": "ext4",
"key": "mnt_point",
"mnt_point": "/",
- "percent": 5.6,
+ "percent": 5.9,
"size": 1003736440832,
- "used": 53570211840}]}
+ "used": 56058368000}]}
GET gpu
-------
@@ -499,7 +499,10 @@ GET load
Get plugin stats::
# curl http://localhost:61208/api/4/load
- {"cpucore": 16, "min1": 0.9208984375, "min15": 0.935546875, "min5": 0.978515625}
+ {"cpucore": 16,
+ "min1": 0.69091796875,
+ "min15": 0.93115234375,
+ "min5": 0.9248046875}
Fields descriptions:
@@ -511,7 +514,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/load/min1
- {"min1": 0.9208984375}
+ {"min1": 0.69091796875}
GET mem
-------
@@ -519,16 +522,16 @@ GET mem
Get plugin stats::
# curl http://localhost:61208/api/4/mem
- {"active": 8524726272,
- "available": 8201060352,
- "buffers": 414851072,
- "cached": 6714773504,
- "free": 8201060352,
- "inactive": 3872276480,
- "percent": 50.1,
- "shared": 883290112,
+ {"active": 8055664640,
+ "available": 4539228160,
+ "buffers": 112582656,
+ "cached": 4634251264,
+ "free": 4539228160,
+ "inactive": 5664567296,
+ "percent": 72.4,
+ "shared": 794791936,
"total": 16422486016,
- "used": 8221425664}
+ "used": 11883257856}
Fields descriptions:
@@ -555,13 +558,13 @@ GET memswap
Get plugin stats::
# curl http://localhost:61208/api/4/memswap
- {"free": 4294963200,
- "percent": 0.0,
- "sin": 0,
- "sout": 0,
+ {"free": 3367235584,
+ "percent": 21.6,
+ "sin": 12046336,
+ "sout": 929779712,
"time_since_update": 1,
"total": 4294963200,
- "used": 0}
+ "used": 927727616}
Fields descriptions:
@@ -586,15 +589,15 @@ Get plugin stats::
# curl http://localhost:61208/api/4/network
[{"alias": None,
"bytes_all": 0,
- "bytes_all_gauge": 2165726764,
+ "bytes_all_gauge": 5602118637,
"bytes_recv": 0,
- "bytes_recv_gauge": 2033492615,
+ "bytes_recv_gauge": 5324018799,
"bytes_sent": 0,
- "bytes_sent_gauge": 132234149,
+ "bytes_sent_gauge": 278099838,
"interface_name": "wlp0s20f3",
"key": "interface_name",
"speed": 0,
- "time_since_update": 0.359783411026001}]
+ "time_since_update": 0.4937009811401367}]
Fields descriptions:
@@ -623,15 +626,15 @@ Get a specific item when field matches the given value::
# curl http://localhost:61208/api/4/network/interface_name/wlp0s20f3
{"wlp0s20f3": [{"alias": None,
"bytes_all": 0,
- "bytes_all_gauge": 2165726764,
+ "bytes_all_gauge": 5602118637,
"bytes_recv": 0,
- "bytes_recv_gauge": 2033492615,
+ "bytes_recv_gauge": 5324018799,
"bytes_sent": 0,
- "bytes_sent_gauge": 132234149,
+ "bytes_sent_gauge": 278099838,
"interface_name": "wlp0s20f3",
"key": "interface_name",
"speed": 0,
- "time_since_update": 0.359783411026001}]}
+ "time_since_update": 0.4937009811401367}]}
GET now
-------
@@ -639,7 +642,7 @@ GET now
Get plugin stats::
# curl http://localhost:61208/api/4/now
- {"custom": "2024-06-16 22:34:24 CEST", "iso": "2024-06-16T22:34:24+02:00"}
+ {"custom": "2024-06-29 09:51:57 CEST", "iso": "2024-06-29T09:51:57+02:00"}
Fields descriptions:
@@ -649,7 +652,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/now/iso
- {"iso": "2024-06-16T22:34:24+02:00"}
+ {"iso": "2024-06-29T09:51:57+02:00"}
GET percpu
----------
@@ -660,7 +663,7 @@ Get plugin stats::
[{"cpu_number": 0,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 39.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -668,12 +671,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 61.0,
"user": 0.0},
{"cpu_number": 1,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 1.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -681,7 +684,7 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 99.0,
+ "total": 60.0,
"user": 0.0}]
Fields descriptions:
@@ -716,7 +719,7 @@ Get plugin stats::
"port": 0,
"refresh": 30,
"rtt_warning": None,
- "status": 0.005679,
+ "status": 0.00589,
"timeout": 3}]
Fields descriptions:
@@ -744,7 +747,7 @@ Get a specific item when field matches the given value::
"port": 0,
"refresh": 30,
"rtt_warning": None,
- "status": 0.005679,
+ "status": 0.00589,
"timeout": 3}]}
GET processcount
@@ -753,7 +756,7 @@ GET processcount
Get plugin stats::
# curl http://localhost:61208/api/4/processcount
- {"pid_max": 0, "running": 0, "sleeping": 282, "thread": 1687, "total": 477}
+ {"pid_max": 0, "running": 1, "sleeping": 280, "thread": 1620, "total": 419}
Fields descriptions:
@@ -766,7 +769,7 @@ Fields descriptions:
Get a specific field::
# curl http://localhost:61208/api/4/processcount/total
- {"total": 477}
+ {"total": 419}
GET processlist
---------------
@@ -774,7 +777,100 @@ GET processlist
Get plugin stats::
# curl http://localhost:61208/api/4/processlist
- []
+ [{"cmdline": ["/snap/firefox/4336/usr/lib/firefox/firefox",
+ "-contentproc",
+ "-childID",
+ "2",
+ "-isForBrowser",
+ "-prefsLen",
+ "28296",
+ "-prefMapSize",
+ "244444",
+ "-jsInitLen",
+ "231800",
+ "-parentBuildID",
+ "20240527194810",
+ "-greomni",
+ "/snap/firefox/4336/usr/lib/firefox/omni.ja",
+ "-appomni",
+ "/snap/firefox/4336/usr/lib/firefox/browser/omni.ja",
+ "-appDir",
+ "/snap/firefox/4336/usr/lib/firefox/browser",
+ "{01aadc3d-85fc-4851-9ca1-a43a1e81c3fa}",
+ "4591",
+ "true",
+ "tab"],
+ "cpu_percent": 0.0,
+ "cpu_times": {"children_system": 0.0,
+ "children_user": 0.0,
+ "iowait": 0.0,
+ "system": 123.52,
+ "user": 2733.04},
+ "gids": {"effective": 1000, "real": 1000, "saved": 1000},
+ "io_counters": [8411136, 0, 0, 0, 0],
+ "key": "pid",
+ "memory_info": {"data": 3639250944,
+ "dirty": 0,
+ "lib": 0,
+ "rss": 3594973184,
+ "shared": 128897024,
+ "text": 987136,
+ "vms": 6192345088},
+ "memory_percent": 21.89055408844624,
+ "name": "Isolated Web Co",
+ "nice": 0,
+ "num_threads": 28,
+ "pid": 4848,
+ "status": "S",
+ "time_since_update": 1,
+ "username": "nicolargo"},
+ {"cmdline": ["/snap/firefox/4336/usr/lib/firefox/firefox",
+ "-contentproc",
+ "-childID",
+ "3",
+ "-isForBrowser",
+ "-prefsLen",
+ "28296",
+ "-prefMapSize",
+ "244444",
+ "-jsInitLen",
+ "231800",
+ "-parentBuildID",
+ "20240527194810",
+ "-greomni",
+ "/snap/firefox/4336/usr/lib/firefox/omni.ja",
+ "-appomni",
+ "/snap/firefox/4336/usr/lib/firefox/browser/omni.ja",
+ "-appDir",
+ "/snap/firefox/4336/usr/lib/firefox/browser",
+ "{0ae685c6-7105-4724-886c-98d4a4a9a4f8}",
+ "4591",
+ "true",
+ "tab"],
+ "cpu_percent": 0.0,
+ "cpu_times": {"children_system": 0.0,
+ "children_user": 0.0,
+ "iowait": 0.0,
+ "system": 52.27,
+ "user": 492.22},
+ "gids": {"effective": 1000, "real": 1000, "saved": 1000},
+ "io_counters": [2974720, 0, 0, 0, 0],
+ "key": "pid",
+ "memory_info": {"data": 1949392896,
+ "dirty": 0,
+ "lib": 0,
+ "rss": 1926062080,
+ "shared": 121397248,
+ "text": 987136,
+ "vms": 4444565504},
+ "memory_percent": 11.72820045712621,
+ "name": "Isolated Web Co",
+ "nice": 0,
+ "num_threads": 28,
+ "pid": 4852,
+ "status": "S",
+ "time_since_update": 1,
+ "username": "nicolargo"}]
Fields descriptions:
@@ -798,7 +894,7 @@ GET psutilversion
Get plugin stats::
# curl http://localhost:61208/api/4/psutilversion
- "5.9.8"
+ "6.0.0"
GET quicklook
-------------
@@ -806,18 +902,18 @@ GET quicklook
Get plugin stats::
# curl http://localhost:61208/api/4/quicklook
- {"cpu": 0.0,
+ {"cpu": 6.7,
"cpu_hz": 4475000000.0,
- "cpu_hz_current": 1388073500.0,
+ "cpu_hz_current": 676840312.5,
"cpu_log_core": 16,
"cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H",
"cpu_phys_core": 10,
"load": 5.8,
- "mem": 50.1,
+ "mem": 72.4,
"percpu": [{"cpu_number": 0,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 39.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -825,12 +921,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 61.0,
"user": 0.0},
{"cpu_number": 1,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 1.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -838,12 +934,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 99.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 2,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 39.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -851,12 +947,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 61.0,
"user": 0.0},
{"cpu_number": 3,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -864,25 +960,25 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 4,
"guest": 0.0,
"guest_nice": 0.0,
"idle": 0.0,
- "iowait": 0.0,
+ "iowait": 1.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 0.0,
+ "system": 4.0,
"total": 100.0,
- "user": 0.0},
+ "user": 35.0},
{"cpu_number": 5,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 1.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -890,12 +986,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 99.0,
- "user": 0.0},
+ "total": 60.0,
+ "user": 1.0},
{"cpu_number": 6,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -903,12 +999,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 7,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -916,12 +1012,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 8,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -929,25 +1025,25 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
- "user": 0.0},
+ "total": 60.0,
+ "user": 1.0},
{"cpu_number": 9,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 1.0,
+ "idle": 39.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 0.0,
- "total": 99.0,
+ "system": 1.0,
+ "total": 61.0,
"user": 0.0},
{"cpu_number": 10,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -955,12 +1051,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 11,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 1.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -968,12 +1064,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 99.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 12,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -981,25 +1077,25 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 13,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
"nice": 0.0,
"softirq": 0.0,
"steal": 0.0,
- "system": 0.0,
- "total": 100.0,
+ "system": 1.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 14,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -1007,12 +1103,12 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
+ "total": 60.0,
"user": 0.0},
{"cpu_number": 15,
"guest": 0.0,
"guest_nice": 0.0,
- "idle": 0.0,
+ "idle": 40.0,
"iowait": 0.0,
"irq": 0.0,
"key": "cpu_number",
@@ -1020,9 +1116,9 @@ Get plugin stats::
"softirq": 0.0,
"steal": 0.0,
"system": 0.0,
- "total": 100.0,
- "user": 1.0}],
- "swap": 0.0}
+ "total": 60.0,
+ "user": 0.0}],
+ "swap": 21.6}
Fields descriptions:
@@ -1060,14 +1156,14 @@ Get plugin stats::
"label": "Ambient",
"type": "temperature_core",
"unit": "C",
- "value": 32,
+ "value": 35,
"warning": 0},
{"critical": None,
"key": "label",
"label": "Ambient 3",
"type": "temperature_core",
"unit": "C",
- "value": 29,
+ "value": 31,
"warning": 0}]
Fields descriptions:
@@ -1128,7 +1224,7 @@ Get a specific item when field matches the given value::
"label": "Ambient",
"type": "temperature_core",
"unit": "C",
- "value": 32,
+ "value": 35,
"warning": 0}]}
GET smart
@@ -1172,7 +1268,7 @@ GET uptime
Get plugin stats::
# curl http://localhost:61208/api/4/uptime
- "7 days, 5:37:22"
+ "19 days, 16:54:43"
GET version
-----------
@@ -1180,7 +1276,7 @@ GET version
Get plugin stats::
# curl http://localhost:61208/api/4/version
- "4.1.0_beta02"
+ "4.1.0"
GET wifi
--------
@@ -1189,8 +1285,8 @@ Get plugin stats::
# curl http://localhost:61208/api/4/wifi
[{"key": "ssid",
- "quality_level": -52.0,
- "quality_link": 58.0,
+ "quality_level": -61.0,
+ "quality_link": 49.0,
"ssid": "wlp0s20f3"}]
Get a specific field::
@@ -1202,8 +1298,8 @@ Get a specific item when field matches the given value::
# curl http://localhost:61208/api/4/wifi/ssid/wlp0s20f3
{"wlp0s20f3": [{"key": "ssid",
- "quality_level": -52.0,
- "quality_link": 58.0,
+ "quality_level": -61.0,
+ "quality_link": 49.0,
"ssid": "wlp0s20f3"}]}
GET all stats
@@ -1248,34 +1344,34 @@ GET stats history
History of a plugin::
# curl http://localhost:61208/api/4/cpu/history
- {"system": [["2024-06-16T22:34:25.870202", 0.0],
- ["2024-06-16T22:34:26.906607", 0.0],
- ["2024-06-16T22:34:27.988332", 0.0]],
- "user": [["2024-06-16T22:34:25.870186", 0.0],
- ["2024-06-16T22:34:26.906601", 1.0],
- ["2024-06-16T22:34:27.988320", 1.0]]}
+ {"system": [["2024-06-29T09:51:58.684649", 3.2],
+ ["2024-06-29T09:51:59.762140", 0.6],
+ ["2024-06-29T09:52:00.774689", 0.6]],
+ "user": [["2024-06-29T09:51:58.684643", 11.4],
+ ["2024-06-29T09:51:59.762137", 0.7],
+ ["2024-06-29T09:52:00.774685", 0.7]]}
Limit history to last 2 values::
# curl http://localhost:61208/api/4/cpu/history/2
- {"system": [["2024-06-16T22:34:26.906607", 0.0],
- ["2024-06-16T22:34:27.988332", 0.0]],
- "user": [["2024-06-16T22:34:26.906601", 1.0],
- ["2024-06-16T22:34:27.988320", 1.0]]}
+ {"system": [["2024-06-29T09:51:59.762140", 0.6],
+ ["2024-06-29T09:52:00.774689", 0.6]],
+ "user": [["2024-06-29T09:51:59.762137", 0.7],
+ ["2024-06-29T09:52:00.774685", 0.7]]}
History for a specific field::
# curl http://localhost:61208/api/4/cpu/system/history
- {"system": [["2024-06-16T22:34:24.682172", 0.0],
- ["2024-06-16T22:34:25.870202", 0.0],
- ["2024-06-16T22:34:26.906607", 0.0],
- ["2024-06-16T22:34:27.988332", 0.0]]}
+ {"system": [["2024-06-29T09:51:57.513763", 3.2],
+ ["2024-06-29T09:51:58.684649", 3.2],
+ ["2024-06-29T09:51:59.762140", 0.6],
+ ["2024-06-29T09:52:00.774689", 0.6]]}
Limit history for a specific field to last 2 values::
# curl http://localhost:61208/api/4/cpu/system/history
- {"system": [["2024-06-16T22:34:26.906607", 0.0],
- ["2024-06-16T22:34:27.988332", 0.0]]}
+ {"system": [["2024-06-29T09:51:59.762140", 0.6],
+ ["2024-06-29T09:52:00.774689", 0.6]]}
GET limits (used for thresholds)
--------------------------------
@@ -1360,6 +1456,8 @@ All limits/thresholds::
"network": {"history_size": 1200.0,
"network_disable": ["False"],
"network_hide": ["docker.*", "lo"],
+ "network_hide_no_ip": ["True"],
+ "network_hide_no_up": ["True"],
"network_rx_careful": 70.0,
"network_rx_critical": 90.0,
"network_rx_warning": 80.0,
diff --git a/docs/man/glances.1 b/docs/man/glances.1
index 11dd053b..c43028f7 100644
--- a/docs/man/glances.1
+++ b/docs/man/glances.1
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
-.TH "GLANCES" "1" "Jun 16, 2024" "4.1.0_beta02" "Glances"
+.TH "GLANCES" "1" "Jun 29, 2024" "4.1.0" "Glances"
.SH NAME
glances \- An eye on your system
.SH SYNOPSIS
diff --git a/glances/plugins/sensors/__init__.py b/glances/plugins/sensors/__init__.py
index 8449f01b..69c97953 100644
--- a/glances/plugins/sensors/__init__.py
+++ b/glances/plugins/sensors/__init__.py
@@ -116,6 +116,17 @@ class PluginModel(GlancesPluginModel):
self.sensors_grab_map[SensorType.HDD_TEMP] = hddtemp_plugin
self.sensors_grab_map[SensorType.BATTERY] = batpercent_plugin
+ self.sensors_grab_map: Dict[SensorType, Any] = {}
+
+ if glances_grab_sensors_cpu_temp.init:
+ self.sensors_grab_map[SensorType.CPU_TEMP] = glances_grab_sensors_cpu_temp
+
+ if glances_grab_sensors_fan_speed.init:
+ self.sensors_grab_map[SensorType.FAN_SPEED] = glances_grab_sensors_fan_speed
+
+ self.sensors_grab_map[SensorType.HDD_TEMP] = hddtemp_plugin
+ self.sensors_grab_map[SensorType.BATTERY] = batpercent_plugin
+
# We want to display the stat in the curse interface
self.display_curse = True
diff --git a/setup.py b/setup.py
index 7fa62863..cdb53b18 100755
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ def get_install_requires():
def get_install_extras_require():
extras_require = {
'action': ['chevron'],
- 'browser': ['zeroconf==0.131.0'],
+ 'browser': ['zeroconf>=0.19.1'],
'cloud': ['requests'],
'containers': ['docker>=6.1.1', 'python-dateutil', 'six', 'podman', 'packaging'],
'export': [