CPU

<% { primary: "Metric", dark: "Average" }.each do |color, label| %> <%= label %> <% end %>
<% %w[cpu_load_1m cpu_utilization].each_with_index do |metric, i| %>
<% %w[mean median mode range].each do |action| %>
<%= titleize(metric) %> <%= titleize(action) %>
<%= @metrics.send(action, metric).round(1) %><%= '%' unless i.zero? %>
<% end %>
<% end %>