lib/docker/metrics/lxc/container.rb
def gather_docker_metrics(real_pid, require_details)
          metrics_summary ={"Metrics"=>nil}
          lxc_container = ::LXC.container(@id)
          
          lxc_container.set_pid(real_pid)
          
          metrics = container_cpu_metrics(lxc_container,require_details)
          
          metrics = hash_deep_merge(metrics, container_memory_metrics(lxc_container,require_details))
          
          metrics = hash_deep_merge(metrics, container_network_metrics(lxc_container,require_details))
          
          metrics = hash_deep_merge(metrics, container_io_metrics(lxc_container,require_details))
                    
          metrics_summary["Metrics"] = metrics
          
          metrics_summary
        end
# Initialize a new Docker::Metrics::Container instance
# @param [String] name container name
# @return [Docker::Metrics::Container] container instance
Initialize a new Docker::Metrics::Container instance
Initialize a new Docker :: Metrics :: Container instance
def gather_docker_metrics(real_pid, require_details)
          metrics_summary ={"Metrics"=>nil}
          lxc_container = ::LXC.container(@id)
          lxc_container.set_pid(real_pid)
          metrics = container_cpu_metrics(lxc_container,require_details)
          metrics = hash_deep_merge(metrics, container_memory_metrics(lxc_container,require_details))
          metrics = hash_deep_merge(metrics, container_network_metrics(lxc_container,require_details))
          metrics = hash_deep_merge(metrics, container_io_metrics(lxc_container,require_details))
          metrics_summary["Metrics"] = metrics
          metrics_summary
        end
def gather_docker_metrics ( real_pid , require_details ) metrics_summary = { "Metrics" => nil } lxc_container = :: LXC . container ( @id ) lxc_container . set_pid ( real_pid ) metrics = container_cpu_metrics ( lxc_container , require_details ) metrics = hash_deep_merge ( metrics , container_memory_metrics ( lxc_container , require_details ) ) metrics = hash_deep_merge ( metrics , container_network_metrics ( lxc_container , require_details ) ) metrics = hash_deep_merge ( metrics , container_io_metrics ( lxc_container , require_details ) ) metrics_summary [ "Metrics" ] = metrics metrics_summary end
Initialize a new Docker::Metrics::Container instance
Initialize a new Docker :: Metrics :: Container instance
None
Docker::Metrics::Container
real_pid
require_details
name container name
name container name