mtr_monitor 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +47 -5
- data/lib/mtr_monitor.rb +2 -1
- 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: 747f1b3e515f1cfa0fe1a872a8b5078c11c3d625
|
4
|
+
data.tar.gz: 405a074875ea2635ce3496e10fe7769ccb2bf3b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 384338753adc39791c06f67d6ef6ba403e2c17a08a35ad90cb05d3196c1643058dc841eea113b7d5c6781792605a1ea1e2b1e5d2b7b4a22987f38be7cb02f0ad
|
7
|
+
data.tar.gz: dab41ed813f7ebec31de3b11fe39d1f7fd3aa5f15446cb8b8a2caa3adebb120f7de4488d599f67f571508cc77d547094d669b28a6dd764b4c0b272b64caef8b3
|
data/Gemfile.lock
CHANGED
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
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
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}/#{
|
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
|
data/lib/mtr_monitor/version.rb
CHANGED