diff options
33 files changed, 288 insertions, 330 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efd24232..5465ba2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -99,7 +99,8 @@ jobs: runs-on: macos-14 strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + # Only test the latest stable version + python-version: ["3.12"] steps: diff --git a/CODE-OF-CONDUCT.md b/CODE-OF-CONDUCT.md index 73df9aab..5c6c55ba 100644 --- a/CODE-OF-CONDUCT.md +++ b/CODE-OF-CONDUCT.md @@ -6,7 +6,7 @@ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, -education, socio-economic status, nationality, personal appearance, race, +education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards @@ -93,7 +93,7 @@ lint: ## Lint the code. ./venv-dev/bin/python -m ruff check . --fix codespell: ## Run codespell to fix common misspellings in text files - ./venv-dev/bin/codespell -S .git,./docs/_build,./Glances.egg-info,./venv*,./glances/outputs,*.svg -L hart,bu,te,statics + ./venv-dev/bin/codespell -S .git,./docs/_build,./Glances.egg-info,./venv*,./glances/outputs,*.svg -L hart,bu,te,statics -w semgrep: ## Run semgrep to find bugs and enforce code standards ./venv-dev/bin/semgrep scan --config=auto @@ -185,7 +185,7 @@ flatpak: venv-dev-upgrade ## Generate FlatPack JSON file rm -rf ./flatpak-builder-tools @echo "Now follow: https://github.com/flathub/flathub/wiki/App-Submission" -# Snap package is automaticaly build on the Snapcraft.io platform +# Snap package is automatically build on the Snapcraft.io platform # https://snapcraft.io/glances # But you can try an offline build with the following command snapcraft: @@ -3,6 +3,14 @@ ============================================================================== =============== +Version 4.1.2 +=============== + +Bug corrected: + +* AttributeError: 'CpuPercent' object has no attribute 'cpu_percent' #2859 + +=============== Version 4.1.1 =============== @@ -23,8 +31,8 @@ Enhancements: Bug corrected: * API: Network module is disabled but appears in endpoint "all" #2815 -* API is not compatible with requests containing spcial/encoding char #2820 -* 'j' hot key crashs Glances #2831 +* API is not compatible with requests containing special/encoding char #2820 +* 'j' hot key crashes Glances #2831 * Raspberry PI - CPU info is not correct #2616 * Graph export is broken if there is no graph section in Glances configuration file #2839 * Glances API status check returns Error 405 - Method Not Allowed #2841 @@ -33,17 +41,17 @@ Bug corrected: * Exception when Glances is ran with limited plugin list #2822 * Disable separator option do not work #2823 -Continious integration and documentation: +Continuous integration and documentation: * test test_107_fs_plugin_method fails on aarch64-linux #2819 -Thanks to all contibutors and bug reporters ! +Thanks to all contributors and bug reporters ! Special thanks to: * Bharath Vignesh J K * RazCrimson -* Vadim Smal +* Vadim Small =============== Version 4.0.8 @@ -218,7 +226,7 @@ Many thinks to the contributors: * Christoph Zimmermann * RazCrimson * Robin Candau -* Github GPG acces +* Github GPG access * Continuous Integration * Georgiy Timchenko * turbocrime @@ -392,7 +400,7 @@ Documentation and CI: * Update Makefile with comments * Update Python minimal requirement for py3nvlm * Update security policy (user can open private issue directly in Github) -* Add a simple run script. Entry point for IDE debuger +* Add a simple run script. Entry point for IDE debugger Cyber security update: @@ -421,7 +429,7 @@ And also a big thanks to @RazCrimson (https://github.com/RazCrimson) for the sup Version 3.3.0.4 =============== -Refactor the Docker images factory, from now, only Alpine image wll be provided. +Refactor the Docker images factory, from now, only Alpine image will be provided. The following Docker images (nicolargo/glances) are availables: @@ -469,9 +477,9 @@ Bug corrected: * Correct issue with the regexp filter (use fullmatch instead of match) * Errors when running Glances as web service #1702 * Apply alias to Duplicate sensor name #1686 -* Make the hide function in sensors section compliant with lower/upercase #1590 +* Make the hide function in sensors section compliant with lower/uppercase #1590 * Web UI truncates the days part of CPU time counter of the process list #2108 -* Correct alignement issue with the diskio plugin (Console UI) +* Correct alignment issue with the diskio plugin (Console UI) Documentation and CI: @@ -738,7 +746,7 @@ Bugs corrected: * Docker containers information missing with Docker 20.10.x #1878 * Get system sensors temperatures thresholds #1864 -Contibutors for this version: +Contributors for this version: * Nicolargo * Markus Pöschl @@ -1345,7 +1353,7 @@ Enhancements and new features: * Add ZeroMQ exporter (issue #939) * Add CouchDB exporter (issue #928) * Add hotspot Wifi information (issue #937) -* Add default interface speed and automatic rate thresolds (issue #718) +* Add default interface speed and automatic rate thresholds (issue #718) * Highlight max stats in the processes list (issue #878) * Docker alerts and actions (issue #875) * Glances API returns the processes PPID (issue #926) @@ -2,7 +2,7 @@ Glances - An eye on your system =============================== -| |pypi| |test| |contibutors| |quality| +| |pypi| |test| |contributors| |quality| | |starts| |docker| |pypistat| | |sponsors| |twitter| @@ -25,9 +25,9 @@ Glances - An eye on your system :target: https://github.com/nicolargo/glances/actions :alt: Linux tests (GitHub Actions) -.. |contibutors| image:: https://img.shields.io/github/contributors/nicolargo/glances +.. |contributors| image:: https://img.shields.io/github/contributors/nicolargo/glances :target: https://github.com/nicolargo/glances/issues?q=is%3Aissue+is%3Aopen+label%3A%22needs+contributor%22 - :alt: Contibutors + :alt: Contributors .. |quality| image:: https://scrutinizer-ci.com/g/nicolargo/glances/badges/quality-score.png?b=develop :target: https://scrutinizer-ci.com/g/nicolargo/glances/?branch=develop @@ -141,7 +141,7 @@ stable version. To install Glances, simply use the ``pip`` command line. Warning: on modern Linux operating systems, you may have an externally-managed-environment -error message when you try to use ``pip``. In this case, go to the the PipX section bellow. +error message when you try to use ``pip``. In this case, go to the the PipX section below. .. code-block:: console diff --git a/conf/glances.conf b/conf/glances.conf index 7bba30aa..faa94f9f 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -375,7 +375,7 @@ temperature_hdd_critical=60 battery_careful=80 battery_warning=90 battery_critical=95 -# Fan speed threashold in RPM +# Fan speed threshold in RPM #fan_speed_careful=100 # Sensors alias #alias=core 0:CPU Core 0,core 1:CPU Core 1 diff --git a/docker-compose/docker-compose-with-traefik.yml b/docker-compose/docker-compose-with-traefik.yml index 1f98d07b..06caf682 100644 --- a/docker-compose/docker-compose-with-traefik.yml +++ b/docker-compose/docker-compose-with-traefik.yml @@ -27,7 +27,7 @@ services: environment: - TZ=${TZ} - "GLANCES_OPT=-C /glances/conf/glances.conf -w" - # Uncomment for GPU compatibilty (Nvidia) inside the container + # Uncomment for GPU compatibility (Nvidia) inside the container # deploy: # resources: # reservations: diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index 84e4bcf7..f446dad6 100644 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -15,7 +15,7 @@ services: environment: - TZ=${TZ} - "GLANCES_OPT=-C /glances/conf/glances.conf -w" - # Uncomment for GPU compatibilty (Nvidia) inside the container + # Uncomment for GPU compatibility (Nvidia) inside the container # deploy: # resources: # reservations: diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf index 11bcb951..0194b250 100755 --- a/docker-compose/glances.conf +++ b/docker-compose/glances.conf @@ -375,7 +375,7 @@ temperature_hdd_critical=60 battery_careful=80 battery_warning=90 battery_critical=95 -# Fan speed threashold in RPM +# Fan speed threshold in RPM #fan_speed_careful=100 # Sensors alias #alias=core 0:CPU Core 0,core 1:CPU Core 1 diff --git a/docs/aoa/cloud.rst b/docs/aoa/cloud.rst index d6214925..a65a2414 100644 --- a/docs/aoa/cloud.rst +++ b/docs/aoa/cloud.rst @@ -3,7 +3,7 @@ CLOUD ===== -This plugin diplays information about the cloud provider if your host is running on OpenStack. +This plugin displays information about the cloud provider if your host is running on OpenStack. The plugin use the standard OpenStack `metadata`_ service to retrieve the information. diff --git a/docs/aoa/cpu.rst b/docs/aoa/cpu.rst index 1124663c..c9e3ea83 100644 --- a/docs/aoa/cpu.rst +++ b/docs/aoa/cpu.rst @@ -53,7 +53,7 @@ To switch to per-CPU stats, just hit the ``1`` key: .. image:: ../_static/per-cpu.png In this case, Glances will show on line per logical CPU on the system. -If you have multiple core, it is possible to define the maximun number +If you have multiple core, it is possible to define the maximum number of CPU to display. The top 'max_cpu_display' will be display and an extra line with the mean of all others CPU will be added. diff --git a/docs/aoa/header.rst b/docs/aoa/header.rst index 62a3515b..23f07ab4 100644 --- a/docs/aoa/header.rst +++ b/docs/aoa/header.rst @@ -57,7 +57,7 @@ Example: **NOTE:** Setting low values for `public_refresh_interval` will result in frequent HTTP requests to the onlive service defined in public_api. Recommended range: 120-600 seconds. -Glances uses online services in order to get the IP addresses and the additional informations. +Glances uses online services in order to get the IP addresses and the additional information. Your IP address could be blocked if too many requests are done. diff --git a/docs/aoa/load.rst b/docs/aoa/load.rst index 57b1fc00..32924182 100644 --- a/docs/aoa/load.rst +++ b/docs/aoa/load.rst @@ -39,7 +39,7 @@ Trend Status ======== ============================================================== ``-`` Mean 15 lasts values equal mean 15 previous values ``↓`` Mean 15 lasts values is lower mean 15 previous values -``↑`` Mean 15 lasts values is higher mean 15 previous valuess +``↑`` Mean 15 lasts values is higher mean 15 previous values ======== ============================================================== Legend: diff --git a/docs/aoa/memory.rst b/docs/aoa/memory.rst index fa62764a..2e41584d 100644 --- a/docs/aoa/memory.rst +++ b/docs/aoa/memory.rst @@ -49,7 +49,7 @@ Trend Status ======== ============================================================== ``-`` Mean 15 lasts values equal mean 15 previous values ``↓`` Mean 15 lasts values is lower mean 15 previous values -``↑`` Mean 15 lasts values is higher mean 15 previous valuess +``↑`` Mean 15 lasts values is higher mean 15 previous values ======== ============================================================== Alerts are only set for used memory and used swap. diff --git a/docs/api.rst b/docs/api.rst index e5ca31d7..50649ee5 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.4461839199066162}, + "timer": 0.46051621437072754}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -150,7 +150,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.4460873603820801}] + "timer": 0.4604213237762451}] 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.4461839199066162}]} + "timer": 0.46051621437072754}]} GET cloud --------- @@ -265,19 +265,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 470143766, + "ctx_switches": 546195071, "guest": 0.0, - "idle": 89.0, - "interrupts": 400614986, - "iowait": 0.0, + "idle": 92.4, + "interrupts": 467876767, + "iowait": 0.1, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 148453028, + "soft_interrupts": 173761929, "steal": 0.0, "syscalls": 0, - "system": 3.7, - "total": 6.6, - "user": 7.2} + "system": 2.9, + "total": 7.4, + "user": 4.6} Fields descriptions: @@ -310,7 +310,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 6.6} + {"total": 7.4} GET diskio ---------- @@ -320,14 +320,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 7696793088, - "read_count": 291321, - "write_bytes": 27269166080, - "write_count": 1362029}, + "read_bytes": 10517048832, + "read_count": 404202, + "write_bytes": 35011642368, + "write_count": 1738213}, {"disk_name": "nvme0n1p1", "key": "disk_name", - "read_bytes": 7558144, - "read_count": 605, + "read_bytes": 8385536, + "read_count": 905, "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": 7696793088, - "read_count": 291321, - "write_bytes": 27269166080, - "write_count": 1362029}]} + "read_bytes": 10517048832, + "read_count": 404202, + "write_bytes": 35011642368, + "write_count": 1738213}]} 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": 896569999360, + "free": 897308430336, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 5.9, + "percent": 5.8, "size": 1003736440832, - "used": 56103936000}] + "used": 55365505024}] 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": 896569999360, + "free": 897308430336, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 5.9, + "percent": 5.8, "size": 1003736440832, - "used": 56103936000}]} + "used": 55365505024}]} GET gpu ------- @@ -499,10 +499,7 @@ GET load Get plugin stats:: # curl http://localhost:61208/api/4/load - {"cpucore": 16, - "min1": 0.61279296875, - "min15": 0.96044921875, - "min5": 0.88916015625} + {"cpucore": 16, "min1": 1.2109375, "min15": 1.0966796875, "min5": 1.15185546875} Fields descriptions: @@ -514,7 +511,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 0.61279296875} + {"min1": 1.2109375} GET mem ------- @@ -522,16 +519,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 8189308928, - "available": 4513206272, - "buffers": 120315904, - "cached": 4011606016, - "free": 4513206272, - "inactive": 4910346240, - "percent": 72.5, - "shared": 870084608, + {"active": 5502283776, + "available": 10467418112, + "buffers": 280461312, + "cached": 6802784256, + "free": 10467418112, + "inactive": 4388352000, + "percent": 36.3, + "shared": 844951552, "total": 16422486016, - "used": 11909279744} + "used": 5955067904} Fields descriptions: @@ -558,13 +555,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 3059740672, - "percent": 28.8, - "sin": 38764544, - "sout": 1242734592, + {"free": 3880251392, + "percent": 9.7, + "sin": 218775552, + "sout": 1518604288, "time_since_update": 1, "total": 4294963200, - "used": 1235222528} + "used": 414711808} Fields descriptions: @@ -589,15 +586,15 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 5740182673, + "bytes_all_gauge": 6662226672, "bytes_recv": 0, - "bytes_recv_gauge": 5442631219, + "bytes_recv_gauge": 6304144613, "bytes_sent": 0, - "bytes_sent_gauge": 297551454, + "bytes_sent_gauge": 358082059, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4495677947998047}] + "time_since_update": 0.46425318717956543}] Fields descriptions: @@ -626,15 +623,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": 5740182673, + "bytes_all_gauge": 6662226672, "bytes_recv": 0, - "bytes_recv_gauge": 5442631219, + "bytes_recv_gauge": 6304144613, "bytes_sent": 0, - "bytes_sent_gauge": 297551454, + "bytes_sent_gauge": 358082059, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.4495677947998047}]} + "time_since_update": 0.46425318717956543}]} GET now ------- @@ -642,7 +639,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2024-06-29 16:31:55 CEST", "iso": "2024-06-29T16:31:55+02:00"} + {"custom": "2024-07-03 19:42:32 CEST", "iso": "2024-07-03T19:42:32+02:00"} Fields descriptions: @@ -652,7 +649,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2024-06-29T16:31:55+02:00"} + {"iso": "2024-07-03T19:42:32+02:00"} GET percpu ---------- @@ -663,7 +660,7 @@ Get plugin stats:: [{"cpu_number": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 42.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -671,12 +668,12 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 63.0, + "total": 58.0, "user": 0.0}, {"cpu_number": 1, "guest": 0.0, "guest_nice": 0.0, - "idle": 37.0, + "idle": 42.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", @@ -684,8 +681,8 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 63.0, - "user": 1.0}] + "total": 58.0, + "user": 0.0}] Fields descriptions: @@ -719,7 +716,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": None, + "status": 0.003735, "timeout": 3}] Fields descriptions: @@ -747,7 +744,7 @@ Get a specific item when field matches the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": None, + "status": 0.003735, "timeout": 3}]} GET processcount @@ -756,7 +753,7 |