logstash-codec-collectd 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7a78af6e42997bb2cca5a390a5c2107aadbb540
4
- data.tar.gz: 320a90e28a86a95e65f26d55a276150a21ba0e59
3
+ metadata.gz: 25f6e1a21bfe881f3e2a07316b8e6bb65c314501
4
+ data.tar.gz: c33dfec6f1c60a2d3abad663721e0006634fb24f
5
5
  SHA512:
6
- metadata.gz: 34d761526f09d6c3ea84fc9a6773ab3bd42ce031960a3b745f4d9665f17095fb09b0cc64b624353fac9a6f6c04fffa129465d55838f928e276fbed75f6f56d59
7
- data.tar.gz: 837cf9f0b020933ba95cf084003bdf36b1590739e96a40220c3bcbb5d7e6cb791369087edc409aae31cfcbdc1618d86bb3a12ec6c7609f270ddc5310fced965f
6
+ metadata.gz: 74c19f690a2c796ad09c8d14858461108239208b13598b881618d3d8afe9428163428048dfb5e3a80724ec64abeec25b6cc5dd1c4d9621d9d444058a11f748e3
7
+ data.tar.gz: 711e30987da7570d0453e01ca5864918ddc7769f4a4fb079ab60b84c59c8de6b71c42e349fc02897b5effef35edb14fadbd08f7b1a59b4fa80ae8ffc4f07d720
data/CONTRIBUTORS ADDED
@@ -0,0 +1,16 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Contributors:
5
+ * Aaron Mildenstein (untergeek)
6
+ * Colin Surprenant (colinsurprenant)
7
+ * Pier-Hugues Pellerin (ph)
8
+ * Pieter Lexis (pieterlexis)
9
+ * Richard Pijnenburg (electrical)
10
+ * Suyog Rao (suyograo)
11
+ * andis
12
+
13
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
14
+ Logstash, and you aren't on the list above and want to be, please let us know
15
+ and we'll make sure you're here. Contributions from folks like you are what make
16
+ open source awesome.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2014 Elasticsearch <http://www.elasticsearch.org>
1
+ Copyright (c) 2012-2015 Elasticsearch <http://www.elasticsearch.org>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # Logstash Plugin
2
+
3
+ This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
4
+
5
+ It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
+
7
+ ## Documentation
8
+
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elasticsearch.org/guide/en/logstash/current/).
10
+
11
+ - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
13
+
14
+ ## Need Help?
15
+
16
+ Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
17
+
18
+ ## Developing
19
+
20
+ ### 1. Plugin Developement and Testing
21
+
22
+ #### Code
23
+ - To get started, you'll need JRuby with the Bundler gem installed.
24
+
25
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization.
26
+
27
+ - Install dependencies
28
+ ```sh
29
+ bundle install
30
+ ```
31
+
32
+ #### Test
33
+
34
+ ```sh
35
+ bundle exec rspec
36
+ ```
37
+
38
+ The Logstash code required to run the tests/specs is specified in the `Gemfile` by the line similar to:
39
+ ```ruby
40
+ gem "logstash", :github => "elasticsearch/logstash", :branch => "1.5"
41
+ ```
42
+ To test against another version or a local Logstash, edit the `Gemfile` to specify an alternative location, for example:
43
+ ```ruby
44
+ gem "logstash", :github => "elasticsearch/logstash", :ref => "master"
45
+ ```
46
+ ```ruby
47
+ gem "logstash", :path => "/your/local/logstash"
48
+ ```
49
+
50
+ Then update your dependencies and run your tests:
51
+
52
+ ```sh
53
+ bundle install
54
+ bundle exec rspec
55
+ ```
56
+
57
+ ### 2. Running your unpublished Plugin in Logstash
58
+
59
+ #### 2.1 Run in a local Logstash clone
60
+
61
+ - Edit Logstash `tools/Gemfile` and add the local plugin path, for example:
62
+ ```ruby
63
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
64
+ ```
65
+ - Update Logstash dependencies
66
+ ```sh
67
+ rake vendor:gems
68
+ ```
69
+ - Run Logstash with your plugin
70
+ ```sh
71
+ bin/logstash -e 'filter {awesome {}}'
72
+ ```
73
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
74
+
75
+ #### 2.2 Run in an installed Logstash
76
+
77
+ - Build your plugin gem
78
+ ```sh
79
+ gem build logstash-filter-awesome.gemspec
80
+ ```
81
+ - Install the plugin from the Logstash home
82
+ ```sh
83
+ bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
84
+ ```
85
+ - Start Logstash and proceed to test the plugin
86
+
87
+ ## Contributing
88
+
89
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
90
+
91
+ Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
92
+
93
+ It is more important to me that you are able to contribute.
94
+
95
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
@@ -18,7 +18,7 @@ class NaNError < LogStash::Error; end
18
18
  # [source,ruby]
