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
152 153 154 155 156 157 158 159 |
# File 'lib/fluent/plugin/in_docker_metrics.rb', line 152 def parse_line(line) m = BlkioSectorsLineRegexp.match(line) if m { 'key' => @metric_type, 'value' => m["value"].to_i } else nil end end |