node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
Create instant_per_process_cpu_mem_usage.sh
Hello,
I've built this (very tiny footprint) script that allows to get non named per process CPU metrics.
Most other tools out there require to setup process group names in order to catch process metrics, other solutions provide with non instant cpu metrics given by ps.
Getting instant per process cpu usage is really useful for admins to quickly find a culprit.
I did understand that you discourage shell scripts in favor of the Python client, but this one is mostly a big oneliner, and would only get a less tiny footprint if being rewritten in Python.
Would you mind merging this one ? I've found no other solution out there to achieve the same, so I normally did not reinvent the wheel ;)
I can also provide the corresponding Grafana dashboard of course:
Hope this will help any other admins ;) Best regards.