logstash-filter-metrics 0.1.0 → 0.1.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDcwOTM5NjE4ZGNmOGQyMDQ4NTVkMDA2YjAwMzI0Y2NiMTBkZWViZA==
4
+ MDM1ZTEwMWVjZWQzNzZjN2NhOWY5YWU3ZmZmM2FkZjkwYzcwNGIzZQ==
5
5
  data.tar.gz: !binary |-
6
- ZDIyYmI3NzYyNmQwOGU3NGEzNmNkZmI0MTY5YzFlN2IxNjY3NDUxZQ==
6
+ MzY5ZmU1YTU4YzAwNjFlNjM0NjU4ZTgxNGIwNDcxNTIwYTUzYzU4Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGEzNWU1MThmNzA0OGQ0YWM1NDg1ODQ3M2YwNjE0MjcxYzY4Yjk4ZTYxZWZm
10
- MzhmMzFlMzA2ZWEwZmViYWQ4YWIzY2FkM2FkYmY3Y2I5YWIyYWExOTAwMWIz
11
- NzQ5ZGIwMDJlOWUzYThjZGI1MjFhMmQ0NDlhYWFiY2UxMzkwYTA=
9
+ YjQzMDhkYzJiOWVhNGE2ZTIwNmQ3ZTljOWIyZmUwNDY0OGU5ZDAyMWNjZGY1
10
+ MGRkMDFjZmQ2Mzc3N2MxYzEwMWU0NTAzMjc4YjM1NjJkNWMxZDQ2ZTExYjdi
11
+ ZThmZDc1OWFlYzAzZTY0N2NjY2EzMjA0YjM4Y2FiNWQ3ZTE1Njc=
12
12
  data.tar.gz: !binary |-
13
- MjQ3YzQ4NDM0NzA4NTA4MWRiYTY2NWQ4YzAxMjZkMmNlZjJkZjdhMjQ5YWY0
14
- ZWU0NTI3MWMxOTcxYmZhMjNmYmQ3Y2ViOGI3ODg3MDc2NjQ5YjdjZjI5Nzk4
15
- ODJlYTQyZjU5OWFkYWRkMWViYWJlMjI0YzE2YmQ1OTJlZGZkYWE=
13
+ ZDhhMzE5NDBjYjUyYzAwYjkxYzU5ZjUxYzdjNzYxNmMwNGZjMTE3NDJlOTli
14
+ NjNiYzM4OTBjODc4ZTk3NzkzZWJiNzE0MTdmZTJjNjQwZTRiMGYwMmJkMjA3
15
+ YjFlZTUxNTU4ZjRjNTYxMWVmMDhiMDFiOTIyYWJmYTBmOTUxZGI=
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2012-2014 Elasticsearch <http://www.elasticsearch.org>
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -8,7 +8,7 @@ require "logstash/namespace"
8
8
  # For example, if you have a field 'response' that is
9
9
  # a http response code, and you want to count each
10
10
  # kind of response, you can do this:
11
- #
11
+ # [source,ruby]
12
12
  # filter {
13
13
  # metrics {
14
14
  # meter => [ "http.%{response}" ]
@@ -54,7 +54,7 @@ require "logstash/namespace"
54
54
  #
55
55
  # For a simple example, let's track how many events per second are running
56
56
  # through logstash:
57
- #
57
+ # [source,ruby]
58
58
  # input {
59
59
  # generator {
60
60
  # type => "generated"
@@ -82,7 +82,7 @@ require "logstash/namespace"
82
82
  # }
83
83
  #
84
84
  # Running the above:
85
- #
85
+ # [source,ruby]
86
86
  # % bin/logstash -f example.conf
87
87
  # rate: 23721.983566819246
88
88
  # rate: 24811.395722536377
@@ -93,7 +93,7 @@ require "logstash/namespace"
93
93
  #
94
94
  # In the real world, you would emit this to graphite or another metrics store,
95
95
  # like so:
96
- #
96
+ # [source,ruby]
97
97
  # output {
98
98
  # graphite {
99
99
  # metrics => [ "events.rate_1m", "%{events.rate_1m}" ]
@@ -174,7 +174,7 @@ class LogStash::Filters::Metrics < LogStash::Filters::Base
174
174
  end
175
175
  end # def filter
176
176
 
177
- def flush
177
+ def flush(options = {})
178
178
  # Add 5 seconds to @last_flush and @last_clear counters
179
179
  # since this method is called every 5 seconds.
180
180
  @last_flush.update { |v| v + 5 }
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-metrics'
4
- s.version = '0.1.0'
4
+ s.version = '0.1.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The metrics filter is useful for aggregating metrics."
7
7
  s.description = "The metrics filter is useful for aggregating metrics."
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
 
22
22
  # Gem dependencies
23
23
  s.add_runtime_dependency 'logstash', '>= 1.4.0', '< 2.0.0'
24
+ s.add_runtime_dependency "metriks" #(MIT license)
24
25
 
25
26
  end
26
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elasticsearch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-02 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash
@@ -30,6 +30,20 @@ dependencies:
30
30
  - - <
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: metriks
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
33
47
  description: The metrics filter is useful for aggregating metrics.
34
48
  email: richard.pijnenburg@elasticsearch.com
35
49
  executables: []
@@ -38,6 +52,7 @@ extra_rdoc_files: []
38
52
  files:
39
53
  - .gitignore
40
54
  - Gemfile
55
+ - LICENSE
41
56
  - Rakefile
42
57
  - lib/logstash/filters/metrics.rb
43
58
  - logstash-filter-metrics.gemspec