19
19
  # input {
20
20
  # udp {
21
- # port => 28526
21
+ # port => 25826
22
22
  # buffer_size => 1452
23
23
  # codec => collectd { }
24
24
  # }
@@ -44,7 +44,6 @@ class NaNError < LogStash::Error; end
44
44
  #
45
45
  class LogStash::Codecs::Collectd < LogStash::Codecs::Base
46
46
  config_name "collectd"
47
- milestone 1
48
47
 
49
48
  AUTHFILEREGEX = /([^:]+): (.+)/
50
49
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-collectd'
4
- s.version = '0.1.2'
4
+ s.version = '0.1.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Read events from the connectd binary protocol"
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,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-collectd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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-19 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash
15
- version_requirements: !ruby/object:Gem::Requirement
14
+ requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - '>='
18
17
  - !ruby/object:Gem::Version
@@ -20,7 +19,10 @@ dependencies:
20
19
  - - <
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.0.0
23
- requirement: !ruby/object:Gem::Requirement
22
+ name: logstash
23
+ prerelease: false
24
+ type: :runtime
25
+ version_requirements: !ruby/object:Gem::Requirement
24
26
  requirements:
25
27
  - - '>='
26
28
  - !ruby/object:Gem::Version
@@ -28,22 +30,20 @@ dependencies:
28
30
  - - <
29
31
  - !ruby/object:Gem::Version
30
32
  version: 2.0.0
31
- prerelease: false
32
- type: :runtime
33
33
  - !ruby/object:Gem::Dependency
34
- name: logstash-devutils
35
- version_requirements: !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
36
35
  requirements:
37
36
  - - '>='
38
37
  - !ruby/object:Gem::Version
39
38
  version: '0'
40
- requirement: !ruby/object:Gem::Requirement
39
+ name: logstash-devutils
40
+ prerelease: false
41
+ type: :development
42
+ version_requirements: !ruby/object:Gem::Requirement
41
43
  requirements:
42
44
  - - '>='
43
45
  - !ruby/object:Gem::Version
44
46
  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@elasticsearch.com
49
49
  executables: []
@@ -51,13 +51,14 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
53
  - .gitignore
54
+ - CONTRIBUTORS
54
55
  - Gemfile
55
56
  - LICENSE
57
+ - README.md
56
58
  - Rakefile
57
59
  - lib/logstash/codecs/collectd.rb
58
60
  - logstash-codec-collectd.gemspec
59
61
  - spec/codecs/collectd_spec.rb
60
- - vendor/types.db
61
62
  homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
62
63
  licenses:
63
64
  - Apache License (2.0)
@@ -80,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  version: '0'
81
82
  requirements: []
82
83
  rubyforge_project:
83
- rubygems_version: 2.4.4
84
+ rubygems_version: 2.1.9
84
85
  signing_key:
85
86
  specification_version: 4
86
87
  summary: Read events from the connectd binary protocol
