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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e63e584615aed1277ffa8ee1217164c55712252e0e89efe6f6a4344aa34afa71
4
- data.tar.gz: 575723958151ac961ae4ce8a7494c69ea304599150c58434720fcce769a39020
3
+ metadata.gz: 0c47ae645d06e16ec42e6b9f91f110827d2a927ece32500dbc8d60743b651d82
4
+ data.tar.gz: 92eec80faacefeacea7bc41c18f47fa82134a55080c271cc8f600aca5469ffaa
5
5
  SHA512:
6
- metadata.gz: f76cc5ebf49a79d656313d1c360ae52eebeba0e38d94b06621b357310548189308b51d462f17daa8e5af51e224d05e6f346002237819c1c92ae84a1b857dcb3b
7
- data.tar.gz: e25bfdeac65df107dab55993e6dbf245477badf06794bedc3a1cf89f893e1da4f514a695429b54a6f84000514e5bfd61d977d02615daaf924194b9c549752274
6
+ metadata.gz: 6cd1ec7236c438c41c548ad0532bdf65aec6448505b97d9e37e704c3ee9261508fa62058a7c24d233e40a85c3945b9111bc82e4f8a58566b2e4387f38111e79b
7
+ data.tar.gz: 70c4b4f0f031e8f1eddc66dfbdb2e9a7a659e0af8ef2f0e660fa5067c5577039120aa1020e7a583b2f5131088e4f95a38fc1d66b05040850b325967ac52f6334
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-kafka-status (0.2.0)
4
+ fluent-plugin-kafka-status (0.2.1)
5
5
  fluentd (>= 0.14.10, < 2)
6
6
  ruby-kafka (>= 1.3.0, < 2)
7
7
 
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'fluent-plugin-kafka-status'
8
- spec.version = '0.2.0'
8
+ spec.version = '0.2.1'
9
9
  spec.authors = ['Thomas Tych']
10
10
  spec.email = ['thomas.tych@gmail.com']
11
11
 
@@ -116,14 +116,14 @@ module Fluent
116
116
  # tags_topic: <topic>
117
117
  ### metric 3 - replica_count
118
118
  # family: topic
119
- # name: replica_count
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' => 'replica_count',
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.0
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 00:00:00.000000000 Z
11
+ date: 2024-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump