Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
include
outlinefalse
indent
exclude
typelist
class
printablefalse

Among HiveMQ’s hundreds of metrics is a group which offers detailed insights into the load the broker’s CPUs are experiencing.

...

This pair of metrics measure the percentage of CPU time spent in kernel (system-level operations) and user space space (user-level processes). Kernel space includes the core operating system processes and device drivers. whereas user space includes application-level processes.

Prometheus queries

rate(com_hivemq_system_os_global_cpu_total_usage_iowait{job = "$job"}[1m])

rate(com_hivemq_system_os_global_cpu_total_usage_irq{job = "$job"}[1m])

rate(com_hivemq_system_os_global_cpu_total_usage_nice{job = "$job"}[1m])

rate(com_hivemq_system_os_global_cpu_total_usage_softirq{job = "$job"}[1m])

rate(com_hivemq_system_os_global_cpu_total_usage_steal{job = "$job"}[1m])

rate(com_hivemq_system_os_global_cpu_total_usage_sys{job = "$job"}[1m])

rate(com_hivemq_system_os_global_cpu_total_usage_user{job = "$job"}[1m])

InfluxDB queries

SELECT mean("usage_user") + mean("usage_guest") + mean("usage_guest_nice") + mean("usage_iowait") + mean("usage_irq") + mean("usage_nice") + mean("usage_softirq") + mean("usage_steal") + mean("usage_system") FROM "cpu" WHERE $timeFilter GROUP BY time($shortInterval), "node" fill(null)