Cpups_apps is a example plugin for netdata monitoring system.
It collects statistics of the processor usages as a percentage for the selected applications.
Realized on shell and intended for use with the netdata's charts.d module.
ATTENTION
As the mechanism of statistics collection through /proc filesystem is used, it is not possible to obtain completely reliable data for cases when controlled process finishes the operation. For tasks where accurate accounting of such scenarios is important it is necessary to use the pacct mechanism just as it's used by the atop utility.
- Install netdata
- Copy cpupc_apps.chart.sh to ${NETDATA_INSTALL_PREFIX}/usr/libexec/netdata/charts.d/cpupc_apps.chart.sh
- Copy cpupc_apps.conf to ${NETDATA_INSTALL_PREFIX}/etc/netdata/charts.d/cpupc_apps.conf
- Edit the configuration (cpupc_apps.conf) by specifying the needed application for monitoring
- Restart netdata
- Add get the cpu usage statistics through cgroup's cpuacct controller