Class: Fluent::DockerMetricsInput::KeyValueStatsParser
- Inherits:
-
CGroupStatsParser
- Object
- CGroupStatsParser
- Fluent::DockerMetricsInput::KeyValueStatsParser
- Defined in:
- lib/fluent/plugin/in_docker_metrics.rb
Instance Method Summary collapse
Methods inherited from CGroupStatsParser
Constructor Details
This class inherits a constructor from Fluent::DockerMetricsInput::CGroupStatsParser
Instance Method Details
#parse_line(line) ⇒ Object
139 140 141 142 143 144 145 146 |
# 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 |