mtr_monitor 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +35 -0
- data/README.md +17 -1
- data/exe/mtr_report +22 -0
- data/lib/mtr_monitor/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da110fa521f48a26244e927226377ee5694e0682
|
4
|
+
data.tar.gz: 53a4f624724aee1c393966e4ee5da27f5f4e2deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bb114fdcf143e637c1467b68fa70adc2be00cbba64f1018647dd627971b0e678a2fe032af0fe3316bb44e691514d97a966a53c338e7a5ef68244e6f7b0152c9
|
7
|
+
data.tar.gz: 6658288209c3fd5d73c9cc11d2d2a3af46cde4ce3681f40dad523720c7fa30ce039d720b7fa1bce712a6e61840ba4d8ccc7415118a0484f07f10bc68f7c32dc7
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mtr_monitor (0.3.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.2.5)
|
10
|
+
rake (10.3.2)
|
11
|
+
rspec (3.4.0)
|
12
|
+
rspec-core (~> 3.4.0)
|
13
|
+
rspec-expectations (~> 3.4.0)
|
14
|
+
rspec-mocks (~> 3.4.0)
|
15
|
+
rspec-core (3.4.4)
|
16
|
+
rspec-support (~> 3.4.0)
|
17
|
+
rspec-expectations (3.4.0)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.4.0)
|
20
|
+
rspec-mocks (3.4.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.4.0)
|
23
|
+
rspec-support (3.4.1)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
bundler (~> 1.16)
|
30
|
+
mtr_monitor!
|
31
|
+
rake (~> 10.0)
|
32
|
+
rspec (~> 3.0)
|
33
|
+
|
34
|
+
BUNDLED WITH
|
35
|
+
1.16.0
|
data/README.md
CHANGED
@@ -11,7 +11,23 @@ Add this line to your application's Gemfile:
|
|
11
11
|
gem 'mtr_monitor'
|
12
12
|
```
|
13
13
|
|
14
|
-
|
14
|
+
Or install it on your system:
|
15
|
+
|
16
|
+
``` bash
|
17
|
+
gem install mtr_monitor
|
18
|
+
```
|
19
|
+
|
20
|
+
## Generate an MTR report from the CLI
|
21
|
+
|
22
|
+
``` bash
|
23
|
+
export S3_BUCKET=<>
|
24
|
+
export AWS_ACCESS_KEY_ID=<>
|
25
|
+
export AWS_SECRET_ACCESS_KEY=<>
|
26
|
+
|
27
|
+
mtr_report "google" "google.com"
|
28
|
+
```
|
29
|
+
|
30
|
+
## Generate an MTR report from Ruby
|
15
31
|
|
16
32
|
``` ruby
|
17
33
|
name = "google"
|
data/exe/mtr_report
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "mtr_monitor"
|
4
|
+
|
5
|
+
name = ARGV[0]
|
6
|
+
domain = ARGC[1]
|
7
|
+
|
8
|
+
s3_bucket = ENV["S3_BUCKET"]
|
9
|
+
aws_access_key_id = ENV["AWS_ACCESS_KEY_ID"]
|
10
|
+
aws_secret_access_key = ENV["AWS_SECRET_ACCESS_KEY"]
|
11
|
+
|
12
|
+
report = MtrMonitor::Report.new(name,
|
13
|
+
domain,
|
14
|
+
s3_bucket,
|
15
|
+
aws_access_key_id,
|
16
|
+
aws_secret_access_key)
|
17
|
+
|
18
|
+
puts "Generating report"
|
19
|
+
report.generate
|
20
|
+
|
21
|
+
puts "Submiting metrics"
|
22
|
+
report.submit_metrics
|
data/lib/mtr_monitor/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RenderedText DevOps Team
|
@@ -55,7 +55,8 @@ dependencies:
|
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- devops@renderedtext.com
|
58
|
-
executables:
|
58
|
+
executables:
|
59
|
+
- mtr_report
|
59
60
|
extensions: []
|
60
61
|
extra_rdoc_files: []
|
61
62
|
files:
|
@@ -63,11 +64,13 @@ files:
|
|
63
64
|
- ".rspec"
|
64
65
|
- CODE_OF_CONDUCT.md
|
65
66
|
- Gemfile
|
67
|
+
- Gemfile.lock
|
66
68
|
- LICENSE.txt
|
67
69
|
- README.md
|
68
70
|
- Rakefile
|
69
71
|
- bin/console
|
70
72
|
- bin/setup
|
73
|
+
- exe/mtr_report
|
71
74
|
- lib/mtr_monitor.rb
|
72
75
|
- lib/mtr_monitor/version.rb
|
73
76
|
- mtr_monitor.gemspec
|