bin/metrics-docker-container.rb
Method container_metrics
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def container_metrics
cgroup = "#{config[:cgroup_path]}/#{config[:cgroup_template]}"
timestamp = Time.now.to_i
ps = Sys::ProcTable.ps.group_by(&:pid)