telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

[inputs.mem] Add percpu memory statistic

Open pvlltvk opened this issue 1 month ago • 1 comments

Use Case

Hi guys! What do you think about adding the percpu memory field for mem input? It's available in /proc/meminfo and can be extremely useful since some linux virtual machines can possible have some leakage related to it (link, link) I personally noticed this issue and the only way to find you the root cause was the node-exporter since it supports this percpu memory usage metric

Expected behavior

We don't have this field in the mem input now.

Actual behavior

I believe that we can easily add an additional field to the mem plugin, I can create a PR if you are interested.

Additional info

No response

pvlltvk avatar Nov 03 '25 16:11 pvlltvk

Hi @pvlltvk, best way to go forward with this is to create the PR anyway 😉

Hipska avatar Nov 07 '25 14:11 Hipska