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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a5b73e216e4f4642e16dc0b769917d06066b64d
4
- data.tar.gz: 98e96a4cadc9e78772508f523bd697a743f39adb
3
+ metadata.gz: fb307030a2d9ee5bdcd196ef001bd576bab4b698
4
+ data.tar.gz: 71c1cb484b24c573a1552a615a62fe55ad84ea15
5
5
  SHA512:
6
- metadata.gz: 0e559a6faf9421c5b179475f3624bc18bbd9fab54035ff29dbd8b773085e5334ba1bf3126eab0c0cb0562b78f30eb5ce3233c5d68892a83c8ea6bbcc74532680
7
- data.tar.gz: 525113b7d28fae27e0036f7d68ca13c6cabd702c0232453c8362ed5ea25d8d099797e866c55da05015d7dc109fd99f1949acfed4d6550bf542b315f29d317b35
6
+ metadata.gz: e22a86b7de6544366c657522d5d086044deb044b6a7c3de8478f8cfc7c553ea29fb96444b1af9e209e130c6dd620aae6606f49df447ecd355e2f142315abad51
7
+ data.tar.gz: 893e500030cfead414d0d3d4ddf4e7d520245343e392f5f4b80363b5e993a24f7305eb66f5ec9073119bc91134a97a65cab80d1e25c76ebf2fad0a5bf2ac4086
data/Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
- FROM ubuntu:14.04
1
+ FROM ruby:2.3
2
2
 
3
- RUN apt-get update && apt-get install -y curl mtr ruby python-pip dnsutils
3
+ RUN apt-get update && apt-get install -y curl mtr python-pip python-dev dnsutils
4
4
 
5
5
  RUN pip install awscli
6
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mtr_monitor (0.17.0)
4
+ mtr_monitor (0.17.1)
5
5
  logdna
6
6
  rt-watchman (~> 0.10.0)
7
7
 
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
@@ -1,3 +1,3 @@
1
1
  module MtrMonitor
2
- VERSION = "0.17.0"
2
+ VERSION = "0.17.1"
3
3
  end
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
- @logdna.log("Network provider: Telia") if File.read(@log_path).include?("telia.net")
70
- @logdna.log("Network provider: GTT") if File.read(@log_path).include?("gtt.net")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtr_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RenderedText DevOps Team