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 +4 -4
- data/Gemfile.lock +1 -1
- data/Rakefile +1 -1
- data/docker-compose.yml +1 -1
- data/exe/mtr_report +13 -17
- 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: 5a4fd671c8f9be329d14b7b59c8283b44b41e346
|
4
|
+
data.tar.gz: a7cdb73a15824dadd6cc0040a6ba531a561c6a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d925d0e9410f38712bbb15f534305ebd60f59a70d41b3e3e16eebbea9f0c94291cf1c8037c7f136c550297f4ccc3354548e451a3a56b2c04e19a12f764d42a
|
7
|
+
data.tar.gz: 180afeb487e2af4e4249abdc3254b28dda988362306d411556e9d855b1dd01d1e5f7c911bc55675bde955661584da8594cc911ec030a62312703597e1301f375
|
data/Gemfile.lock
CHANGED
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("
|
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
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
|
-
|
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"
|
data/lib/mtr_monitor/version.rb
CHANGED