munin 监控 cpu 使用情况 - 添加新组

munin 监控 cpu 使用情况 - 添加新组

下图为System > CPU usage

是否可以添加新组/曲线?我想看看 PHP 和 Mysql 各自消耗了多少 CPU

在此输入图像描述

答案1

我建议使用cpubyprocess插件

用法:

# Plugin to monitor CPU usage, for a selected set of processes. Tested on FreeBSD.
#
# Author: Erik Cederstrand
# Based on http://waste.mandragor.org/munin_tutorial/cpubyuser
# Thanks to Yann Hamon.
#
# Usage: Place in /usr/local/etc/munin/plugins/ (or link it there  using ln -s)
#        Add this to your /ur/local/etc/munin/plugin-conf.d/plugins.conf:
#       [cpubyproc]
#       env.procs httpd java

相关内容