instrumental_tools 1.0.0.pre.1 → 1.0.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/instrumental_tools/server_controller.rb +8 -6
- data/lib/instrumental_tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b64e92569183e2736c6d04e8535ea5d667e2e3ce
|
4
|
+
data.tar.gz: abc339b8e123825cfe074d61782c025fb722390f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|