mtr_monitor 0.18.1 → 0.18.2

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: 3eccdd2750d4334dbdd12d051e0e1718dca4016b
4
- data.tar.gz: dd6acb887fb366360cdfe7378ba6bd8e5565cb31
3
+ metadata.gz: 747f1b3e515f1cfa0fe1a872a8b5078c11c3d625
4
+ data.tar.gz: 405a074875ea2635ce3496e10fe7769ccb2bf3b4
5
5
  SHA512:
6
- metadata.gz: 6d4d5512267be0d75e2f66062c52c7671c0cc7177fa07c0df459491a788907c06ac5ab277a9f87e3427365486c6811fb168e31576919517b4357de4edc5d74cb
7
- data.tar.gz: 1a559ee88a360f2e753e6dd517fd1291ab5a5aa59f0c4d1be60ae9b4506351acbc4b50b3211499517b0b5552dd88134d523b59962c8a0f970f27f43a159d5db7
6
+ metadata.gz: 384338753adc39791c06f67d6ef6ba403e2c17a08a35ad90cb05d3196c1643058dc841eea113b7d5c6781792605a1ea1e2b1e5d2b7b4a22987f38be7cb02f0ad
7
+ data.tar.gz: dab41ed813f7ebec31de3b11fe39d1f7fd3aa5f15446cb8b8a2caa3adebb120f7de4488d599f67f571508cc77d547094d669b28a6dd764b4c0b272b64caef8b3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mtr_monitor (0.18.1)
4
+ mtr_monitor (0.18.2)
5
5
  logdna
6
6
  rt-watchman (~> 0.10.0)
7
7
 
data/README.md CHANGED
@@ -42,7 +42,7 @@ The US based MTR monitors have the following DNS addresses:
42
42
  - `mtr-monitor.us-west-1.semaphoreci.com`
43
43
  - `mtr-monitor.us-west-2.semaphoreci.com`
44
44
 
45
- To SSH into the, run `ssh ubuntu@<address>`
45
+ To SSH into the server, run `ssh ubuntu@<address>`
46
46
 
47
47
  ## Location of the generated MTR reports
48
48
 
@@ -238,7 +238,49 @@ Make sure to setup BuildServers alert.
238
238
 
239
239
  ### MTR incident tracing
240
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.
241
+ To trace the incident when it occurs, the `mtr_monitor` contains the executable which
242
+ comes out of the box with the gem.
243
+
244
+ 1. Make sure you have `mtr_monitor` gem installed:
245
+ ```
246
+ gem install mtr_monitor
247
+ ```
248
+
249
+ and `~/.aws/credentials` set up.
250
+
251
+ 2. Run executable:
252
+ ```
253
+ `mtr-incident-trace`
254
+ ```
255
+
256
+ The executable will collect latest MTR logs from S3 bucket and create the report
257
+ with the following format:
258
+
259
+ ```
260
+ 1. AWS us-east
261
+ 1.1 US => DE
262
+ --links
263
+
264
+ 1.2 DE => US
265
+ --links
266
+
267
+ 2. AWS us-west
268
+ 2.1 US => DE
269
+ --links
270
+
271
+ 2.2 DE => US
272
+ --links
273
+ -
274
+
275
+ 3. GitHub (San Francisco)
276
+ 3.1 US => DE (Only GitHub can provide this)
277
+
278
+ 3.2 DE => US
279
+ --links
280
+ ```
281
+
282
+ ### Tier 1 provider info
283
+
284
+ The information of the network provider on which we are running on is
285
+ continuously emitted to
286
+ [LogDNA](https://app.logdna.com/5691b7bf97/logs/dashboard).
data/lib/mtr_monitor.rb CHANGED
@@ -42,6 +42,7 @@ module MtrMonitor
42
42
  @hostname = `hostname`.strip
43
43
  @dig_ip_address = dig_ip_address
44
44
  @logger = logger || Logger.new(STDOUT)
45
+ @created_at = Time.now.utc
45
46
  @logdna = Logdna::Ruby.new(logdna_ingestion_key,
46
47
  :ip => @host_ip_address,
47
48
  :app => "MTR monitor",
@@ -65,7 +66,7 @@ module MtrMonitor
65
66
  end
66
67
 
67
68
  def path
68
- "#{@name}/#{Time.now.strftime("%Y-%m-%d")}/#{@host_ip_address.gsub(".", "-")}/#{Time.now.utc.strftime("%H-%M")}.log"
69
+ "#{@name}/#{@created_at.strftime("%Y-%m-%d")}/#{@host_ip_address.gsub(".", "-")}/#{@created_at.strftime("%H-%M")}.log"
69
70
  end
70
71
 
71
72
  def generate
@@ -1,3 +1,3 @@
1
1
  module MtrMonitor
2
- VERSION = "0.18.1"
2
+ VERSION = "0.18.2"
3
3
  end
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.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - RenderedText DevOps Team