class Fluent::DockerMetricsInput::KeyValueStatsParser
Public Instance Methods
parse_line(line)
click to toggle source
# File lib/fluent/plugin/in_docker_metrics.rb, line 139 def parse_line(line) k, v = line.split(/\s+/, 2) if k and v { 'key' => @metric_type + "_" + k, 'value' => v.to_i } else nil end end