Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions installer/conf/kube.conf
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@
max_retry_wait 9m
</match>

<match oms.api.ContainerNodeInventory**>
type out_oms_api
<match oms.containerinsights.ContainerNodeInventory**>
type out_oms
log_level debug
buffer_chunk_limit 20m
buffer_type file
Expand Down
9 changes: 7 additions & 2 deletions source/code/plugin/in_kube_nodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Fluent
class Kube_nodeInventory_Input < Input
Plugin.register_input('kubenodeinventory', self)

@@ContainerNodeInventoryTag = 'oms.api.ContainerNodeInventory'
@@ContainerNodeInventoryTag = 'oms.containerinsights.ContainerNodeInventory'

def initialize
super
Expand Down Expand Up @@ -109,7 +109,12 @@ def enumerate
dockerVersion.slice! "docker://"
containerNodeInventoryRecord['DockerVersion'] = dockerVersion
# ContainerNodeInventory data for docker version and operating system.
containerNodeInventoryEventStream.add(emitTime, containerNodeInventoryRecord) if containerNodeInventoryRecord
containerNodeInventoryWrapper = {
"DataType"=>"CONTAINER_NODE_INVENTORY_BLOB",
"IPName"=>"ContainerInsights",
"DataItems"=>[containerNodeInventoryRecord.each{|k,v| containerNodeInventoryRecord[k]=v}]
}
containerNodeInventoryEventStream.add(emitTime, containerNodeInventoryWrapper) if containerNodeInventoryWrapper

wrapper = {
"DataType"=>"KUBE_NODE_INVENTORY_BLOB",
Expand Down