mtr_monitor 1.4.0 → 1.4.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: 102a79b550de80dc926bc8b6b31da0819b9de0ae
4
- data.tar.gz: 914f873fb0b95d3304438d2261668a5818e3453d
3
+ metadata.gz: e96e35f47e31191ea5fb9fe125c82fa484b6618b
4
+ data.tar.gz: 938e0a3f40d42abaf61cbeff9dd3eeb52040cce9
5
5
  SHA512:
6
- metadata.gz: b4756d01e114839c3c5692e3a00975232d6bd957dadc9c3daea3e09d3518b1021166de4933adcdba77c4320798d27256bc091bbd1a0fbc36eb190116bd28ff06
7
- data.tar.gz: ce53b6446295565b49a3210419baa7975b1a680adcaaa41825ee91cdd2f2a6dd3a46d863ffc0b26d6aff5ddc666d687be878071d32b4b4b3ed1d56cce581683c
6
+ metadata.gz: 796742167a3bef81612cf017eef5ae6b860a48e04ee7e50fd4cc00d73f4edf7bae633584e9925ae7f79b8aeb071a7656f3f2f687a8ca8311a56ed9b263d8f8b0
7
+ data.tar.gz: b04f041dbc628adb59eb71c6157b7f30bca3713aad48453bcf42a5933b6283fe3f049cfcf35b88a20e62ddc0fea5578bc79f725b027bca6642119351a33173cd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mtr_monitor (1.4.0)
4
+ mtr_monitor (1.4.1)
5
5
  logdna
6
6
  rt-watchman (~> 0.10.0)
7
7
 
data/docker-compose.yml CHANGED
@@ -4,12 +4,15 @@ services:
4
4
  mtr-monitor:
5
5
  image: renderedtext/mtr-monitor:latest
6
6
  hostname: ${HOSTNAME}
7
+ links:
8
+ - statsd:statsd
7
9
  volumes:
8
10
  - /var/log/mtr:/var/log/mtr
9
11
  environment:
10
12
  - LOGDNA_INGESTION_KEY
11
13
  - MTR_TARGETS
12
- - WATCHMAN_HOST
14
+ - WATCHMAN_HOST=statsd
15
+ - WATCHMAN_PORT=8125
13
16
  - SLEEP_TIME
14
17
  - AWS_SECRET_ACCESS_KEY
15
18
  - AWS_ACCESS_KEY_ID
@@ -28,3 +31,16 @@ services:
28
31
  logging:
29
32
  options:
30
33
  max-size: 200m
34
+
35
+ statsd:
36
+ image: renderedtext/statsd:latest
37
+ ports:
38
+ - 8125:8125
39
+ environment:
40
+ - FLUSH_INTERVAL=60000
41
+ - GRAPHITE_HOST="short-living.metric-db.renderedtext.com"
42
+ - DUMP_MESSAGES="false"
43
+ logging:
44
+ options:
45
+ max-size: 50m
46
+
@@ -12,13 +12,16 @@ module MtrMonitor
12
12
  :level => "INFO"
13
13
  }
14
14
 
15
+ @route_name = @route_name
16
+ @s3_url = s3_url
17
+
15
18
  @mtr_log = File.read(local_log_path)
16
19
  @logdna = Logdna::Ruby.new(logdna_ingestion_key, config)
17
20
  @logger = logger
18
21
  end
19
22
 
20
23
  def submit
21
- @logdna.log("Route: #{route_name}, Tier1: #{tier1_provider}, s3: #{s3_url}")
24
+ @logdna.log("Route: #{@route_name}, Tier1: #{tier1_provider}, s3: #{@s3_url}")
22
25
  @logger.info("Network provider: #{tier1_provider} -- Emitted to LogDNA")
23
26
  end
24
27
 
@@ -1,3 +1,3 @@
1
1
  module MtrMonitor
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RenderedText DevOps Team