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 +4 -4
- data/Gemfile.lock +1 -1
- data/docker-compose.yml +17 -1
- data/lib/mtr_monitor/tier1_logger.rb +4 -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: e96e35f47e31191ea5fb9fe125c82fa484b6618b
|
4
|
+
data.tar.gz: 938e0a3f40d42abaf61cbeff9dd3eeb52040cce9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 796742167a3bef81612cf017eef5ae6b860a48e04ee7e50fd4cc00d73f4edf7bae633584e9925ae7f79b8aeb071a7656f3f2f687a8ca8311a56ed9b263d8f8b0
|
7
|
+
data.tar.gz: b04f041dbc628adb59eb71c6157b7f30bca3713aad48453bcf42a5933b6283fe3f049cfcf35b88a20e62ddc0fea5578bc79f725b027bca6642119351a33173cd
|
data/Gemfile.lock
CHANGED
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
|
|
data/lib/mtr_monitor/version.rb
CHANGED