instrumental_tools 1.0.0.pre.1 → 1.0.0.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bad5b9d397d58baf15de2745da956ae559549882
4
- data.tar.gz: 8b09e4a169f43649be004e1ba7c00b044540da1a
3
+ metadata.gz: b64e92569183e2736c6d04e8535ea5d667e2e3ce
4
+ data.tar.gz: abc339b8e123825cfe074d61782c025fb722390f
5
5
  SHA512:
6
- metadata.gz: 449032b89546476bc4a0a3dfcd4c923e03b498c9141be811a30c1104b3b1035e953a5bc949dbb59449216e64491aa7ad531044c5d9389d7107dddbe0916913e3
7
- data.tar.gz: 4f139e836b4353827842db0f9cac6b8faea668c95e1dd57a25939a90006221b5e2c7d166cbcef53b495bca887268b82c8eaa87900283f849b86b194f97f6fa0d
6
+ metadata.gz: 667dfb8c445c1ae8d0e271da4645123c1d6388a1c3828fe4bf71676a9c05854d053c3a98d4b24c0551869069f2a6ab8c072dfb0646e4297184e85bf354aeace2
7
+ data.tar.gz: bd26b9e6bf6f21ccfa3cecd7379d30a3c7c362afcfdff978a80be2880abfbdb614098248b2e17a87b1412b14720c7cca9effc34b6f37356cab1ea92145b5a741
@@ -45,13 +45,15 @@ class ServerController < Pidly::Control
45
45
  end
46
46
  count += 1
47
47
  end
48
- custom_metrics.run.each do |(stat, value, time)|
49
- metric = "#{options[:hostname]}.#{stat}"
50
- agent.gauge(metric, value, time)
51
- if options[:debug]
52
- puts [metric, value].join(":")
48
+ if options[:enable_scripts]
49
+ custom_metrics.run.each do |(stat, value, time)|
50
+ metric = "#{options[:hostname]}.#{stat}"
51
+ agent.gauge(metric, value, time)
52
+ if options[:debug]
53
+ puts [metric, value].join(":")
54
+ end
55
+ count += 1
53
56
  end
54
- count += 1
55
57
  end
56
58
  puts "Sent #{count} metrics"
57
59
  end
@@ -1,5 +1,5 @@
1
1
  module Instrumental
2
2
  module Tools
3
- VERSION = "1.0.0.pre.1"
3
+ VERSION = "1.0.0.pre.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrumental_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.1
4
+ version: 1.0.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elijah Miller