Skip to content
Merged
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
3 changes: 3 additions & 0 deletions source/plugins/ruby/KubernetesApiClient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,9 @@ def getMetricNumericValue(metricName, metricVal)
if (metricValue.end_with?("m"))
metricValue.chomp!("m")
metricValue = Float(metricValue) * 1000.0 ** 2
elsif (metricValue.end_with?("k"))
metricValue.chomp!("k")
metricValue = Float(metricValue) * 1000.0
else #assuming no units specified, it is cores that we are converting to nanocores (the below conversion will fail for other unsupported 'units')
metricValue = Float(metricValue) * 1000.0 ** 3
end
Expand Down