README.md in http_health_check-0.3.1 vs README.md in http_health_check-0.4.0
- old
+ new
@@ -9,11 +9,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'http_health_check', '~> 0.3.1'
+gem 'http_health_check', '~> 0.4.0'
```
And then execute:
$ bundle install
@@ -66,11 +66,11 @@
HttpHealthCheck.run_server_async(
port: 5555,
rack_app: HttpHealthCheck::RackApp.configure do |c|
c.probe '/readiness/karafka', HttpHealthCheck::Probes::RubyKafka.new(
- consumer_groups: KarafkaApp.consumer_groups.map(&:id),
+ consumer_groups: HttpHealthCheck::Utils::Karafka.consumer_groups(KarafkaApp),
# default heartbeat interval is 3 seconds, but we want to give it
# an ability to skip a few before failing the probe
heartbeat_interval_sec: 10,
# includes a list of topics and partitions into response for every consumer thread. false by default
verbose: false
@@ -94,10 +94,10 @@
# ...
end
end
end
-KarafkaApp.consumer_groups.map(&:id)
+HttpHealthCheck::Utils::Karafka.consumer_groups(KarafkaApp)
# => ['foo', 'foo']
```
ruby-kafka probe will count heartbeats from multiple threads.