mtr_monitor 0.17.2 → 0.17.3

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: 6be33185373ab79b6d011cec548f116de082abad
4
- data.tar.gz: 93c52fe0da0cc6a194af1ba1843cc16b7f905071
3
+ metadata.gz: 903bef5344c8ba17827a31a97072111ce13f4de0
4
+ data.tar.gz: 96458939ffeee18f72e125bcb8003b8bd1740bd8
5
5
  SHA512:
6
- metadata.gz: 7ac5062855e550a4a151ab961c3b2e4f39540ffc2420409987586728f662ee86370bc5363d5834cbc5769e5445d7285835dc4c8128d0e0469db863d322164733
7
- data.tar.gz: 2b380ed039b1bd59a9b1252a2feec5f3d6fb46c33eb8f7a6249eb3e4f018ba5f7210f07e0e041463608dda3899a4b2e370ee3cb82a377d036ebea9729ed21d35
6
+ metadata.gz: ba7a8a3be71be5d6908995e7a96d3d9982015be3e48d83cf1fca377a538d213f0fff21066b0446ff19eeeaf391229ad6188bd0b5f2a58ca719bafba7567d6900
7
+ data.tar.gz: 39cdb25e0b2eb7e1ec04362f7217e83080b0a95c88093ca47ee8688d9a712ff598d54f49beb83fcd9807f63e116358af32ee77327d78e0398e19a2b528f632ff
data/Dockerfile CHANGED
@@ -1,6 +1,12 @@
1
1
  FROM ruby:2.3
2
2
 
3
- RUN apt-get update && apt-get install -y curl mtr python-pip python-dev dnsutils
3
+ RUN apt-get update && apt-get install -y \
4
+ sudo \
5
+ curl \
6
+ mtr \
7
+ python-pip \
8
+ python-dev \
9
+ dnsutils
4
10
 
5
11
  RUN pip install awscli
6
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mtr_monitor (0.17.2)
4
+ mtr_monitor (0.17.3)
5
5
  logdna
6
6
  rt-watchman (~> 0.10.0)
7
7
 
data/README.md CHANGED
@@ -235,3 +235,10 @@ SERVER=1.2.3.4 bundle exec rake deploy
235
235
  Each deployed MTR monitor needs to has its own panel on grafana [Platform - Network](https://semaphore.grafana.net/dashboard/db/platform-network?orgId=1) dashboard.
236
236
 
237
237
  Make sure to setup BuildServers alert.
238
+
239
+ ### MTR incident tracing
240
+
241
+ When you have `mtr_monitor gem` installed.
242
+ To easily get MTR logs when incident happens, just run `mtr-incident-trace`.
243
+ To successfully use this feature you will need `aws cli` installed and aws credentials setup.
244
+ This will fetch the latest enteries from `hetzner-continuous-mtr` bucket.
data/Rakefile CHANGED
@@ -13,6 +13,7 @@ task :deploy do
13
13
  `ssh -o StrictHostKeychecking=no ubuntu@#{server} <<'ENDSSH'
14
14
  docker stop mtr-monitor || true
15
15
  docker rm mtr-monitor || true
16
+ docker system prune --force
16
17
  docker pull renderedtext/mtr-monitor
17
18
  docker run -d \
18
19
  --name mtr-monitor \
@@ -1,3 +1,3 @@
1
1
  module MtrMonitor
2
- VERSION = "0.17.2"
2
+ VERSION = "0.17.3"
3
3
  end
data/lib/mtr_monitor.rb CHANGED
@@ -101,7 +101,7 @@ module MtrMonitor
101
101
  run %Q(sudo sh -c 'echo "Source IP: #{@host_ip_address}" >> #{@log_path}')
102
102
  run %Q(sudo sh -c 'echo "Target IP: #{destination}" >> #{@log_path}')
103
103
  run %Q(sudo sh -c 'echo "---------------------------------------" >> #{@log_path}')
104
- run %Q(sudo sh -c 'mtr --report #{@mtr_options} #{destination} >> #{@log_path}')
104
+ run %Q(sudo sh -c 'mtr --report --report-wide #{@mtr_options} #{destination} >> #{@log_path}')
105
105
  end
106
106
 
107
107
  def upload_to_s3
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.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - RenderedText DevOps Team