class Fluent::DockerMetricsInput::CGroupStatsParser
Public Class Methods
new(path, metric_type)
click to toggle source
# File lib/fluent/plugin/in_docker_metrics.rb, line 122 def initialize(path, metric_type) raise ConfigError if not File.exists?(path) @path = path @metric_type = metric_type end
Public Instance Methods
parse_each_line(&block)
click to toggle source
# File lib/fluent/plugin/in_docker_metrics.rb, line 131 def parse_each_line(&block) File.new(@path).each_line do |line| block.call(parse_line(line)) end end
parse_line(line)
click to toggle source
# File lib/fluent/plugin/in_docker_metrics.rb, line 128 def parse_line(line) end