Closed iStone188 closed 3 years ago
This looks like an upstream issue with gopsutil and support for the platform you're using. You may want to open an issue there instead, it looks like the issue is this line CMA heap info(name,alloc,in cache,fail,total free):
doesn't have a value after it, and gopsutil tries to parse it as a float.
yes, CMA heap info value pattern not matching. I give up heap info value .
Telegraf Configuration
Telegraf is entirely plugin driven. All metrics are gathered from the declared inputs, and sent to the declared outputs.
System info:
Telegraf v1.17.0 AndroidVersion:7.0 Hardware:MStar AArch64
Steps to reproduce:
Expected behavior:
Actual behavior:
service input plugins
[inputs.mem] Error in plugin: error getting virtual memory info: strconv.ParseUint: parsing "": invalid syntax
but inputs.cpu、inputs.disk、inputs.diskio、inputs.kernel、inputs.processes 、inputs.swap output data is normal and true. I look at the "cat /proc/meminfo" data : MemTotal: 916484 kB MemFree: 84576 kB Buffers: 668 kB Cached: 323892 kB SwapCached: 1844 kB Active: 240312 kB Inactive: 271632 kB Active(anon): 127556 kB Inactive(anon): 158360 kB Active(file): 112756 kB Inactive(file): 113272 kB Unevictable: 5040 kB Mlocked: 0 kB SwapTotal: 393212 kB SwapFree: 366308 kB Dirty: 36 kB Writeback: 0 kB AnonPages: 190888 kB Mapped: 147708 kB Shmem: 93408 kB Slab: 33420 kB SReclaimable: 13916 kB SUnreclaim: 19504 kB KernelStack: 10096 kB PageTables: 12396 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 851452 kB Committed_AS: 16274040 kB VmallocTotal: 251658176 kB VmallocUsed: 75164 kB VmallocChunk: 251485952 kB CMA Free: 63052 kB CMA heap info(name,alloc,in cache,fail,total free): DEFAULT_CMA_BUFFER (856kb 0kb 0kb 15528kb) OTHERS (32768kb 0kb 0kb 0kb) VDEC_XC_STR_MBOOT (0kb 0kb 0kb 49152kb) RETURN_ENUM0 (25600kb 0kb 0kb 31744kb) RETURN_ENUM2 (8192kb 0kb 0kb 36864kb) VDEC1 (49152kb 0kb 0kb 0kb)
I find the result:
But it still hasn't solved the problem。