Vertica Quick Tip: Monitoring CPU Usage

Posted April 3, 2018 by Soniya Shah, Information Developer

Business Team Meeting Discussion Working Concept
This blog post was authored by Jim Knicely. The V_MONITOR.CPU_USAGE system table records the CPU usage history by node. Example: I can easily find the top 5 highest average CPU usage on my cluster in the previous 24 hours: dbadmin=> SELECT start_time, dbadmin-> AVG(average_cpu_usage_percent) AS avg_cpu_usage dbadmin-> FROM v_monitor.cpu_usage dbadmin-> WHERE start_time BETWEEN NOW() - INTERVAL '24 hours' AND NOW() dbadmin-> GROUP BY start_time dbadmin-> ORDER BY AVG(average_cpu_usage_percent) DESC dbadmin-> LIMIT 5; start_time | avg_cpu_usage ---------------------+--------------- 2018-04-02 02:00:00 | 6.23 2018-04-01 23:59:00 | 5.94 2018-04-02 04:02:00 | 2.48 2018-04-01 21:57:00 | 2.18 2018-04-02 03:05:00 | 2.16 (5 rows) Have Fun!