mtr_monitor 1.1.0 → 1.1.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: b51473f33cd5da42ade150a1ea3ba04222c88a14
4
- data.tar.gz: 17f7d4ca9a0b2f36efac83283f045697e2c21cb8
3
+ metadata.gz: 5a4fd671c8f9be329d14b7b59c8283b44b41e346
4
+ data.tar.gz: a7cdb73a15824dadd6cc0040a6ba531a561c6a04
5
5
  SHA512:
6
- metadata.gz: 8aec9b3fb211aaa0026767efa6cc83f5a170d444eb14a7355740301af7cb0cc670da99327aa802dcb65689f9d6fabca85186560a8cee076400b14609f0970b0d
7
- data.tar.gz: 11d49f05aafb190b81c5c2e8532ccc9982c8a7c922186d8978b0bc13e851276302bcca5cb3fc01688db1da484c2ac56465709df5924cc6788b89b48d44dc450c
6
+ metadata.gz: 39d925d0e9410f38712bbb15f534305ebd60f59a70d41b3e3e16eebbea9f0c94291cf1c8037c7f136c550297f4ccc3354548e451a3a56b2c04e19a12f764d42a
7
+ data.tar.gz: 180afeb487e2af4e4249abdc3254b28dda988362306d411556e9d855b1dd01d1e5f7c911bc55675bde955661584da8594cc911ec030a62312703597e1301f375
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mtr_monitor (1.1.0)
4
+ mtr_monitor (1.1.1)
5
5
  logdna
6
6
  rt-watchman (~> 0.10.0)
7
7
 
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ task :deploy do
11
11
 
12
12
  File.open(".env", "w") do |f|
13
13
  f.write("LOGDNA_INGESTION_KEY=#{ENV.fetch("LOGDNA_INGESTION_KEY")}\n")
14
- f.write("MTR_TARGETS=#{ENV.fetch("MTR_TARGET_DOMAIN")}\n")
14
+ f.write("MTR_TARGETS=#{ENV.fetch("MTR_TARGETS")}\n")
15
15
  f.write("WATCHMAN_HOST=#{ENV.fetch("WATCHMAN_HOST")}\n")
16
16
  f.write("SLEEP_TIME=#{ENV.fetch("SLEEP_TIME")}\n")
17
17
  f.write("AWS_SECRET_ACCESS_KEY=#{ENV.fetch("AWS_SECRET_ACCESS_KEY")}\n")
data/docker-compose.yml CHANGED
@@ -8,7 +8,7 @@ services:
8
8
  - /var/log/mtr:/var/log/mtr
9
9
  environment:
10
10
  - LOGDNA_INGESTION_KEY
11
- - MTR_TARGET_DOMAIN
11
+ - MTR_TARGETS
12
12
  - WATCHMAN_HOST
13
13
  - SLEEP_TIME
14
14
  - AWS_SECRET_ACCESS_KEY
data/exe/mtr_report CHANGED
@@ -21,27 +21,23 @@ dig_ip_address = ENV.fetch("DIG_IP_ADDRESS").downcase == "yes" ? true : f
21
21
  logdna_ingestion_key = ENV.fetch("LOGDNA_INGESTION_KEY")
22
22
  logger = Logger.new(STDOUT)
23
23
 
24
- def generate_report(mtr_target)
25
- options = {
26
- :name => name,
27
- :mtr_target => mtr_target,
28
- :s3_bucket => s3_bucket,
29
- :mtr_options => mtr_options,
30
- :aws_access_key_id => aws_access_key_id,
31
- :aws_secret_access_key => aws_secret_access_key,
32
- :dig_ip_address => dig_ip_address,
33
- :logdna_ingestion_key => logdna_ingestion_key,
34
- :logger => logger
35
- }
36
-
37
- MtrMonitor::Report.new(options).generate
38
- end
39
-
40
24
  loop do
41
25
  mtr_targets.split(",").each do |mtr_target|
42
26
  logger.info "Generating report for #{mtr_target}"
43
27
 
44
- generate_report(mtr_target)
28
+ options = {
29
+ :name => name,
30
+ :mtr_target => mtr_target,
31
+ :s3_bucket => s3_bucket,
32
+ :mtr_options => mtr_options,
33
+ :aws_access_key_id => aws_access_key_id,
34
+ :aws_secret_access_key => aws_secret_access_key,
35
+ :dig_ip_address => dig_ip_address,
36
+ :logdna_ingestion_key => logdna_ingestion_key,
37
+ :logger => logger
38
+ }
39
+
40
+ MtrMonitor::Report.new(options).generate
45
41
  end
46
42
 
47
43
  logger.info "Running Cleaner"
@@ -1,3 +1,3 @@
1
1
  module MtrMonitor
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RenderedText DevOps Team