mtr_monitor 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +2 -2
- data/Gemfile.lock +1 -1
- data/Rakefile +3 -0
- data/lib/mtr_monitor/version.rb +1 -1
- data/lib/mtr_monitor.rb +12 -2
- 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: fb307030a2d9ee5bdcd196ef001bd576bab4b698
|
4
|
+
data.tar.gz: 71c1cb484b24c573a1552a615a62fe55ad84ea15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e22a86b7de6544366c657522d5d086044deb044b6a7c3de8478f8cfc7c553ea29fb96444b1af9e209e130c6dd620aae6606f49df447ecd355e2f142315abad51
|
7
|
+
data.tar.gz: 893e500030cfead414d0d3d4ddf4e7d520245343e392f5f4b80363b5e993a24f7305eb66f5ec9073119bc91134a97a65cab80d1e25c76ebf2fad0a5bf2ac4086
|
data/Dockerfile
CHANGED
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -27,7 +27,10 @@ task :deploy do
|
|
27
27
|
-e AWS_ACCESS_KEY_ID="#{ENV['AWS_ACCESS_KEY_ID']}" \
|
28
28
|
-e AWS_SECRET_ACCESS_KEY="#{ENV['AWS_SECRET_ACCESS_KEY']}" \
|
29
29
|
-e SLEEP_TIME="#{ENV['SLEEP_TIME']}" \
|
30
|
+
-e LOGDNA_INGESTION_KEY="#{ENV['LOGDNA_INGESTION_KEY']}" \
|
30
31
|
renderedtext/mtr-monitor
|
32
|
+
|
33
|
+
docker ps | grep mtr-monitor
|
31
34
|
ENDSSH`
|
32
35
|
|
33
36
|
puts output
|
data/lib/mtr_monitor/version.rb
CHANGED
data/lib/mtr_monitor.rb
CHANGED
@@ -66,8 +66,18 @@ module MtrMonitor
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def emit_provider_to_logdna
|
69
|
-
|
70
|
-
|
69
|
+
telia if File.read(@log_path).include?("telia.net")
|
70
|
+
gtt if File.read(@log_path).include?("gtt.net")
|
71
|
+
end
|
72
|
+
|
73
|
+
def telia
|
74
|
+
@logdna.log("Network provider: Telia")
|
75
|
+
@logger.info("Network provider: Telia -- Emitted to LogDNA")
|
76
|
+
end
|
77
|
+
|
78
|
+
def gtt
|
79
|
+
@logdna.log("Network provider: GTT")
|
80
|
+
@logger.info("Network provider: GTT -- Emitted to LogDNA")
|
71
81
|
end
|
72
82
|
|
73
83
|
def generate_local_report
|