riemann-tools 1.11.0 → 1.12.0
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/.github/workflows/ci.yml +1 -0
- data/CHANGELOG.md +12 -0
- data/lib/riemann/tools/bench.rb +5 -5
- data/lib/riemann/tools/tls_check.rb +1 -1
- data/lib/riemann/tools/version.rb +1 -1
- data/riemann-tools.gemspec +4 -3
- metadata +17 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 074d3c18c2108c352d43fec2b29ccff5f717a2369ee5649a61b91f9eaded3eaf
|
|
4
|
+
data.tar.gz: bf6c07e31ce1723645429924e3ad9ae6a2500dd83495518038a40f33fab22fad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cedba2b8086abf960e954f26646049146cd3ba3fab037f612299a0754e6d60504dd9610f05b34a96c089a1f3312e93b936976143d50e500cf967ed0c4c48855
|
|
7
|
+
data.tar.gz: c177966cf0e558ff52569d44f08bf1bfe9c07975cf7b01a3ee13aed71e30742186855943647cc7c3c74e24a3d6953cf3652cbffd42caed9ab7485abeb85745e3
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v1.12.0](https://github.com/riemann/riemann-tools/tree/v1.12.0) (2025-01-15)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/riemann/riemann-tools/compare/v1.11.0...v1.12.0)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
|
|
9
|
+
- Allow passing options to `riemann-bench` [\#300](https://github.com/riemann/riemann-tools/pull/300) ([smortex](https://github.com/smortex))
|
|
10
|
+
|
|
11
|
+
**Fixed bugs:**
|
|
12
|
+
|
|
13
|
+
- Fix support of Ruby 3.4 [\#301](https://github.com/riemann/riemann-tools/pull/301) ([smortex](https://github.com/smortex))
|
|
14
|
+
|
|
3
15
|
## [v1.11.0](https://github.com/riemann/riemann-tools/tree/v1.11.0) (2024-07-07)
|
|
4
16
|
|
|
5
17
|
[Full Changelog](https://github.com/riemann/riemann-tools/compare/v1.10.0...v1.11.0)
|
data/lib/riemann/tools/bench.rb
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require '
|
|
4
|
-
require 'riemann/
|
|
3
|
+
require 'riemann/tools'
|
|
4
|
+
require 'riemann/tools/version'
|
|
5
5
|
|
|
6
6
|
# Connects to a server (first arg) and populates it with a constant stream of
|
|
7
7
|
# events for testing.
|
|
8
8
|
module Riemann
|
|
9
9
|
module Tools
|
|
10
10
|
class Bench
|
|
11
|
-
|
|
11
|
+
include Riemann::Tools
|
|
12
|
+
attr_accessor :hosts, :services, :states
|
|
12
13
|
|
|
13
14
|
def initialize
|
|
14
15
|
super
|
|
@@ -17,7 +18,6 @@ module Riemann
|
|
|
17
18
|
@hosts = %w[a b c d e f g h i j]
|
|
18
19
|
@services = %w[test1 test2 test3 foo bar baz xyzzy attack cat treat]
|
|
19
20
|
@states = {}
|
|
20
|
-
@client = Riemann::Client.new(host: ARGV.first || 'localhost')
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def evolve(state)
|
|
@@ -45,7 +45,7 @@ module Riemann
|
|
|
45
45
|
def tick
|
|
46
46
|
# pp @states
|
|
47
47
|
hosts.product(services).each do |id|
|
|
48
|
-
|
|
48
|
+
report(states[id] = evolve(states[id]))
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -478,7 +478,7 @@ module Riemann
|
|
|
478
478
|
capabilities = initial_handshake_packet[5] | (initial_handshake_packet[8] << 16)
|
|
479
479
|
|
|
480
480
|
ssl_flag = 1 << 11
|
|
481
|
-
raise 'No TLS support' if (
|
|
481
|
+
raise 'No TLS support' if capabilities.nobits?(ssl_flag)
|
|
482
482
|
|
|
483
483
|
socket.write(['2000000185ae7f0000000001210000000000000000000000000000000000000000000000'].pack('H*'))
|
|
484
484
|
tls_handshake(socket, uri.host)
|
data/riemann-tools.gemspec
CHANGED
|
@@ -38,7 +38,8 @@ Gem::Specification.new do |spec|
|
|
|
38
38
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
39
39
|
spec.require_paths = ['lib']
|
|
40
40
|
|
|
41
|
-
spec.
|
|
42
|
-
spec.
|
|
43
|
-
spec.
|
|
41
|
+
spec.add_dependency 'csv', '~> 3.0'
|
|
42
|
+
spec.add_dependency 'json', '>= 1.8'
|
|
43
|
+
spec.add_dependency 'optimist', '~> 3.0', '>= 3.0.0'
|
|
44
|
+
spec.add_dependency 'riemann-client', '~> 1.1'
|
|
44
45
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: riemann-tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyle Kingsbury
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-01-15 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: csv
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3.0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '3.0'
|
|
13
26
|
- !ruby/object:Gem::Dependency
|
|
14
27
|
name: json
|
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -233,7 +246,6 @@ metadata:
|
|
|
233
246
|
homepage_uri: https://github.com/aphyr/riemann-tools
|
|
234
247
|
source_code_uri: https://github.com/aphyr/riemann-tools
|
|
235
248
|
changelog_uri: https://github.com/aphyr/riemann-tools
|
|
236
|
-
post_install_message:
|
|
237
249
|
rdoc_options: []
|
|
238
250
|
require_paths:
|
|
239
251
|
- lib
|
|
@@ -248,8 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
248
260
|
- !ruby/object:Gem::Version
|
|
249
261
|
version: '0'
|
|
250
262
|
requirements: []
|
|
251
|
-
rubygems_version: 3.
|
|
252
|
-
signing_key:
|
|
263
|
+
rubygems_version: 3.6.2
|
|
253
264
|
specification_version: 4
|
|
254
265
|
summary: Utilities which submit events to Riemann.
|
|
255
266
|
test_files: []
|