deimos-ruby 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/deimos/metrics/minimal_datadog.rb +10 -3
- data/lib/deimos/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7ec18be1aed0e2395e995393c04f73c0c1ab834dfa18a7271b90f78c88fef6d
|
|
4
|
+
data.tar.gz: db4d45a76648653602dcd87473a74a395f11bc7dff705633d20100d2fed43963
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9dce72af9ac2a74a538882f758601a6dcf8fb7cc66c378a1ced94987a39e823fef6844462d76f1e6e8727e95cc62cb7652abe71ff0688c7ed94916c6c934ed4
|
|
7
|
+
data.tar.gz: a9019a470ce4c475a0824be987dfcdc72359da6678842443eda7d960653e843cedec796b838bdbf5da8552b0da19b4a8ae95493f753101b4497107e3a3929e5a
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## UNRELEASED
|
|
9
9
|
|
|
10
|
+
# 2.3.3 - 2026-02-21
|
|
11
|
+
|
|
12
|
+
- Fix/feature: Send `consumer.lags` and `consumer.lags_delta` metrics via MinimalDatadogListener.
|
|
13
|
+
|
|
10
14
|
# 2.3.2 - 2026-02-20
|
|
11
15
|
|
|
12
16
|
- Feature: Add overridable process_message? for batch consumption.
|
|
@@ -6,8 +6,12 @@ require 'deimos/metrics/minimal_datadog_listener'
|
|
|
6
6
|
|
|
7
7
|
module Deimos
|
|
8
8
|
module Metrics
|
|
9
|
-
# A Metrics wrapper class for Datadog, with only minimal metrics being sent. This will
|
|
10
|
-
# send
|
|
9
|
+
# A Metrics wrapper class for Datadog, with only minimal metrics being sent. This will only
|
|
10
|
+
# send the following rdkafka metrics:
|
|
11
|
+
# * consumer.lags
|
|
12
|
+
# * consumer.lags_delta
|
|
13
|
+
#
|
|
14
|
+
# and only the following other metrics:
|
|
11
15
|
# * consumer_group
|
|
12
16
|
# * error_occurred
|
|
13
17
|
# * consumer.messages
|
|
@@ -28,7 +32,10 @@ module Deimos
|
|
|
28
32
|
if config[:karafka_distribution_mode]
|
|
29
33
|
karafka_config.distribution_mode = config[:karafka_distribution_mode]
|
|
30
34
|
end
|
|
31
|
-
karafka_config.rd_kafka_metrics = [
|
|
35
|
+
karafka_config.rd_kafka_metrics = [
|
|
36
|
+
RdKafkaMetric.new(:gauge, :topics, 'consumer.lags', 'consumer_lag_stored'),
|
|
37
|
+
RdKafkaMetric.new(:gauge, :topics, 'consumer.lags_delta', 'consumer_lag_stored_d')
|
|
38
|
+
]
|
|
32
39
|
end
|
|
33
40
|
Karafka.monitor.subscribe(karafka_listener)
|
|
34
41
|
end
|
data/lib/deimos/version.rb
CHANGED