reevoo_app_monitor 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/lib/reevoo_app_monitor.rb +1 -0
- data/lib/reevoo_app_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: 39eb9336c26842deea6f7ac2d4cc99b6fb0603e3
|
4
|
+
data.tar.gz: 0963403bb8e0f372c9066581b7258d4fe1777908
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ce7491b291b101b7660459744290b40ca70893d1d9b59f873c13944f661b8a11e7454461210e11ccc3d92d5ac504c4481ba309c2525e087028a5ea2f80f276
|
7
|
+
data.tar.gz: 491b231c766f14909f9d18b623903408de09bd7947164f7ee6dd0c97efc2998bc959999ac4e345eefe8c7d43123b7091b9ac438eb8a9b669bd2b8f248bb9de3f
|
data/README.md
CHANGED
@@ -24,12 +24,16 @@ module TestApp
|
|
24
24
|
def self.app_monitor
|
25
25
|
@app_monitor ||= ReevooAppMonitor.new(
|
26
26
|
app_name: "foo_app",
|
27
|
-
root_dir: Rack::Directory.new("").root
|
27
|
+
root_dir: Rack::Directory.new("").root,
|
28
28
|
device: STDOUT,
|
29
29
|
raven_conf: {
|
30
|
-
dsn: "https://
|
30
|
+
dsn: "https://your_get_setnry_key@app.getsentry.com/application_id"
|
31
|
+
},
|
32
|
+
statsd_conf: {
|
33
|
+
host: ENV.fetch('STATSD_HOST'),
|
34
|
+
port: ENV.fetch('STATSD_PORT'),
|
31
35
|
}
|
32
|
-
)
|
36
|
+
)
|
33
37
|
end
|
34
38
|
|
35
39
|
def self.logger
|
@@ -37,7 +41,7 @@ module TestApp
|
|
37
41
|
end
|
38
42
|
|
39
43
|
def self.stats
|
40
|
-
production? ? app_monitor.stats :
|
44
|
+
production? ? app_monitor.stats : app_monitor.nil_service
|
41
45
|
end
|
42
46
|
end
|
43
47
|
```
|
@@ -51,7 +55,7 @@ ReevooAppMonitor.new(
|
|
51
55
|
device: STDOUT, # default is file log in log/logstasher.log
|
52
56
|
integrations: [:logstasher, :statsd, :raven], # you can turn off individual integrations
|
53
57
|
raven_conf: {
|
54
|
-
dsn: "https://
|
58
|
+
dsn: "https://your_get_setnry_key@app.getsentry.com/application_id"
|
55
59
|
},
|
56
60
|
statsd_conf: { # in most cases you should be fine with default localhost:8125
|
57
61
|
host: "my-host",
|
data/lib/reevoo_app_monitor.rb
CHANGED