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.
28 29 30 |
# File 'lib/fluent/plugin/out_kubernetes.rb', line 28 def initialize super end |
Instance Method Details
#configure(conf) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/fluent/plugin/out_kubernetes.rb', line 32 def configure(conf) super require 'docker' require 'json' end |
#emit(tag, es, chain) ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/fluent/plugin/out_kubernetes.rb', line 39 def emit(tag, es, chain) es.each do |time,record| Fluent::Engine.emit('kubernetes', time, enrich_record(tag, record)) end chain.next end |