-
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
Telegraf 1.26.2. Memory Input Plugin - inputs.mem. mem.write_back - zero value. #13299
Comments
Unfortunately, there is no whole story - the version where it continues to work:
|
Run command grep -e Dirty: -e Writeback: /proc/meminfo on Host where problem:
|
Hi, The memory plugin data comes from gopsutil. It would help greatly if you could narrow down to what version of telegraf was the last working and the first broken. From there we can determine which version of gopsutil no longer reports the value correctly. My guess is that it is because upstream is looking for Would you be willing to file an upstream issue? |
Hello.
I'll try to calculate the specific version that had the problem |
Thanks - please do let us know what version you track it down to and if you file an upstream issue. |
Hi, finished the tests: |
Looking at our diff, it looks like there were two changes to our gopsutil usage between v1.20.4 and 1.21.0-rc1:
I went through the diff for v3.21.8 and v3.21.10 and was able to compare the v3 and previous version: I have filed an upstream issue shirou/gopsutil#1471 and put up shirou/gopsutil#1472 to fix the capitalization. |
My upstream PR was just merged! I think the maintainer should do a release soon, then we can get that in telegraf with the fix. |
Hi, A release was made last week, and I have put up #13396 to update to the new version. |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.26.2. Ubuntu 18.04, 22.04
Docker
No response
Steps to reproduce
Expected behavior
write_back= and write_back_tmp more 0
Actual behavior
write_back=0i,write_back_tmp=0i
Additional info
After update to Telegraf 1.26.2, the metric "mem.write_back" began to accept only a zero value on all servers.
OS - Ubuntu 18.04, 22.04
telegraf --test -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d/ --input-filter=mem:
active=24328122368i,available=25401221120i,available_percent=75.5993608248227,buffered=135442432i,cached=25453924352i,commit_limit=18947371008i,committed_as=8156454912i,dirty=37199872i,free=299200512i,high_free=0i,high_total=0i,huge_page_size=2097152i,huge_pages_free=0i,huge_pages_total=0i,inactive=7386312704i,low_free=0i,low_total=0i,mapped=164855808i,page_tables=23384064i,shared=917504i,slab=1301299200i,sreclaimable=1240989696i,sunreclaim=60309504i,swap_cached=278528i,swap_free=2143285248i,swap_total=2147479552i,total=33599782912i,used=7711215616i,used_percent=22.95019475630593,vmalloc_chunk=0i,vmalloc_total=35184372087808i,vmalloc_used=0i,write_back=0i,write_back_tmp=0i 1684741645000000000
The text was updated successfully, but these errors were encountered: