logstash-output-datadog_metrics 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 +130 -0
- data/logstash-output-datadog_metrics.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: ef04ec9cb2f2c563f7001a554f2bb30230d4d101
|
4
|
+
data.tar.gz: 685454a3e4e7e7116f2b4ca2c5b0895e2c4f7dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6fc5b6c25b189408318502995964e15932a4b666f75497ff485d03a5c31ce4521057d435695b9b1d4fa93e4b1698a192bc8c239278cd9c62e8d9a08e03c7b9c
|
7
|
+
data.tar.gz: 4db96cf173be3a3f6f57f21af2011874933809fe5e5818dd140cfe3473e94cc9be7efbe1420d5c904fc06bfb0cf4a5443bbd877a37516b5a82ca5894f969ee8d
|
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,130 @@
|
|
1
|
+
:plugin: datadog_metrics
|
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
|
+
=== Datadog_metrics output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
This output lets you send metrics to
|
24
|
+
DataDogHQ based on Logstash events.
|
25
|
+
Default `queue_size` and `timeframe` are low in order to provide near realtime alerting.
|
26
|
+
If you do not use Datadog for alerting, consider raising these thresholds.
|
27
|
+
|
28
|
+
[id="plugins-{type}s-{plugin}-options"]
|
29
|
+
==== Datadog_metrics Output Configuration Options
|
30
|
+
|
31
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
32
|
+
|
33
|
+
[cols="<,<,<",options="header",]
|
34
|
+
|=======================================================================
|
35
|
+
|Setting |Input type|Required
|
36
|
+
| <<plugins-{type}s-{plugin}-api_key>> |<<string,string>>|Yes
|
37
|
+
| <<plugins-{type}s-{plugin}-dd_tags>> |<<array,array>>|No
|
38
|
+
| <<plugins-{type}s-{plugin}-device>> |<<string,string>>|No
|
39
|
+
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
|
40
|
+
| <<plugins-{type}s-{plugin}-metric_name>> |<<string,string>>|No
|
41
|
+
| <<plugins-{type}s-{plugin}-metric_type>> |<<string,string>>, one of `["gauge", "counter", "%{metric_type}"]`|No
|
42
|
+
| <<plugins-{type}s-{plugin}-metric_value>> |<<,>>|No
|
43
|
+
| <<plugins-{type}s-{plugin}-queue_size>> |<<number,number>>|No
|
44
|
+
| <<plugins-{type}s-{plugin}-timeframe>> |<<number,number>>|No
|
45
|
+
|=======================================================================
|
46
|
+
|
47
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
48
|
+
output plugins.
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
[id="plugins-{type}s-{plugin}-api_key"]
|
53
|
+
===== `api_key`
|
54
|
+
|
55
|
+
* This is a required setting.
|
56
|
+
* Value type is <<string,string>>
|
57
|
+
* There is no default value for this setting.
|
58
|
+
|
59
|
+
Your DatadogHQ API key. https://app.datadoghq.com/account/settings#api
|
60
|
+
|
61
|
+
[id="plugins-{type}s-{plugin}-dd_tags"]
|
62
|
+
===== `dd_tags`
|
63
|
+
|
64
|
+
* Value type is <<array,array>>
|
65
|
+
* There is no default value for this setting.
|
66
|
+
|
67
|
+
Set any custom tags for this event,
|
68
|
+
default are the Logstash tags if any.
|
69
|
+
|
70
|
+
[id="plugins-{type}s-{plugin}-device"]
|
71
|
+
===== `device`
|
72
|
+
|
73
|
+
* Value type is <<string,string>>
|
74
|
+
* Default value is `"%{metric_device}"`
|
75
|
+
|
76
|
+
The name of the device that produced the metric.
|
77
|
+
|
78
|
+
[id="plugins-{type}s-{plugin}-host"]
|
79
|
+
===== `host`
|
80
|
+
|
81
|
+
* Value type is <<string,string>>
|
82
|
+
* Default value is `"%{host}"`
|
83
|
+
|
84
|
+
The name of the host that produced the metric.
|
85
|
+
|
86
|
+
[id="plugins-{type}s-{plugin}-metric_name"]
|
87
|
+
===== `metric_name`
|
88
|
+
|
89
|
+
* Value type is <<string,string>>
|
90
|
+
* Default value is `"%{metric_name}"`
|
91
|
+
|
92
|
+
The name of the time series.
|
93
|
+
|
94
|
+
[id="plugins-{type}s-{plugin}-metric_type"]
|
95
|
+
===== `metric_type`
|
96
|
+
|
97
|
+
* Value can be any of: `gauge`, `counter`, `%{metric_type}`
|
98
|
+
* Default value is `"%{metric_type}"`
|
99
|
+
|
100
|
+
The type of the metric.
|
101
|
+
|
102
|
+
[id="plugins-{type}s-{plugin}-metric_value"]
|
103
|
+
===== `metric_value`
|
104
|
+
|
105
|
+
* Value type is <<string,string>>
|
106
|
+
* Default value is `"%{metric_value}"`
|
107
|
+
|
108
|
+
The value.
|
109
|
+
|
110
|
+
[id="plugins-{type}s-{plugin}-queue_size"]
|
111
|
+
===== `queue_size`
|
112
|
+
|
113
|
+
* Value type is <<number,number>>
|
114
|
+
* Default value is `10`
|
115
|
+
|
116
|
+
How many events to queue before flushing to Datadog
|
117
|
+
prior to schedule set in `@timeframe`
|
118
|
+
|
119
|
+
[id="plugins-{type}s-{plugin}-timeframe"]
|
120
|
+
===== `timeframe`
|
121
|
+
|
122
|
+
* Value type is <<number,number>>
|
123
|
+
* Default value is `10`
|
124
|
+
|
125
|
+
How often (in seconds) to flush queued events to Datadog
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
130
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-datadog_metrics'
|
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 metrics to DataDogHQ 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-datadog_metrics
|
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
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/outputs/datadog_metrics.rb
|
74
75
|
- logstash-output-datadog_metrics.gemspec
|
75
76
|
- spec/outputs/datadog_metrics_spec.rb
|