sensu-plugins/sensu-plugins-docker

View on GitHub
bin/metrics-docker-container.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method container_metrics has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def container_metrics
    cgroup = "#{config[:cgroup_path]}/#{config[:cgroup_template]}"

    timestamp = Time.now.to_i
    ps = Sys::ProcTable.ps.group_by(&:pid)
Severity: Minor
Found in bin/metrics-docker-container.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status