Skip to content

Metric plugins - mackerel-plugin-multicore

Mackerel-plugin-multicore is a plugin for monitoring multi-core CPUs. In the system metrics, the cpu value is the sum of all cores. In contrast, this plugin posts usage per core as a metric.

Monitorable metrics

MultiCore CPU

Metric Display NameMetric NameDiffStackedDescription
usercustom.multicore.cpu.#.userTime spent in user mode
nicecustom.multicore.cpu.#.niceTime spent in user mode with low priority (nice)
systemcustom.multicore.cpu.#.systemTime spent in system mode
idlecustom.multicore.cpu.#.idleTime spent in the idle task
iowaitcustom.multicore.cpu.#.iowaitTime waiting for I/O to complete
irqcustom.multicore.cpu.#.irqTime spent processing interrupts
softirqcustom.multicore.cpu.#.softirqTime spent processing softirqs
stealcustom.multicore.cpu.#.stealIn a virtualized environment, time when the guest OS is not allocated CPU by the host OS or hypervisor
guestcustom.multicore.cpu.#.guestTime used by the virtual CPU of the guest OS
guestNicecustom.multicore.cpu.#.guestNiceTime used by the virtual CPU of the niced guest OS

Post each value of cpu0 etc. in /proc/stat. # is replaced by cpu0, etc.

MultiCore loadavg5 per core

Metric Display NameMetric NameDiffStackedDescription
loadavg5custom.multicore.loadavg_per_core.loadavg5The value of loadavg5 divided by the number of CPU cores

Post the value of loadavg5 in /proc/loadavg.

Configurable options

OptionShortDescriptionDefault
--tempfileSpecify the destination file path for tempfile
--help-hShow Help
  • The tempfile records the latest execution results
  • By default, it is created under /var/tmp/mackerel-agent/ as mackerel-plugin-multicore

Example configuration

toml
[plugin.metrics.multicore]
command = ["mackerel-plugin-multicore"]

Repository

https://github.com/mackerelio/mackerel-agent-plugins/tree/master/mackerel-plugin-multicore