logstash-input-graphite 3.0.2 → 3.0.3
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 +4 -4
- data/Gemfile +8 -1
- data/docs/index.asciidoc +175 -0
- data/logstash-input-graphite.gemspec +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32cee1432eef8cbdeb088733545e76bd4908b562
|
4
|
+
data.tar.gz: 41e8168b1a7e17a9bf326989d7e5966cf98ef2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27179ece21df46c2327f4dd56499a8dd45ac3f2c416f47100d0fbe6853e0cf55b79e21e747aebd61a90a1a6f7b14ec49a8ed2ca568cfef5b7e84732ef31be8fc
|
7
|
+
data.tar.gz: 5b27c564b299e9a9f195d7a71ecfec0166b84b8c447eb9b02546fb90094c369567b0d9feae6f57472c73f93cea3b1c53ba82a5da120d05d54eb8e009b4e1309e
|
data/Gemfile
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in logstash-mass_effect.gemspec
|
4
3
|
gemspec
|
4
|
+
|
5
|
+
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
|
6
|
+
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
|
7
|
+
|
8
|
+
if Dir.exist?(logstash_path) && use_logstash_source
|
9
|
+
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
|
10
|
+
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
|
11
|
+
end
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
:plugin: graphite
|
2
|
+
:type: input
|
3
|
+
|
4
|
+
///////////////////////////////////////////
|
5
|
+
START - GENERATED VARIABLES, DO NOT EDIT!
|
6
|
+
///////////////////////////////////////////
|
7
|
+
:version: %VERSION%
|
8
|
+
:release_date: %RELEASE_DATE%
|
9
|
+
:changelog_url: %CHANGELOG_URL%
|
10
|
+
:include_path: ../../../../logstash/docs/include
|
11
|
+
///////////////////////////////////////////
|
12
|
+
END - GENERATED VARIABLES, DO NOT EDIT!
|
13
|
+
///////////////////////////////////////////
|
14
|
+
|
15
|
+
[id="plugins-{type}-{plugin}"]
|
16
|
+
|
17
|
+
=== Graphite input plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Receive graphite metrics. This plugin understands the text-based graphite
|
24
|
+
carbon protocol. Both `N` and `specific-timestamp` forms are supported, example:
|
25
|
+
[source,ruby]
|
26
|
+
mysql.slow_query.count 204 N
|
27
|
+
haproxy.live_backends 7 1364608909
|
28
|
+
|
29
|
+
`N` means `now` for a timestamp. This plugin also supports having the time
|
30
|
+
specified in the metric payload:
|
31
|
+
|
32
|
+
For every metric received from a client, a single event will be emitted with
|
33
|
+
the metric name as the field (like `mysql.slow_query.count`) and the metric
|
34
|
+
value as the field's value.
|
35
|
+
|
36
|
+
[id="plugins-{type}s-{plugin}-options"]
|
37
|
+
==== Graphite Input Configuration Options
|
38
|
+
|
39
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
40
|
+
|
41
|
+
[cols="<,<,<",options="header",]
|
42
|
+
|=======================================================================
|
43
|
+
|Setting |Input type|Required
|
44
|
+
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
|
45
|
+
| <<plugins-{type}s-{plugin}-mode>> |<<string,string>>, one of `["server", "client"]`|No
|
46
|
+
| <<plugins-{type}s-{plugin}-port>> |<<number,number>>|Yes
|
47
|
+
| <<plugins-{type}s-{plugin}-proxy_protocol>> |<<boolean,boolean>>|No
|
48
|
+
| <<plugins-{type}s-{plugin}-ssl_cert>> |a valid filesystem path|No
|
49
|
+
| <<plugins-{type}s-{plugin}-ssl_enable>> |<<boolean,boolean>>|No
|
50
|
+
| <<plugins-{type}s-{plugin}-ssl_extra_chain_certs>> |<<array,array>>|No
|
51
|
+
| <<plugins-{type}s-{plugin}-ssl_key>> |a valid filesystem path|No
|
52
|
+
| <<plugins-{type}s-{plugin}-ssl_key_passphrase>> |<<password,password>>|No
|
53
|
+
| <<plugins-{type}s-{plugin}-ssl_verify>> |<<boolean,boolean>>|No
|
54
|
+
|=======================================================================
|
55
|
+
|
56
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
57
|
+
input plugins.
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
[id="plugins-{type}s-{plugin}-data_timeout"]
|
62
|
+
===== `data_timeout` (DEPRECATED)
|
63
|
+
|
64
|
+
* DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
|
65
|
+
* Value type is <<number,number>>
|
66
|
+
* Default value is `-1`
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
[id="plugins-{type}s-{plugin}-host"]
|
71
|
+
===== `host`
|
72
|
+
|
73
|
+
* Value type is <<string,string>>
|
74
|
+
* Default value is `"0.0.0.0"`
|
75
|
+
|
76
|
+
Read events over a TCP socket.
|
77
|
+
|
78
|
+
Like stdin and file inputs, each event is assumed to be one line of text.
|
79
|
+
|
80
|
+
Can either accept connections from clients or connect to a server,
|
81
|
+
depending on `mode`.
|
82
|
+
When mode is `server`, the address to listen on.
|
83
|
+
When mode is `client`, the address to connect to.
|
84
|
+
|
85
|
+
[id="plugins-{type}s-{plugin}-mode"]
|
86
|
+
===== `mode`
|
87
|
+
|
88
|
+
* Value can be any of: `server`, `client`
|
89
|
+
* Default value is `"server"`
|
90
|
+
|
91
|
+
Mode to operate in. `server` listens for client connections,
|
92
|
+
`client` connects to a server.
|
93
|
+
|
94
|
+
[id="plugins-{type}s-{plugin}-port"]
|
95
|
+
===== `port`
|
96
|
+
|
97
|
+
* This is a required setting.
|
98
|
+
* Value type is <<number,number>>
|
99
|
+
* There is no default value for this setting.
|
100
|
+
|
101
|
+
When mode is `server`, the port to listen on.
|
102
|
+
When mode is `client`, the port to connect to.
|
103
|
+
|
104
|
+
[id="plugins-{type}s-{plugin}-proxy_protocol"]
|
105
|
+
===== `proxy_protocol`
|
106
|
+
|
107
|
+
* Value type is <<boolean,boolean>>
|
108
|
+
* Default value is `false`
|
109
|
+
|
110
|
+
Proxy protocol support, only v1 is supported at this time
|
111
|
+
http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt
|
112
|
+
|
113
|
+
[id="plugins-{type}s-{plugin}-ssl_cacert"]
|
114
|
+
===== `ssl_cacert` (DEPRECATED)
|
115
|
+
|
116
|
+
* DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
|
117
|
+
* Value type is <<path,path>>
|
118
|
+
* There is no default value for this setting.
|
119
|
+
|
120
|
+
The SSL CA certificate, chainfile or CA path. The system CA path is automatically included.
|
121
|
+
|
122
|
+
[id="plugins-{type}s-{plugin}-ssl_cert"]
|
123
|
+
===== `ssl_cert`
|
124
|
+
|
125
|
+
* Value type is <<path,path>>
|
126
|
+
* There is no default value for this setting.
|
127
|
+
|
128
|
+
SSL certificate path
|
129
|
+
|
130
|
+
[id="plugins-{type}s-{plugin}-ssl_enable"]
|
131
|
+
===== `ssl_enable`
|
132
|
+
|
133
|
+
* Value type is <<boolean,boolean>>
|
134
|
+
* Default value is `false`
|
135
|
+
|
136
|
+
Enable SSL (must be set for other `ssl_` options to take effect).
|
137
|
+
|
138
|
+
[id="plugins-{type}s-{plugin}-ssl_extra_chain_certs"]
|
139
|
+
===== `ssl_extra_chain_certs`
|
140
|
+
|
141
|
+
* Value type is <<array,array>>
|
142
|
+
* Default value is `[]`
|
143
|
+
|
144
|
+
An Array of extra X509 certificates to be added to the certificate chain.
|
145
|
+
Useful when the CA chain is not necessary in the system store.
|
146
|
+
|
147
|
+
[id="plugins-{type}s-{plugin}-ssl_key"]
|
148
|
+
===== `ssl_key`
|
149
|
+
|
150
|
+
* Value type is <<path,path>>
|
151
|
+
* There is no default value for this setting.
|
152
|
+
|
153
|
+
SSL key path
|
154
|
+
|
155
|
+
[id="plugins-{type}s-{plugin}-ssl_key_passphrase"]
|
156
|
+
===== `ssl_key_passphrase`
|
157
|
+
|
158
|
+
* Value type is <<password,password>>
|
159
|
+
* Default value is `nil`
|
160
|
+
|
161
|
+
SSL key passphrase
|
162
|
+
|
163
|
+
[id="plugins-{type}s-{plugin}-ssl_verify"]
|
164
|
+
===== `ssl_verify`
|
165
|
+
|
166
|
+
* Value type is <<boolean,boolean>>
|
167
|
+
* Default value is `true`
|
168
|
+
|
169
|
+
Verify the identity of the other end of the SSL connection against the CA.
|
170
|
+
For input, sets the field `sslsubject` to that of the client certificate.
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
175
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-graphite'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Receive graphite metrics"
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.require_paths = ["lib"]
|
12
12
|
|
13
13
|
# Files
|
14
|
-
s.files = Dir[
|
14
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
15
15
|
|
16
16
|
# Tests
|
17
17
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-graphite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/inputs/graphite.rb
|
74
75
|
- logstash-input-graphite.gemspec
|
75
76
|
- spec/inputs/graphite_spec.rb
|
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
97
|
version: '0'
|
97
98
|
requirements: []
|
98
99
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.4.8
|
100
101
|
signing_key:
|
101
102
|
specification_version: 4
|
102
103
|
summary: Receive graphite metrics
|