logstash-output-metriccatcher 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: b9f7e243447eb053446209135ee88ea6616822d5
4
- data.tar.gz: 7e4f92082dd7655686c6b1e622d3b36577032ec8
3
+ metadata.gz: 28e24ce584e8fdad0d2639865f795b834ea07550
4
+ data.tar.gz: 69a76913691252372fa234bed6e87191645cd76c
5
5
  SHA512:
6
- metadata.gz: d58013fb47748840f8cbac9f2a1ff0fa7006a0b88d2699308d8bb166f0a15b991dd3dd40002659d6baf4f539bb954ca52a30312cdcd9226c213cfb2b762a7f9f
7
- data.tar.gz: 29a6435931201c1a109b0a8b2d0543dbedaa3cf0eb3ddbc436e6c7f31f2a14198476270cb400c882951a003b3c22a0a6576680c95a3fed9b5eaa11a90970b9d4
6
+ metadata.gz: c87bd3e743056f69a72476c93f884b9070cf0f3c69ecf7bef761d95eadd68f89cfe67a1243ce3c0706e3ce010b6734ff6f36b185141637d422e9faf02016500c
7
+ data.tar.gz: f2d6e5944e6de15e40a1b79b8ee782789bee779af3a159959b15ddecddf3936e2c186b5cd5d3247cc72a5a7b968433ff20aae10284b9532fa6babffc0134f5c0
data/CHANGELOG.md ADDED
File without changes
data/NOTICE.TXT ADDED
@@ -0,0 +1,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
data/README.md CHANGED
@@ -13,7 +13,7 @@ Logstash provides infrastructure to automatically generate documentation for thi
13
13
 
14
14
  ## Need Help?
15
15
 
16
- Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
16
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
17
17
 
18
18
  ## Developing
19
19
 
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require "logstash/outputs/base"
3
3
  require "logstash/namespace"
4
- require "json"
4
+ require "logstash/json"
5
5
 
6
6
 
7
7
  # This output ships metrics to MetricCatcher, allowing you to
@@ -16,7 +16,9 @@ require "json"
16
16
  # port => "1420"
17
17
  # type => "apache-access"
18
18
  # fields => [ "response" ]
19
- # meter => [ "%{host}.apache.response.%{response}", "1" ]
19
+ # meter => {
20
+ # "%{host}.apache.response.%{response}" => "1"
21
+ # }
20
22
  # }
21
23
  class LogStash::Outputs::MetricCatcher < LogStash::Outputs::Base
22
24
  config_name "metriccatcher"
@@ -38,7 +40,7 @@ class LogStash::Outputs::MetricCatcher < LogStash::Outputs::Base
38
40
  # for metric names and also for values. This is a hash field with key
39
41
  # of the metric name, value of the metric value. Example:
40
42
  # [source,ruby]
41
- # counter => [ "%{host}.apache.hits.%{response}, "1" ]
43
+ # counter => { "%{host}.apache.hits.%{response} => "1" }
42
44
  #
43
45
  # The value will be coerced to a floating point value. Values which cannot be
44
46
  # coerced will zero (0)
@@ -72,7 +74,7 @@ class LogStash::Outputs::MetricCatcher < LogStash::Outputs::Base
72
74
  # for metric names and also for values. This is a hash field with key
73
75
  # of the metric name, value of the metric value. Example:
74
76
  # [source,ruby]
75
- # timer => [ "%{host}.apache.response_time, "%{response_time}" ]
77
+ # timer => { "%{host}.apache.response_time => "%{response_time}" }
76
78
  #
77
79
  # The value will be coerced to a floating point value. Values which cannot be
78
80
  # coerced will zero (0)
@@ -96,7 +98,7 @@ class LogStash::Outputs::MetricCatcher < LogStash::Outputs::Base
96
98
  "timestamp" => event.sprintf("%{+%s}.") + Time.now.usec.to_s
97
99
  }]
98
100
 
99
- @socket.send(message.to_json, 0, @host, @port)
101
+ @socket.send(LogStash::Json.dump(message), 0, @host, @port)
100
102
  end # instance_variable_get("@#{metric_type}").each_slice
101
103
  end # if
102
104
  end # @metric_types.each
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-metriccatcher'
4
- s.version = '0.1.4'
4
+ s.version = '0.1.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output ships metrics to MetricCatcher"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-metriccatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
14
+ name: logstash-core
15
+ version_requirements: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - '>='
17
18
  - !ruby/object:Gem::Version
@@ -19,10 +20,7 @@ dependencies:
19
20
  - - <
20
21
  - !ruby/object:Gem::Version
21
22
  version: 2.0.0
22
- name: logstash-core
23
- prerelease: false
24
- type: :runtime
25
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: !ruby/object:Gem::Requirement
26
24
  requirements:
27
25
  - - '>='
28
26
  - !ruby/object:Gem::Version
@@ -30,20 +28,22 @@ dependencies:
30
28
  - - <
31
29
  - !ruby/object:Gem::Version
32
30
  version: 2.0.0
31
+ prerelease: false
32
+ type: :runtime
33
33
  - !ruby/object:Gem::Dependency
34
- requirement: !ruby/object:Gem::Requirement
34
+ name: logstash-devutils
35
+ version_requirements: !ruby/object:Gem::Requirement
35
36
  requirements:
36
37
  - - '>='
37
38
  - !ruby/object:Gem::Version
38
39
  version: '0'
39
- name: logstash-devutils
40
- prerelease: false
41
- type: :development
42
- version_requirements: !ruby/object:Gem::Requirement
40
+ requirement: !ruby/object:Gem::Requirement
43
41
  requirements:
44
42
  - - '>='
45
43
  - !ruby/object:Gem::Version
46
44
  version: '0'
45
+ prerelease: false
46
+ type: :development
47
47
  description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
48
48
  email: info@elastic.co
49
49
  executables: []
@@ -51,9 +51,11 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
53
  - .gitignore
54
+ - CHANGELOG.md
54
55
  - CONTRIBUTORS
55
56
  - Gemfile
56
57
  - LICENSE
58
+ - NOTICE.TXT
57
59
  - README.md
58
60
  - Rakefile
59
61
  - lib/logstash/outputs/metriccatcher.rb