logstash-output-graphite 3.1.1 → 3.1.2

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: c18c98a8cac288b2239f9914c92c44b33c59dceb
4
- data.tar.gz: 7525262db58187a70b9842326952349ef32373d0
3
+ metadata.gz: 58deb053b05213957d02afc35d0bda1a2755e7f7
4
+ data.tar.gz: 650206e9c334878250685fb7391bf8ebe69dc719
5
5
  SHA512:
6
- metadata.gz: 7b31f638cf19bc0e93b204921ed76c94ec0091ecb78ac2e63e07e9006e50f4427a4ae905044820e47e5ddf38df75bc2c417c58804b7938db90c6abcb75866cb6
7
- data.tar.gz: 0194522c5a0bbe93023d87e1b31da97f2cb43d4d169c0e185a14cab29086cecf4ff153aaade609bb25f6de290781fa998e60150472ea7b47d805ad1a61b4544a
6
+ metadata.gz: 783604b1b26d519802f5f079a73fa35ccf7834ad90cb67742c2d0dd2419a6b7d4d1fb1d0bf9b6135cb679d732b60a7415d85efa583588d1fbf9530a2d4900f64
7
+ data.tar.gz: 949169f1a3e2a995fa1ee31a50859967d1d7158042b4f13a5126a2c1506036cfac7fdd4cd612fbd8c0896fed280970d7c765e56a0ce32a86f5d12af92e1c4949
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
@@ -0,0 +1,173 @@
1
+ :plugin: graphite
2
+ :type: output
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 output plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This output allows you to pull metrics from your logs and ship them to
24
+ Graphite. Graphite is an open source tool for storing and graphing metrics.
25
+
26
+ An example use case: Some applications emit aggregated stats in the logs
27
+ every 10 seconds. Using the grok filter and this output, it is possible to
28
+ capture the metric values from the logs and emit them to Graphite.
29
+
30
+ [id="plugins-{type}s-{plugin}-options"]
31
+ ==== Graphite Output Configuration Options
32
+
33
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
34
+
35
+ [cols="<,<,<",options="header",]
36
+ |=======================================================================
37
+ |Setting |Input type|Required
38
+ | <<plugins-{type}s-{plugin}-exclude_metrics>> |<<array,array>>|No
39
+ | <<plugins-{type}s-{plugin}-fields_are_metrics>> |<<boolean,boolean>>|No
40
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
41
+ | <<plugins-{type}s-{plugin}-include_metrics>> |<<array,array>>|No
42
+ | <<plugins-{type}s-{plugin}-metrics>> |<<hash,hash>>|No
43
+ | <<plugins-{type}s-{plugin}-metrics_format>> |<<string,string>>|No
44
+ | <<plugins-{type}s-{plugin}-nested_object_separator>> |<<string,string>>|No
45
+ | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
46
+ | <<plugins-{type}s-{plugin}-reconnect_interval>> |<<number,number>>|No
47
+ | <<plugins-{type}s-{plugin}-resend_on_failure>> |<<boolean,boolean>>|No
48
+ | <<plugins-{type}s-{plugin}-timestamp_field>> |<<string,string>>|No
49
+ |=======================================================================
50
+
51
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
52
+ output plugins.
53
+
54
+ &nbsp;
55
+
56
+ [id="plugins-{type}s-{plugin}-exclude_metrics"]
57
+ ===== `exclude_metrics`
58
+
59
+ * Value type is <<array,array>>
60
+ * Default value is `["%{[^}]+}"]`
61
+
62
+ Exclude regex matched metric names, by default exclude unresolved %{field} strings.
63
+
64
+ [id="plugins-{type}s-{plugin}-fields_are_metrics"]
65
+ ===== `fields_are_metrics`
66
+
67
+ * Value type is <<boolean,boolean>>
68
+ * Default value is `false`
69
+
70
+ An array indicating that these event fields should be treated as metrics
71
+ and will be sent verbatim to Graphite. You may use either `fields_are_metrics`
72
+ or `metrics`, but not both.
73
+
74
+ [id="plugins-{type}s-{plugin}-host"]
75
+ ===== `host`
76
+
77
+ * Value type is <<string,string>>
78
+ * Default value is `"localhost"`
79
+
80
+ The hostname or IP address of the Graphite server.
81
+
82
+ [id="plugins-{type}s-{plugin}-include_metrics"]
83
+ ===== `include_metrics`
84
+
85
+ * Value type is <<array,array>>
86
+ * Default value is `[".*"]`
87
+
88
+ Include only regex matched metric names.
89
+
90
+ [id="plugins-{type}s-{plugin}-metrics"]
91
+ ===== `metrics`
92
+
93
+ * Value type is <<hash,hash>>
94
+ * Default value is `{}`
95
+
96
+ The metric(s) to use. This supports dynamic strings like %{host}
97
+ for metric names and also for values. This is a hash field with key
98
+ being the metric name, value being the metric value. Example:
99
+ [source,ruby]
100
+ metrics => { "%{host}/uptime" => "%{uptime_1m}" }
101
+
102
+ The value will be coerced to a floating point value. Values which cannot be
103
+ coerced will be set to zero (0). You may use either `metrics` or `fields_are_metrics`,
104
+ but not both.
105
+
106
+ [id="plugins-{type}s-{plugin}-metrics_format"]
107
+ ===== `metrics_format`
108
+
109
+ * Value type is <<string,string>>
110
+ * Default value is `"*"`
111
+
112
+ Defines the format of the metric string. The placeholder '*' will be
113
+ replaced with the name of the actual metric.
114
+ [source,ruby]
115
+ metrics_format => "foo.bar.*.sum"
116
+
117
+ NOTE: If no metrics_format is defined, the name of the metric will be used as fallback.
118
+
119
+ [id="plugins-{type}s-{plugin}-nested_object_separator"]
120
+ ===== `nested_object_separator`
121
+
122
+ * Value type is <<string,string>>
123
+ * Default value is `"."`
124
+
125
+ When hashes are passed in as values they are broken out into a dotted notation
126
+ For instance if you configure this plugin with
127
+ # [source,ruby]
128
+ metrics => "mymetrics"
129
+
130
+ and "mymetrics" is a nested hash of '{a => 1, b => { c => 2 }}'
131
+ this plugin will generate two metrics: a => 1, and b.c => 2 .
132
+ If you've specified a 'metrics_format' it will respect that,
133
+ but you still may want control over the separator within these nested key names.
134
+ This config setting changes the separator from the '.' default.
135
+
136
+ [id="plugins-{type}s-{plugin}-port"]
137
+ ===== `port`
138
+
139
+ * Value type is <<number,number>>
140
+ * Default value is `2003`
141
+
142
+ The port to connect to on the Graphite server.
143
+
144
+ [id="plugins-{type}s-{plugin}-reconnect_interval"]
145
+ ===== `reconnect_interval`
146
+
147
+ * Value type is <<number,number>>
148
+ * Default value is `2`
149
+
150
+ Interval between reconnect attempts to Carbon.
151
+
152
+ [id="plugins-{type}s-{plugin}-resend_on_failure"]
153
+ ===== `resend_on_failure`
154
+
155
+ * Value type is <<boolean,boolean>>
156
+ * Default value is `false`
157
+
158
+ Should metrics be resent on failure?
159
+
160
+ [id="plugins-{type}s-{plugin}-timestamp_field"]
161
+ ===== `timestamp_field`
162
+
163
+ * Value type is <<string,string>>
164
+ * Default value is `"@timestamp"`
165
+
166
+ Use this field for the timestamp instead of '@timestamp' which is the
167
+ default. Useful when backfilling or just getting more accurate data into
168
+ graphite since you probably have a cache layer infront of Logstash.
169
+
170
+
171
+
172
+ [id="plugins-{type}s-{plugin}-common-options"]
173
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-graphite'
4
- s.version = '3.1.1'
4
+ s.version = '3.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output allows you to pull metrics from your logs and ship them to Graphite"
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['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
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-output-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
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
@@ -98,6 +98,7 @@ files:
98
98
  - LICENSE
99
99
  - NOTICE.TXT
100
100
  - README.md
101
+ - docs/index.asciidoc
101
102
  - lib/logstash/outputs/graphite.rb
102
103
  - logstash-output-graphite.gemspec
103
104
  - spec/outputs/graphite_spec.rb
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  version: '0'
126
127
  requirements: []
127
128
  rubyforge_project:
128
- rubygems_version: 2.6.3
129
+ rubygems_version: 2.4.8
129
130
  signing_key:
130
131
  specification_version: 4
131
132
  summary: This output allows you to pull metrics from your logs and ship them to Graphite