logstash-output-graphtastic 3.0.0 → 3.0.1

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: f59d3a9fe6181c72efa1dab095a3143dbe8f0f21
4
- data.tar.gz: bd90a2c65e30b853085b491b34962ed640aa406b
3
+ metadata.gz: ce04a141e46f0a53172b616487aae4895e84f735
4
+ data.tar.gz: c07567d72fa83f4aee32cef818539152c3129e6c
5
5
  SHA512:
6
- metadata.gz: a0edb3b0034c1f85540bcf9d084b0b719b0897f40b6351dd7ecb9c376c0d302b265c3a789f4a9f8e7032c34288916a067593378b5c44e9a600c938f9301edd51
7
- data.tar.gz: 1e05bb42eaee71ccb6eb29927953cffa138bf948dc7faa78c1492b3e8907ef63808dd1b9196214020688eda1ed7dc543e103a06bb19a449cf543fd0f1b2f66e1
6
+ metadata.gz: 4249632a2c5110d8ecd659c60ac9254cbf248b6cb86cff4f0f75a71b3d3cee0b00e61ec8a96bdf8e9b6688f55033fa620b4264fc5fb646c9b8df7587e4f30b14
7
+ data.tar.gz: 0ca2f518c1fcbbfa390cdcd12ed78fbecc20eac95322bb5d2c241ad0324a7c35f75148835f7ae6719e9961d381d60dc20e2b57b88f71ecf108cc9f7a3642ff73
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
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,148 @@
1
+ :plugin: graphtastic
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
+ === Graphtastic output plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ A plugin for a newly developed Java/Spring Metrics application
24
+ I didn't really want to code this project but I couldn't find
25
+ a respectable alternative that would also run on any Windows
26
+ machine - which is the problem and why I am not going with Graphite
27
+ and statsd. This application provides multiple integration options
28
+ so as to make its use under your network requirements possible.
29
+ This includes a REST option that is always enabled for your use
30
+ in case you want to write a small script to send the occasional
31
+ metric data.
32
+
33
+ Find GraphTastic here : https://github.com/NickPadilla/GraphTastic
34
+
35
+ [id="plugins-{type}s-{plugin}-options"]
36
+ ==== Graphtastic Output Configuration Options
37
+
38
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
39
+
40
+ [cols="<,<,<",options="header",]
41
+ |=======================================================================
42
+ |Setting |Input type|Required
43
+ | <<plugins-{type}s-{plugin}-batch_number>> |<<number,number>>|No
44
+ | <<plugins-{type}s-{plugin}-context>> |<<string,string>>|No
45
+ | <<plugins-{type}s-{plugin}-error_file>> |<<string,string>>|No
46
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
47
+ | <<plugins-{type}s-{plugin}-integration>> |<<string,string>>, one of `["udp", "tcp", "rmi", "rest"]`|No
48
+ | <<plugins-{type}s-{plugin}-metrics>> |<<hash,hash>>|No
49
+ | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
50
+ | <<plugins-{type}s-{plugin}-retries>> |<<number,number>>|No
51
+ |=======================================================================
52
+
53
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
54
+ output plugins.
55
+
56
+ &nbsp;
57
+
58
+ [id="plugins-{type}s-{plugin}-batch_number"]
59
+ ===== `batch_number`
60
+
61
+ * Value type is <<number,number>>
62
+ * Default value is `60`
63
+
64
+ the number of metrics to send to GraphTastic at one time. 60 seems to be the perfect
65
+ amount for UDP, with default packet size.
66
+
67
+ [id="plugins-{type}s-{plugin}-context"]
68
+ ===== `context`
69
+
70
+ * Value type is <<string,string>>
71
+ * Default value is `"graphtastic"`
72
+
73
+ if using rest as your end point you need to also provide the application url
74
+ it defaults to localhost/graphtastic. You can customize the application url
75
+ by changing the name of the .war file. There are other ways to change the
76
+ application context, but they vary depending on the Application Server in use.
77
+ Please consult your application server documentation for more on application
78
+ contexts.
79
+
80
+ [id="plugins-{type}s-{plugin}-error_file"]
81
+ ===== `error_file`
82
+
83
+ * Value type is <<string,string>>
84
+ * Default value is `""`
85
+
86
+ setting allows you to specify where we save errored transactions
87
+ this makes the most sense at this point - will need to decide
88
+ on how we reintegrate these error metrics
89
+ NOT IMPLEMENTED!
90
+
91
+ [id="plugins-{type}s-{plugin}-host"]
92
+ ===== `host`
93
+
94
+ * Value type is <<string,string>>
95
+ * Default value is `"127.0.0.1"`
96
+
97
+ host for the graphtastic server - defaults to 127.0.0.1
98
+
99
+ [id="plugins-{type}s-{plugin}-integration"]
100
+ ===== `integration`
101
+
102
+ * Value can be any of: `udp`, `tcp`, `rmi`, `rest`
103
+ * Default value is `"udp"`
104
+
105
+ options are udp(fastest - default) - rmi(faster) - rest(fast) - tcp(don't use TCP yet - some problems - errors out on linux)
106
+
107
+ [id="plugins-{type}s-{plugin}-metrics"]
108
+ ===== `metrics`
109
+
110
+ * Value type is <<hash,hash>>
111
+ * Default value is `{}`
112
+
113
+ metrics hash - you will provide a name for your metric and the metric
114
+ data as key value pairs. so for example:
115
+
116
+ [source,ruby]
117
+ metrics => { "Response" => "%{response}" }
118
+
119
+ example for the logstash config
120
+
121
+ [source,ruby]
122
+ metrics => [ "Response", "%{response}" ]
123
+
124
+ NOTE: you can also use the dynamic fields for the key value as well as the actual value
125
+
126
+ [id="plugins-{type}s-{plugin}-port"]
127
+ ===== `port`
128
+
129
+ * Value type is <<number,number>>
130
+ * There is no default value for this setting.
131
+
132
+ port for the graphtastic instance - defaults to 1199 for RMI, 1299 for TCP, 1399 for UDP, and 8080 for REST
133
+
134
+ [id="plugins-{type}s-{plugin}-retries"]
135
+ ===== `retries`
136
+
137
+ * Value type is <<number,number>>
138
+ * Default value is `1`
139
+
140
+ number of attempted retry after send error - currently only way to integrate
141
+ errored transactions - should try and save to a file or later consumption
142
+ either by graphtastic utility or by this program after connectivity is
143
+ ensured to be established.
144
+
145
+
146
+
147
+ [id="plugins-{type}s-{plugin}-common-options"]
148
+ include::{include_path}/{type}.asciidoc[]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-graphtastic'
3
- s.version = '3.0.0'
3
+ s.version = '3.0.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Send metrics to GraphTastic"
6
6
  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"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.require_paths = ["lib"]
11
11
 
12
12
  # Files
13
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
13
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
14
 
15
15
  # Tests
16
16
  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-graphtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-09 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
@@ -56,6 +56,7 @@ files:
56
56
  - LICENSE
57
57
  - NOTICE.TXT
58
58
  - README.md
59
+ - docs/index.asciidoc
59
60
  - lib/logstash/outputs/graphtastic.rb
60
61
  - logstash-output-graphtastic.gemspec
61
62
  - spec/outputs/graphtastic_spec.rb