bin/metrics-iostat-extended.rb in sensu-plugins-io-checks-2.0.0 vs bin/metrics-iostat-extended.rb in sensu-plugins-io-checks-3.0.0
- old
+ new
@@ -1,7 +1,8 @@
#! /usr/bin/env ruby
-# encoding: UTF-8
+# frozen_string_literal: true
+
#
# metrics-iostat-extended
#
# DESCRIPTION:
# This plugin collects iostat data for a specified disk or all disks.
@@ -122,9 +123,10 @@
timestamp = Time.now.to_i
stats.each do |disk, metrics|
next if exclude_disk.include? disk
+
metrics.each do |metric, value|
output [config[:scheme], disk, metric].join('.'), value, timestamp
end
end
ok