Class: Fluent::KubernetesOutput
- Inherits:
-
Output
- Object
- Output
- Fluent::KubernetesOutput
- Defined in:
- lib/fluent/plugin/out_kubernetes.rb
Instance Method Summary collapse
- #configure(conf) ⇒ Object
- #emit(tag, es, chain) ⇒ Object
-
#initialize ⇒ KubernetesOutput
constructor
A new instance of KubernetesOutput.
Constructor Details
#initialize ⇒ KubernetesOutput
Returns a new instance of KubernetesOutput.
10 11 12 |
# File 'lib/fluent/plugin/out_kubernetes.rb', line 10 def initialize super end |
Instance Method Details
#configure(conf) ⇒ Object
14 15 16 17 18 |
# File 'lib/fluent/plugin/out_kubernetes.rb', line 14 def configure(conf) super require 'docker' end |
#emit(tag, es, chain) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/fluent/plugin/out_kubernetes.rb', line 20 def emit(tag, es, chain) es.each do |time,record| Fluent::Engine.emit('kubernetes', time, enrich_record(tag, record)) end chain.next end |