38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
- @no_container = true
|
|
- page_title "System Info"
|
|
= render 'admin/monitoring/head'
|
|
|
|
%div{ class: container_class }
|
|
.prepend-top-default
|
|
.row
|
|
.col-sm-4
|
|
.light-well
|
|
%h4 CPU
|
|
.data
|
|
- if @cpus
|
|
%h1 #{@cpus.length} cores
|
|
- else
|
|
= icon('warning', class: 'text-warning')
|
|
Unable to collect CPU info
|
|
.col-sm-4
|
|
.light-well
|
|
%h4 Memory
|
|
.data
|
|
- if @memory
|
|
%h1 #{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}
|
|
- else
|
|
= icon('warning', class: 'text-warning')
|
|
Unable to collect memory info
|
|
.col-sm-4
|
|
.light-well
|
|
%h4 Disks
|
|
.data
|
|
- @disks.each do |disk|
|
|
%h1 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
|
|
%p= disk[:disk_name]
|
|
%p= disk[:mount_path]
|
|
.col-sm-4
|
|
.light-well
|
|
%h4 Uptime
|
|
.data
|
|
%h1= time_ago_with_tooltip(Rails.application.config.booted_at)
|