fluent-plugin-metricsense 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/VERSION +1 -1
- data/lib/fluent/plugin/backends/datadog_backend.rb +12 -5
- metadata +16 -17
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MjI0NWVmZjJlZDYzY2U4MTg1NWVmZTBiYmM2NDEyOTQyNzFlMTFlZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 59764f3c7ed4fbb6497511dfbb4192a00a99fc68
|
4
|
+
data.tar.gz: 6bd4a75bad047e5ddb75b254cfd3b61e0b9ba6f7
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MzgxOWVmZmYxZTQ4MmRjODVjNjNhYTFiNGVjNTg0MzgxOGMxNmViOWY4YWE1
|
11
|
-
YzUwMjAzM2FhMzNkY2Q1NDllMjQ0YTJiZDYyNGQzOTNkNThhMzg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZjQzM2NjZTgwODFjZTNlMDk5Mzc3M2NlYTQ5ZmJhOWQzNzc1MjRhMTRkYzRk
|
14
|
-
ZjVhMWE4ZDdiYmRjMDYyZmM5MTFiYjg2Yjc1ZDFjMzcyOGU3MDdkZTMxODQy
|
15
|
-
M2RmNjg1OGExMTUwZTQ2Njk2MDFiNWI1Njk3ODNiOTM4YTMyNGY=
|
6
|
+
metadata.gz: 2af8c1065e6fb16a8072dd519bc18b542c096a1503eabdea24db3984afab92a863af5e8c3dfe4c98c5173da503aa6e6ca709b7e8208d89079cedab878b8e28a2
|
7
|
+
data.tar.gz: f9b5f6559aed2936f955571a41f07536c8d5ebe81ae733b2bc979df2a45a28bf953903019beca9a54aae95ddd310dd23979cb69facede28e5df8b47d2e277559
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.13
|
@@ -23,6 +23,8 @@ module Fluent::MetricSenseOutput::Backends
|
|
23
23
|
config_param :dd_api_key, :string
|
24
24
|
config_param :dd_app_key, :string, :default => nil
|
25
25
|
config_param :host, :string, :default => nil
|
26
|
+
config_param :device, :string, :default => nil
|
27
|
+
config_param :timeout, :integer, :default => 5
|
26
28
|
config_param :tags, :array, :default => []
|
27
29
|
config_param :batch_size, :integer, :default => 200
|
28
30
|
|
@@ -38,9 +40,8 @@ module Fluent::MetricSenseOutput::Backends
|
|
38
40
|
raise Fluent::ConfigError, "missing Datadog API key"
|
39
41
|
end
|
40
42
|
|
41
|
-
|
42
|
-
|
43
|
-
@dog = Dogapi::Client.new(*client_args)
|
43
|
+
silent = false # raise exceptions on dogapi errors
|
44
|
+
@dog = Dogapi::Client.new(@dd_api_key, @dd_app_key, @host, @device, silent, @timeout)
|
44
45
|
end
|
45
46
|
|
46
47
|
def write(data)
|
@@ -74,9 +75,15 @@ module Fluent::MetricSenseOutput::Backends
|
|
74
75
|
options[:type] = "gauge"
|
75
76
|
|
76
77
|
log.debug("datadog emit points: metric=#{metric}, points=#{points.inspect}, options=#{options.inspect}")
|
77
|
-
|
78
|
+
begin
|
79
|
+
code, response = @dog.emit_points(metric, points, options)
|
80
|
+
rescue Exception => error
|
81
|
+
# dogapi may raise an Exception.
|
82
|
+
# fluentd expects StandardError as retriable error, though.
|
83
|
+
raise("datadog error: #{error.class}: #{error.message}")
|
84
|
+
end
|
78
85
|
if code.to_i / 100 != 2
|
79
|
-
raise("datadog
|
86
|
+
raise("datadog error: HTTP #{code}: #{response.inspect}")
|
80
87
|
end
|
81
88
|
end
|
82
89
|
end
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-metricsense
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.10.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.10.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dogapi
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.8.7
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.8.7
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.0.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.5.4
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.5.4
|
83
83
|
description: MetricSense - application metrics aggregation plugin for Fluentd
|
@@ -86,7 +86,7 @@ executables: []
|
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
|
-
- .gitignore
|
89
|
+
- ".gitignore"
|
90
90
|
- Gemfile
|
91
91
|
- LICENSE
|
92
92
|
- README.rdoc
|
@@ -108,19 +108,18 @@ require_paths:
|
|
108
108
|
- lib
|
109
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- -
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.4.4
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: MetricSense - application metrics aggregation plugin for Fluentd
|
125
125
|
test_files: []
|
126
|
-
has_rdoc: false
|