Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add omi record count log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronRM committed Apr 4, 2024
1 parent 4573f0b commit cc594fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/code/plugins/omi_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def lookup_class_name(class_name, mappings)
def transform(records, collected_counters, host, time)
if records.to_s == ''
# nil or empty, return empty record
@log.info "Received empty record set from OMI."
return {}
end

Expand All @@ -65,6 +66,7 @@ def transform(records, collected_counters, host, time)

data_items = []

@log.info "Received #{records_hash.size} records from OMI."
records_hash.each { |record|
# get the specific class mapping
specific_mapping = lookup_class_name(record["ClassName"], @counter_mapping)
Expand Down

0 comments on commit cc594fb

Please sign in to comment.