logstash_writer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +14 -2
- data/lib/logstash_writer.rb +2 -0
- 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: 834ed0e5a393419b960245f1d036722ff97412a4009e3586fc9dc7d860fe79e7
|
4
|
+
data.tar.gz: bb9ef3b35721e7768348f74b83bcea4315ab0b6b3f968bc7874118d7d58be318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a31b62d8a681acc81a21491cf5b2f26807114bc81237e03f79eb5f053238bd3dab8fcc2394548f3546854534a54f6fce234ef622002ced68ed7a642360460e8
|
7
|
+
data.tar.gz: 7b857ce439143902b975132ee2f020220bebcdb4010f0c1bbc611cd114aa1d127df75aa11747af3b0b7776cf94c195c3e829a0d6ee37136bd762143391c3545b
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
AllCops:
|
2
2
|
TargetRubyVersion: 2.4
|
3
3
|
DisabledByDefault: true
|
4
|
+
Exclude:
|
5
|
+
- 'db/schema.rb'
|
6
|
+
- 'bundle/**/*'
|
7
|
+
- 'vendor/**/*'
|
8
|
+
- 'node_modules/**/*'
|
9
|
+
- 'public/**/*'
|
4
10
|
|
5
11
|
# Prefer &&/|| over and/or.
|
6
12
|
Style/AndOr:
|
@@ -80,12 +86,15 @@ Layout/TrailingBlankLines:
|
|
80
86
|
Layout/TrailingWhitespace:
|
81
87
|
Enabled: true
|
82
88
|
|
83
|
-
Lint/
|
89
|
+
Lint/Debugger:
|
90
|
+
Enabled: true
|
91
|
+
|
92
|
+
Layout/BlockAlignment:
|
84
93
|
Enabled: true
|
85
94
|
|
86
95
|
# Align `end` with the matching keyword or starting expression except for
|
87
96
|
# assignments, where it should be aligned with the LHS.
|
88
|
-
|
97
|
+
Layout/EndAlignment:
|
89
98
|
Enabled: true
|
90
99
|
EnforcedStyleAlignWith: variable
|
91
100
|
|
@@ -93,6 +102,9 @@ Lint/EndAlignment:
|
|
93
102
|
Lint/RequireParentheses:
|
94
103
|
Enabled: true
|
95
104
|
|
105
|
+
Lint/ShadowingOuterLocalVariable:
|
106
|
+
Enabled: true
|
107
|
+
|
96
108
|
Layout/MultilineMethodCallIndentation:
|
97
109
|
Enabled: true
|
98
110
|
EnforcedStyle: indented
|
data/lib/logstash_writer.rb
CHANGED
@@ -92,6 +92,8 @@ class LogstashWriter
|
|
92
92
|
@metrics[:lag].set({}, 0)
|
93
93
|
@metrics[:queue_size].set({}, 0)
|
94
94
|
|
95
|
+
metrics_registry.gauge(:"#{metrics_prefix}_queue_max", "The maximum size of the event queue").set({}, backlog)
|
96
|
+
|
95
97
|
@queue = []
|
96
98
|
@queue_mutex = Mutex.new
|
97
99
|
@queue_cv = ConditionVariable.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash_writer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Palmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prometheus-client
|