health-monitor-rails 8.7.0 → 8.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -4
- data/lib/health_monitor/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77979ed6f9ee4056c83680337b6d712f5c0047c8f38d1f74fc399e81da32afd7
|
4
|
+
data.tar.gz: c6a19697a6f9351cdb1172044b3f5409325f94bc80548a94e4caa7b3bd3832e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 878ed037409dbd197461a388688f31316ee428fed057467195677bef8e69ecaa0e6ed3b3e7bdf3c805e185eb61148e5aad6af52072525d224bf055774a87ab51
|
7
|
+
data.tar.gz: 941f6ea6c5cd1efe8e095d3e459873366293a3167227d0684a49341997a69e08743850b92e39b1dc0e847e1e042e7e1002d6acac2b4639990899a588c7b6cd1c
|
data/README.md
CHANGED
@@ -227,13 +227,24 @@ end
|
|
227
227
|
# Redis
|
228
228
|
HealthMonitor.configure do |config|
|
229
229
|
config.redis.configure do |redis_config|
|
230
|
-
redis_config.connection = Redis.current #
|
231
|
-
redis_config.url = 'redis://user:pass@example.redis.com:90210/' # or URL
|
230
|
+
redis_config.connection = Redis.current # Use your custom redis connection
|
232
231
|
redis_config.max_used_memory = 200 # Megabytes
|
233
232
|
end
|
234
233
|
end
|
235
234
|
```
|
236
235
|
|
236
|
+
Additionally, you can configure an explicit URL:
|
237
|
+
|
238
|
+
```ruby
|
239
|
+
# Redis
|
240
|
+
HealthMonitor.configure do |config|
|
241
|
+
config.redis.configure do |redis_config|
|
242
|
+
redis_config.url = 'redis://user:pass@example.redis.com:90210/'
|
243
|
+
redis_config.max_used_memory = 200
|
244
|
+
end
|
245
|
+
end
|
246
|
+
```
|
247
|
+
|
237
248
|
The currently supported settings are:
|
238
249
|
|
239
250
|
#### Sidekiq
|
@@ -243,9 +254,11 @@ The currently supported settings are:
|
|
243
254
|
|
244
255
|
#### Redis
|
245
256
|
|
246
|
-
* `url`: the URL used to connect to your Redis instance
|
257
|
+
* `url`: the URL used to connect to your Redis instance. Note, that this is an optional configuration and will use the default connection if not specified. You can also use `url` to explicitly configure authentication (e.g., `'redis://user:pass@example.redis.com:90210/'`).
|
247
258
|
* `connection`: Use custom Redis connection (e.g., `Redis.current`).
|
248
|
-
* `max_used_memory`: Set maximum expected memory usage of Redis in megabytes. Prevent memory leaks and keys
|
259
|
+
* `max_used_memory`: Set maximum expected memory usage of Redis in megabytes. Prevent memory leaks and keys over storing.
|
260
|
+
|
261
|
+
Please note that `url` or `connection` can't be used at the same time.
|
249
262
|
|
250
263
|
#### Delayed Job
|
251
264
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: health-monitor-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonid Beder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -292,8 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
- !ruby/object:Gem::Version
|
293
293
|
version: '0'
|
294
294
|
requirements: []
|
295
|
-
|
296
|
-
rubygems_version: 2.7.8
|
295
|
+
rubygems_version: 3.0.3
|
297
296
|
signing_key:
|
298
297
|
specification_version: 4
|
299
298
|
summary: Health monitoring Rails plug-in, which checks various services (db, cache,
|