Class: Fluent::DockerMetricsInput::BlkioSectorsParser
- Inherits:
-
CGroupStatsParser
- Object
- CGroupStatsParser
- Fluent::DockerMetricsInput::BlkioSectorsParser
- Defined in:
- lib/fluent/plugin/in_docker_metrics.rb
Constant Summary collapse
- BlkioSectorsLineRegexp =
/^(?<major>\d+):(?<minor>\d+) (?<value>\d+)/
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
165 166 167 168 169 170 171 172 |
# File 'lib/fluent/plugin/in_docker_metrics.rb', line 165 def parse_line(line) m = BlkioSectorsLineRegexp.match(line) if m { 'key' => @metric_type, 'value' => m["value"].to_i } else nil end end |