mtr_monitor 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mtr_monitor/metrics.rb +5 -2
- data/lib/mtr_monitor/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: bf2f55e4ec8aa4498e12b6e4b411427e77bb8820
|
4
|
+
data.tar.gz: a89811b1024b6d61e2f41cf003ba0cd6136b0631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8464b6acc5efd39778ca4cf5d94d9d774b95065934dafb780700e4973393db43517ad8fed929d73e0a1d8c7d8ca1a4ccd07e1abecf49cf68fe2cb6ad0164f71d
|
7
|
+
data.tar.gz: 49829aefd7bc9a3ce06c6c860d485ba9fa3fa60408ac61d24489b28bc3124a512e69b2212c88554fa5bf2718b09158e9e9829a7918be248739790696ecc69b6f
|
data/Gemfile.lock
CHANGED
data/lib/mtr_monitor/metrics.rb
CHANGED
@@ -5,8 +5,11 @@ module MtrMonitor
|
|
5
5
|
hostname = hostname.gsub(".", "-")
|
6
6
|
|
7
7
|
logger.info "Submitting pulse: network.mtr.pulse, tags: #{[hostname, name]}, prefix: #{Watchman.prefix} port: #{Watchman.port}"
|
8
|
-
|
9
|
-
|
8
|
+
|
9
|
+
2.times do # To make sure pulse is successfully submitted to grafana
|
10
|
+
Watchman.submit("network.mtr.pulse", 1, :gauge, :tags => [hostname, name])
|
11
|
+
sleep 5
|
12
|
+
end
|
10
13
|
|
11
14
|
hops(log_path).each do |hop|
|
12
15
|
hop_name = hop.name.gsub(".", "-").gsub("?", "q")
|
data/lib/mtr_monitor/version.rb
CHANGED