fluent-plugin-kafka-status 0.2.0 → 0.2.1
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/Gemfile.lock +1 -1
- data/fluent-plugin-kafka-status.gemspec +1 -1
- data/lib/fluent/plugin/in_kafka_status.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c47ae645d06e16ec42e6b9f91f110827d2a927ece32500dbc8d60743b651d82
|
|
4
|
+
data.tar.gz: 92eec80faacefeacea7bc41c18f47fa82134a55080c271cc8f600aca5469ffaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cd1ec7236c438c41c548ad0532bdf65aec6448505b97d9e37e704c3ee9261508fa62058a7c24d233e40a85c3945b9111bc82e4f8a58566b2e4387f38111e79b
|
|
7
|
+
data.tar.gz: 70c4b4f0f031e8f1eddc66dfbdb2e9a7a659e0af8ef2f0e660fa5067c5577039120aa1020e7a583b2f5131088e4f95a38fc1d66b05040850b325967ac52f6334
|
data/Gemfile.lock
CHANGED
|
@@ -116,14 +116,14 @@ module Fluent
|
|
|
116
116
|
# tags_topic: <topic>
|
|
117
117
|
### metric 3 - replica_count
|
|
118
118
|
# family: topic
|
|
119
|
-
# name:
|
|
119
|
+
# name: configured_replica_count
|
|
120
120
|
# value: count
|
|
121
121
|
# tags_topic: <topic>
|
|
122
122
|
def events_for_topics
|
|
123
123
|
kafka do |kafka|
|
|
124
124
|
events = []
|
|
125
|
-
timestamp = Time.now.utc.send("to_#{timestamp_format}")
|
|
126
125
|
kafka.topics.each do |topic|
|
|
126
|
+
timestamp = Time.now.utc.send("to_#{timestamp_format}")
|
|
127
127
|
events
|
|
128
128
|
.append({ 'timestamp' => timestamp,
|
|
129
129
|
'metric_family' => 'topic',
|
|
@@ -137,7 +137,7 @@ module Fluent
|
|
|
137
137
|
"#{event_prefix}topic" => topic })
|
|
138
138
|
.append({ 'timestamp' => timestamp,
|
|
139
139
|
'metric_family' => 'topic',
|
|
140
|
-
'metric_name' => '
|
|
140
|
+
'metric_name' => 'configured_replica_count',
|
|
141
141
|
'metric_value' => kafka.replica_count_for(topic),
|
|
142
142
|
"#{event_prefix}topic" => topic })
|
|
143
143
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-kafka-status
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas Tych
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bump
|