data/vendor/types.db DELETED
@@ -1,208 +0,0 @@
1
- absolute value:ABSOLUTE:0:U
2
- apache_bytes value:DERIVE:0:U
3
- apache_connections value:GAUGE:0:65535
4
- apache_idle_workers value:GAUGE:0:65535
5
- apache_requests value:DERIVE:0:U
6
- apache_scoreboard value:GAUGE:0:65535
7
- ath_nodes value:GAUGE:0:65535
8
- ath_stat value:DERIVE:0:U
9
- backends value:GAUGE:0:65535
10
- bitrate value:GAUGE:0:4294967295
11
- bytes value:GAUGE:0:U
12
- cache_eviction value:DERIVE:0:U
13
- cache_operation value:DERIVE:0:U
14
- cache_ratio value:GAUGE:0:100
15
- cache_result value:DERIVE:0:U
16
- cache_size value:GAUGE:0:4294967295
17
- charge value:GAUGE:0:U
18
- compression_ratio value:GAUGE:0:2
19
- compression uncompressed:DERIVE:0:U, compressed:DERIVE:0:U
20
- connections value:DERIVE:0:U
21
- conntrack value:GAUGE:0:4294967295
22
- contextswitch value:DERIVE:0:U
23
- counter value:COUNTER:U:U
24
- cpufreq value:GAUGE:0:U
25
- cpu value:DERIVE:0:U
26
- current_connections value:GAUGE:0:U
27
- current_sessions value:GAUGE:0:U
28
- current value:GAUGE:U:U
29
- delay value:GAUGE:-1000000:1000000
30
- derive value:DERIVE:0:U
31
- df_complex value:GAUGE:0:U
32
- df_inodes value:GAUGE:0:U
33
- df used:GAUGE:0:1125899906842623, free:GAUGE:0:1125899906842623
34
- disk_latency read:GAUGE:0:U, write:GAUGE:0:U
35
- disk_merged read:DERIVE:0:U, write:DERIVE:0:U
36
- disk_octets read:DERIVE:0:U, write:DERIVE:0:U
37
- disk_ops_complex value:DERIVE:0:U
38
- disk_ops read:DERIVE:0:U, write:DERIVE:0:U
39
- disk_time read:DERIVE:0:U, write:DERIVE:0:U
40
- dns_answer value:DERIVE:0:U
41
- dns_notify value:DERIVE:0:U
42
- dns_octets queries:DERIVE:0:U, responses:DERIVE:0:U
43
- dns_opcode value:DERIVE:0:U
44
- dns_qtype_cached value:GAUGE:0:4294967295
45
- dns_qtype value:DERIVE:0:U
46
- dns_query value:DERIVE:0:U
47
- dns_question value:DERIVE:0:U
48
- dns_rcode value:DERIVE:0:U
49
- dns_reject value:DERIVE:0:U
50
- dns_request value:DERIVE:0:U
51
- dns_resolver value:DERIVE:0:U
52
- dns_response value:DERIVE:0:U
53
- dns_transfer value:DERIVE:0:U
54
- dns_update value:DERIVE:0:U
55
- dns_zops value:DERIVE:0:U
56
- duration seconds:GAUGE:0:U
57
- email_check value:GAUGE:0:U
58
- email_count value:GAUGE:0:U
59
- email_size value:GAUGE:0:U
60
- entropy value:GAUGE:0:4294967295
61
- fanspeed value:GAUGE:0:U
62
- file_size value:GAUGE:0:U
63
- files value:GAUGE:0:U
64
- fork_rate value:DERIVE:0:U
65
- frequency_offset value:GAUGE:-1000000:1000000
66
- frequency value:GAUGE:0:U
67
- fscache_stat value:DERIVE:0:U
68
- gauge value:GAUGE:U:U
69
- hash_collisions value:DERIVE:0:U
70
- http_request_methods value:DERIVE:0:U
71
- http_requests value:DERIVE:0:U
72
- http_response_codes value:DERIVE:0:U
73
- humidity value:GAUGE:0:100
74
- if_collisions value:DERIVE:0:U
75
- if_dropped rx:DERIVE:0:U, tx:DERIVE:0:U
76
- if_errors rx:DERIVE:0:U, tx:DERIVE:0:U
77
- if_multicast value:DERIVE:0:U
78
- if_octets rx:DERIVE:0:U, tx:DERIVE:0:U
79
- if_packets rx:DERIVE:0:U, tx:DERIVE:0:U
80
- if_rx_errors value:DERIVE:0:U
81
- if_rx_octets value:DERIVE:0:U
82
- if_tx_errors value:DERIVE:0:U
83
- if_tx_octets value:DERIVE:0:U
84
- invocations value:DERIVE:0:U
85
- io_octets rx:DERIVE:0:U, tx:DERIVE:0:U
86
- io_packets rx:DERIVE:0:U, tx:DERIVE:0:U
87
- ipt_bytes value:DERIVE:0:U
88
- ipt_packets value:DERIVE:0:U
89
- irq value:DERIVE:0:U
90
- latency value:GAUGE:0:U
91
- links value:GAUGE:0:U
92
- load shortterm:GAUGE:0:5000, midterm:GAUGE:0:5000, longterm:GAUGE:0:5000
93
- md_disks value:GAUGE:0:U
94
- memcached_command value:DERIVE:0:U
95
- memcached_connections value:GAUGE:0:U
96
- memcached_items value:GAUGE:0:U
97
- memcached_octets rx:DERIVE:0:U, tx:DERIVE:0:U
98
- memcached_ops value:DERIVE:0:U
99
- memory value:GAUGE:0:281474976710656
100
- multimeter value:GAUGE:U:U
101
- mutex_operations value:DERIVE:0:U
102
- mysql_commands value:DERIVE:0:U
103
- mysql_handler value:DERIVE:0:U
104
- mysql_locks value:DERIVE:0:U
105
- mysql_log_position value:DERIVE:0:U
106
- mysql_octets rx:DERIVE:0:U, tx:DERIVE:0:U
107
- nfs_procedure value:DERIVE:0:U
108
- nginx_connections value:GAUGE:0:U
109
- nginx_requests value:DERIVE:0:U
110
- node_octets rx:DERIVE:0:U, tx:DERIVE:0:U
111
- node_rssi value:GAUGE:0:255
112
- node_stat value:DERIVE:0:U
113
- node_tx_rate value:GAUGE:0:127
114
- objects value:GAUGE:0:U
115
- operations value:DERIVE:0:U
116
- percent value:GAUGE:0:100.1
117
- percent_bytes value:GAUGE:0:100.1
118
- percent_inodes value:GAUGE:0:100.1
119
- pf_counters value:DERIVE:0:U
120
- pf_limits value:DERIVE:0:U
121
- pf_source value:DERIVE:0:U
122
- pf_states value:GAUGE:0:U
123
- pf_state value:DERIVE:0:U
124
- pg_blks value:DERIVE:0:U
125
- pg_db_size value:GAUGE:0:U
126
- pg_n_tup_c value:DERIVE:0:U
127
- pg_n_tup_g value:GAUGE:0:U
128
- pg_numbackends value:GAUGE:0:U
129
- pg_scan value:DERIVE:0:U
130
- pg_xact value:DERIVE:0:U
131
- ping_droprate value:GAUGE:0:100
132
- ping_stddev value:GAUGE:0:65535
133
- ping value:GAUGE:0:65535
134
- players value:GAUGE:0:1000000
135
- power value:GAUGE:0:U
136
- protocol_counter value:DERIVE:0:U
137
- ps_code value:GAUGE:0:9223372036854775807
138
- ps_count processes:GAUGE:0:1000000, threads:GAUGE:0:1000000
139
- ps_cputime user:DERIVE:0:U, syst:DERIVE:0:U
140
- ps_data value:GAUGE:0:9223372036854775807
141
- ps_disk_octets read:DERIVE:0:U, write:DERIVE:0:U
142
- ps_disk_ops read:DERIVE:0:U, write:DERIVE:0:U
143
- ps_pagefaults minflt:DERIVE:0:U, majflt:DERIVE:0:U
144
- ps_rss value:GAUGE:0:9223372036854775807
145
- ps_stacksize value:GAUGE:0:9223372036854775807
146
- ps_state value:GAUGE:0:65535
147
- ps_vm value:GAUGE:0:9223372036854775807
148
- queue_length value:GAUGE:0:U
149
- records value:GAUGE:0:U
150
- requests value:GAUGE:0:U
151
- response_time value:GAUGE:0:U
152
- response_code value:GAUGE:0:U
153
- route_etx value:GAUGE:0:U
154
- route_metric value:GAUGE:0:U
155
- routes value:GAUGE:0:U
156
- serial_octets rx:DERIVE:0:U, tx:DERIVE:0:U
157
- signal_noise value:GAUGE:U:0
158
- signal_power value:GAUGE:U:0
159
- signal_quality value:GAUGE:0:U
160
- snr value:GAUGE:0:U
161
- spam_check value:GAUGE:0:U
162
- spam_score value:GAUGE:U:U
163
- spl value:GAUGE:U:U
164
- swap_io value:DERIVE:0:U
165
- swap value:GAUGE:0:1099511627776
166
- tcp_connections value:GAUGE:0:4294967295
167
- temperature value:GAUGE:U:U
168
- threads value:GAUGE:0:U
169
- time_dispersion value:GAUGE:-1000000:1000000
170
- timeleft value:GAUGE:0:U
171
- time_offset value:GAUGE:-1000000:1000000
172
- total_bytes value:DERIVE:0:U
173
- total_connections value:DERIVE:0:U
174
- total_objects value:DERIVE:0:U
175
- total_operations value:DERIVE:0:U
176
- total_requests value:DERIVE:0:U
177
- total_sessions value:DERIVE:0:U
178
- total_threads value:DERIVE:0:U
179
- total_time_in_ms value:DERIVE:0:U
180
- total_values value:DERIVE:0:U
181
- uptime value:GAUGE:0:4294967295
182
- users value:GAUGE:0:65535
183
- vcl value:GAUGE:0:65535
184
- vcpu value:GAUGE:0:U
185
- virt_cpu_total value:DERIVE:0:U
186
- virt_vcpu value:DERIVE:0:U
187
- vmpage_action value:DERIVE:0:U
188
- vmpage_faults minflt:DERIVE:0:U, majflt:DERIVE:0:U
189
- vmpage_io in:DERIVE:0:U, out:DERIVE:0:U
190
- vmpage_number value:GAUGE:0:4294967295
191
- volatile_changes value:GAUGE:0:U
192
- voltage_threshold value:GAUGE:U:U, threshold:GAUGE:U:U
193
- voltage value:GAUGE:U:U
194
- vs_memory value:GAUGE:0:9223372036854775807
195
- vs_processes value:GAUGE:0:65535
196
- vs_threads value:GAUGE:0:65535
197
-
198
- #
199
- # Legacy types
200
- # (required for the v5 upgrade target)
201
- #
202
- arc_counts demand_data:COUNTER:0:U, demand_metadata:COUNTER:0:U, prefetch_data:COUNTER:0:U, prefetch_metadata:COUNTER:0:U
203
- arc_l2_bytes read:COUNTER:0:U, write:COUNTER:0:U
204
- arc_l2_size value:GAUGE:0:U
205
- arc_ratio value:GAUGE:0:U
206
- arc_size current:GAUGE:0:U, target:GAUGE:0:U, minlimit:GAUGE:0:U, maxlimit:GAUGE:0:U
207
- mysql_qcache hits:COUNTER:0:U, inserts:COUNTER:0:U, not_cached:COUNTER:0:U, lowmem_prunes:COUNTER:0:U, queries_in_cache:GAUGE:0:U
208
- mysql_threads running:GAUGE:0:U, connected:GAUGE:0:U, cached:GAUGE:0:U, created:COUNTER:0:U