Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iowait shows color of previous state #3086

Open
wessel01 opened this issue Jan 14, 2025 · 0 comments
Open

iowait shows color of previous state #3086

wessel01 opened this issue Jan 14, 2025 · 0 comments

Comments

@wessel01
Copy link

I was investigating an iowait issue I had. And using glances gave me a lot of information on my docker containers and potential issues. I did find some other issue with them, so big thanks for that!
But afterwards I noticed when the screen showed iowait > 10 it should be red, but when the screen was refreshed it showed the color of the previous value. And since the server is still going up and down above and under 10 it should have been switching when refreshed. But it did not do that until the next refresh.

Environement (please complete the following information)

  • Operating System (lsb_release -a or OS name/version):
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 22.04.5 LTS
    Release: 22.04
    Codename: jammy

  • Glances & psutil versions: Glances v3.2.4.2 with PsUtil v5.9.0

  • How do you install Glances (Pypi package, script, package manager, source): docker-compose

  • Glances test:
    =================================================================================================================================================================================================================
    Glances 3.2.4.2 (/usr/lib/python3/dist-packages/glances/init.py)
    Python 3.10.12 (/usr/bin/python3)
    PsUtil 5.9.0 (/usr/lib/python3/dist-packages/psutil/init.py)
    =================================================================================================================================================================================================================
    alert [OK] 0.00002s [[1736875938.0, -1, 'CRITICAL', 'CPU_IOWAIT', 13.9, 13.9, 13.9, 13.9, 1, [], '', 'io_counters']]
    amps [OK] 0.00030s key=name [{'key': 'name', 'name': 'Dropbox', 'result': None, 'refresh': 3.0, 'timer': 5.000940799713135, 'count': 0, 'countmin': 1.0, 'countmax': None, 'regex': True},
    cloud [OK] 0.00009s {}
    connections [N/A]
    core [OK] 0.00168s {'phys': 8, 'log': 8}
    cpu [OK] 0.00097s {'total': 24.2, 'user': 17.2, 'nice': 0.0, 'system': 2.5, 'idle': 78.8, 'iowait': 1.5, 'irq': 0.0, 'softirq': 0.0, 'steal': 0.0, 'guest': 0.0, 'guest_nice': 0.0, 'time_
    diskio [OK] 0.00269s key=disk_name [{'time_since_update': 3.764934778213501, 'disk_name': 'sda', 'read_count': 0, 'write_count': 0, 'read_bytes': 0, 'write_bytes': 0, 'key': 'disk_name'}, {
    docker [OK] 0.48227s key=name [{'key': 'name', 'name': 'pinepods', 'Names': ['pinepods'], 'Id': '12d0591fa12ecd8c7b02b41e22ac2a183557fa71f092cb2f759c035b72c502f0', 'Image': ['madeofpendleto
    folders [OK] 0.00014s []
    fs [OK] 0.00408s key=mnt_point [{'device_name': '/dev/mapper/merca00-root', 'fs_type': 'ext4', 'mnt_point': '/', 'size': 485896675328, 'used': 391323398144, 'free': 69863796736, 'percen
    gpu [OK] 0.00007s []
    help [OK] 0.00001s None
    ip [N/A]
    irq [N/A]
    load [OK] 0.00011s {'min1': 2.5400390625, 'min5': 2.66455078125, 'min15': 3.76318359375, 'cpucore': 8}
    mem [OK] 0.00043s {'total': 16736808960, 'available': 7919017984, 'percent': 52.7, 'used': 8817790976, 'free': 7919017984, 'active': 2855485440, 'inactive': 12410941440, 'buffers': 85156
    memswap [OK] 0.00053s {'total': 6140456960, 'used': 2109440, 'free': 6138347520, 'percent': 0.0, 'sin': 45056, 'sout': 401408, 'time_since_update': 4.465918302536011}
    network [OK] 0.00876s key=interface_name [{'interface_name': 'lo', 'alias': None, 'time_since_update': 3.5079116821289062, 'cumulative_rx': 6924143, 'rx': 4696, 'cumulative_tx': 6924143, 'tx
    now [OK] 0.00003s 2025-01-14 18:32:22 CET
    percpu [OK] 0.00130s key=cpu_number [{'key': 'cpu_number', 'cpu_number': 0, 'total': 32.7, 'user': 18.5, 'system': 4.3, 'idle': 67.3, 'nice': 0.0, 'iowait': 9.9, 'irq': 0.0, 'softirq': 0.0,
    ports [OK] 0.00002s [{'host': '10.0.0.1', 'port': 0, 'description': 'DefaultGateway', 'refresh': 30, 'timeout': 3, 'status': 0.006646, 'rtt_warning': None, 'indice': 'port_0'}]
    processcount [OK] 0.62122s {'total': 626, 'running': 1, 'sleeping': 522, 'thread': 3170, 'pid_max': 0}
    processlist [OK] 0.00154s key=pid [{'name': 'python3', 'status': 'S', 'num_threads': 3, 'io_counters': [0, 0, 0, 0, 0], 'pid': 33985, 'cpu_percent': 68.6, 'cpu_times': pcputimes(user=243.78, sys
    psutilversion [OK] 0.00010s (5, 9, 0)
    quicklook [OK] 0.00104s {'cpu': 24.2, 'percpu': [{'key': 'cpu_number', 'cpu_number': 0, 'total': 32.7, 'user': 18.5, 'system': 4.3, 'idle': 67.3, 'nice': 0.0, 'iowait': 9.9, 'irq': 0.0, 'softi
    raid [N/A]
    sensors [OK] 0.02399s key=label [{'label': 'Core 0', 'value': 35, 'warning': 98, 'critical': 98, 'unit': 'C', 'type': 'temperature_core', 'key': 'label'}, {'label': 'Core 1', 'value': 35, 'w
    smart [N/A]
    system [OK] 0.00002s {'os_name': 'Linux', 'hostname': 'merca00.koornstra.lan', 'platform': '64bit', 'linux_distro': 'Ubuntu 22.04', 'os_version': '5.15.0-130-generic', 'hr_name': 'Ubuntu 22
    uptime [OK] 0.00033s {'seconds': 4896}
    wifi [N/A]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants