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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +14 -2
  3. data/lib/logstash_writer.rb +2 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e27c017182237c10ee711a5bf45d51558f35a34b75d09b29ab23bb4a58d59578
4
- data.tar.gz: eda0a25cc8860bfea71365571c6f914a2b2cb17e70282bf956ea69fb5269f8fb
3
+ metadata.gz: 834ed0e5a393419b960245f1d036722ff97412a4009e3586fc9dc7d860fe79e7
4
+ data.tar.gz: bb9ef3b35721e7768348f74b83bcea4315ab0b6b3f968bc7874118d7d58be318
5
5
  SHA512:
6
- metadata.gz: 6777f5c04b8560b5749a9064ceb45085697907f10eab3f74e143c308dfae437e54d0e021107e62dd7c8b1421c1057e4edcd71c170068c839d127a22e835809d7
7
- data.tar.gz: 6d6f13a78270924763293a287dc644bbd856b63f73caeb16bf38c1843a4d8140e35360c7a940caa6a1fd24e38fff03d4660b6a498b4de3bf9b680242922704fb
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/BlockAlignment:
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
- Lint/EndAlignment:
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
@@ -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.3
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-03 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prometheus-client