logstash-output-circonus 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 +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +93 -0
- data/logstash-output-circonus.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc114ba81c3dcbcef33fe78833a4e581e7289c6
|
4
|
+
data.tar.gz: 85a6ebceb0efaaaa3f5dcfb0a8fa1fcca05d503c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d1bb0cb05064f05cf3811143d3376e5af38525b40c8ebe986d19b3d4874553b691042d61f94520a51051233f2298bc141940c050a15b51c6a2d2e73b4231b6
|
7
|
+
data.tar.gz: 7d9e0b6f99d6b50e72b6f907b77ee752a2bb2b8a02c270db6379d817ba82f8f8cb470551b860c99e65362a836bd1eb46737264348571592aad1850681878050b
|
data/Gemfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
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
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
:plugin: circonus
|
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
|
+
=== Circonus output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
[id="plugins-{type}s-{plugin}-options"]
|
26
|
+
==== Circonus Output Configuration Options
|
27
|
+
|
28
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
29
|
+
|
30
|
+
[cols="<,<,<",options="header",]
|
31
|
+
|=======================================================================
|
32
|
+
|Setting |Input type|Required
|
33
|
+
| <<plugins-{type}s-{plugin}-annotation>> |<<hash,hash>>|Yes
|
34
|
+
| <<plugins-{type}s-{plugin}-api_token>> |<<string,string>>|Yes
|
35
|
+
| <<plugins-{type}s-{plugin}-app_name>> |<<string,string>>|Yes
|
36
|
+
|=======================================================================
|
37
|
+
|
38
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
39
|
+
output plugins.
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
[id="plugins-{type}s-{plugin}-annotation"]
|
44
|
+
===== `annotation`
|
45
|
+
|
46
|
+
* This is a required setting.
|
47
|
+
* Value type is <<hash,hash>>
|
48
|
+
* Default value is `{}`
|
49
|
+
|
50
|
+
Annotations
|
51
|
+
Registers an annotation with Circonus
|
52
|
+
The only required field is `title` and `description`.
|
53
|
+
`start` and `stop` will be set to the event timestamp.
|
54
|
+
You can add any other optional annotation values as well.
|
55
|
+
All values will be passed through `event.sprintf`
|
56
|
+
|
57
|
+
Example:
|
58
|
+
[source,ruby]
|
59
|
+
["title":"Logstash event", "description":"Logstash event for %{host}"]
|
60
|
+
or
|
61
|
+
[source,ruby]
|
62
|
+
["title":"Logstash event", "description":"Logstash event for %{host}", "parent_id", "1"]
|
63
|
+
|
64
|
+
[id="plugins-{type}s-{plugin}-api_token"]
|
65
|
+
===== `api_token`
|
66
|
+
|
67
|
+
* This is a required setting.
|
68
|
+
* Value type is <<string,string>>
|
69
|
+
* There is no default value for this setting.
|
70
|
+
|
71
|
+
This output lets you send annotations to
|
72
|
+
Circonus based on Logstash events
|
73
|
+
|
74
|
+
Your Circonus API Token
|
75
|
+
|
76
|
+
[id="plugins-{type}s-{plugin}-app_name"]
|
77
|
+
===== `app_name`
|
78
|
+
|
79
|
+
* This is a required setting.
|
80
|
+
* Value type is <<string,string>>
|
81
|
+
* There is no default value for this setting.
|
82
|
+
|
83
|
+
Your Circonus App name
|
84
|
+
This will be passed through `event.sprintf`
|
85
|
+
so variables are allowed here:
|
86
|
+
|
87
|
+
Example:
|
88
|
+
`app_name => "%{myappname}"`
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
93
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-circonus'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This output lets you send annotations to Circonus based on Logstash events"
|
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[
|
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-circonus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.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:
|
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/circonus.rb
|
60
61
|
- logstash-output-circonus.gemspec
|
61
62
|
- spec/outputs/circonus_spec.rb
|