-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Incorrect procstat IO counters #9189
Comments
next steps: add the additional metrics requested, clearly explain the existing fields measure data read/written from block devices and new fields of |
Is this why I am seeing weird numbers? Because I am running rsync between two disks (simply a mirror operation) and it shows about ~80MB/s. But when looking at read_bytes and write_bytes I get ~600 (whatever unit that is). When I divide it by eight it somehow resembles the actuelly traffic rate. thx |
This is an upstream issue as gopsutil does not report those metrics: shirou/gopsutil#672 |
I have not tested, but I do not think names such as |
@phemmer can you suggest another name or should we keep |
I don't know. First it depends on whether the other operating system which is supported here (windows) uses disk IO or all IO for its counters. If on windows |
That sounds reasonable. However, I have no idea about the situation on other OSes. Will probably take a look next week... |
@phemmer it looks like the underlying data-structure is about disk I/O according to this documentation. |
That's not the data that gopsutil is gathering. As can be seen here, it calls |
Ok thanks! So I will change the PR to report |
That proposal seems like it immediately fixes the problem. The values will have accurate names, and the values will be consistent across OSs. But it is a breaking change. Though this whole thing might be qualified as a bug, so is really a fix. However there is the underlying issue that this is all caused by a gopsutil inconsistency issue. The value means one thing on one OS, and something else on another OS. If they ever fix the inconsistency, what is going to prevent telegraf from breaking again? |
Nothing, but that's a long history of gopsutils breaking us... :-( |
Relevant telegraf.conf:
System info:
Telegraf v1.18.1
Linux
Docker
Steps to reproduce:
Expected behavior:
Actual behavior:
Additional info:
The plugin is pulling the
read_bytes
andwrite_bytes
values from/proc/$pid/io
. These metrics track block device IO, not all IO. For all IO therchar
andwchar
metrics need to be used.The text was updated successfully, but these errors were encountered: