fluent-plugin-google-cloud 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +94 -0
- data/fluent-plugin-google-cloud.gemspec +3 -5
- data/lib/fluent/plugin/out_google_cloud.rb +1 -1
- data/test/plugin/test_out_google_cloud.rb +3 -6
- metadata +15 -40
data/Gemfile.lock
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
fluent-plugin-google-cloud (0.2.2)
|
5
|
+
fluentd (>= 0.10)
|
6
|
+
google-api-client (>= 0.8)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activesupport (3.2.21)
|
12
|
+
i18n (~> 0.6, >= 0.6.4)
|
13
|
+
multi_json (~> 1.0)
|
14
|
+
addressable (2.3.8)
|
15
|
+
autoparse (0.3.3)
|
16
|
+
addressable (>= 2.3.1)
|
17
|
+
extlib (>= 0.9.15)
|
18
|
+
multi_json (>= 1.0.0)
|
19
|
+
cool.io (1.3.0)
|
20
|
+
crack (0.4.2)
|
21
|
+
safe_yaml (~> 1.0.0)
|
22
|
+
extlib (0.9.16)
|
23
|
+
faraday (0.9.1)
|
24
|
+
multipart-post (>= 1.2, < 3)
|
25
|
+
fluentd (0.12.7)
|
26
|
+
cool.io (>= 1.2.2, < 2.0.0)
|
27
|
+
http_parser.rb (>= 0.5.1, < 0.7.0)
|
28
|
+
json (>= 1.4.3)
|
29
|
+
msgpack (>= 0.5.11, < 0.6.0)
|
30
|
+
sigdump (~> 0.2.2)
|
31
|
+
string-scrub (>= 0.0.3)
|
32
|
+
tzinfo (>= 1.0.0)
|
33
|
+
tzinfo-data (>= 1.0.0)
|
34
|
+
yajl-ruby (~> 1.0)
|
35
|
+
google-api-client (0.8.4)
|
36
|
+
activesupport (~> 3.2)
|
37
|
+
addressable (~> 2.3)
|
38
|
+
autoparse (~> 0.3)
|
39
|
+
extlib (~> 0.9)
|
40
|
+
faraday (~> 0.9)
|
41
|
+
googleauth (~> 0.3)
|
42
|
+
launchy (~> 2.4)
|
43
|
+
multi_json (~> 1.10)
|
44
|
+
retriable (~> 1.4)
|
45
|
+
signet (~> 0.6)
|
46
|
+
googleauth (0.4.0)
|
47
|
+
faraday (~> 0.9)
|
48
|
+
jwt (~> 1.4)
|
49
|
+
logging (~> 1.8)
|
50
|
+
memoist (~> 0.11)
|
51
|
+
multi_json (= 1.11)
|
52
|
+
signet (~> 0.6)
|
53
|
+
http_parser.rb (0.6.0)
|
54
|
+
i18n (0.7.0)
|
55
|
+
json (1.8.2)
|
56
|
+
jwt (1.4.1)
|
57
|
+
launchy (2.4.3)
|
58
|
+
addressable (~> 2.3)
|
59
|
+
little-plugger (1.1.3)
|
60
|
+
logging (1.8.2)
|
61
|
+
little-plugger (>= 1.1.3)
|
62
|
+
multi_json (>= 1.8.4)
|
63
|
+
memoist (0.11.0)
|
64
|
+
msgpack (0.5.11)
|
65
|
+
multi_json (1.11.0)
|
66
|
+
multipart-post (2.0.0)
|
67
|
+
rake (10.4.2)
|
68
|
+
retriable (1.4.1)
|
69
|
+
safe_yaml (1.0.4)
|
70
|
+
sigdump (0.2.2)
|
71
|
+
signet (0.6.0)
|
72
|
+
addressable (~> 2.3)
|
73
|
+
extlib (~> 0.9)
|
74
|
+
faraday (~> 0.9)
|
75
|
+
jwt (~> 1.0)
|
76
|
+
multi_json (~> 1.10)
|
77
|
+
string-scrub (0.0.5)
|
78
|
+
thread_safe (0.3.5)
|
79
|
+
tzinfo (1.2.2)
|
80
|
+
thread_safe (~> 0.1)
|
81
|
+
tzinfo-data (1.2015.2)
|
82
|
+
tzinfo (>= 1.0.0)
|
83
|
+
webmock (1.21.0)
|
84
|
+
addressable (>= 2.3.6)
|
85
|
+
crack (>= 0.3.2)
|
86
|
+
yajl-ruby (1.2.1)
|
87
|
+
|
88
|
+
PLATFORMS
|
89
|
+
ruby
|
90
|
+
|
91
|
+
DEPENDENCIES
|
92
|
+
fluent-plugin-google-cloud!
|
93
|
+
rake (>= 10.3.2)
|
94
|
+
webmock (>= 1.17.0)
|
@@ -4,7 +4,7 @@ Gem::Specification.new do |gem|
|
|
4
4
|
gem.summary = %q{Fluentd plugin to stream logs to the Google Cloud Platform's logging API}
|
5
5
|
gem.homepage = 'https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud'
|
6
6
|
gem.license = 'Apache 2.0'
|
7
|
-
gem.version = '0.2.
|
7
|
+
gem.version = '0.2.2'
|
8
8
|
gem.authors = ['Todd Derr', 'Alex Robinson']
|
9
9
|
gem.email = ['salty@google.com']
|
10
10
|
|
@@ -12,10 +12,8 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test)})
|
13
13
|
gem.require_paths = ['lib']
|
14
14
|
|
15
|
-
gem.add_runtime_dependency 'fluentd', '
|
16
|
-
gem.add_runtime_dependency 'google-api-client', '
|
17
|
-
gem.add_runtime_dependency 'signet', '~> 0.5.0'
|
15
|
+
gem.add_runtime_dependency 'fluentd', '>= 0.10'
|
16
|
+
gem.add_runtime_dependency 'google-api-client', '>= 0.8'
|
18
17
|
gem.add_development_dependency "rake", '>= 10.3.2'
|
19
18
|
gem.add_development_dependency "webmock", '>= 1.17.0'
|
20
|
-
gem.add_development_dependency "minitest", '~> 4.0'
|
21
19
|
end
|
@@ -240,7 +240,7 @@ module Fluent
|
|
240
240
|
def init_api_client
|
241
241
|
@client = Google::APIClient.new(
|
242
242
|
:application_name => 'Fluentd Google Cloud Logging plugin',
|
243
|
-
:application_version => '0.2.
|
243
|
+
:application_version => '0.2.2',
|
244
244
|
:retries => 1)
|
245
245
|
|
246
246
|
if @auth_method == 'private_key'
|
@@ -31,7 +31,8 @@ class GoogleCloudOutputTest < Test::Unit::TestCase
|
|
31
31
|
with(:body => hash_including({:grant_type => AUTH_GRANT_TYPE})).
|
32
32
|
to_return(:body => "{\"access_token\": \"#{FAKE_AUTH_TOKEN}\"}",
|
33
33
|
:status => 200,
|
34
|
-
:headers => {'Content-Length' => FAKE_AUTH_TOKEN
|
34
|
+
:headers => {'Content-Length' => FAKE_AUTH_TOKEN,
|
35
|
+
'Content-Type' => 'application/json' })
|
35
36
|
|
36
37
|
@logs_sent = []
|
37
38
|
end
|
@@ -211,16 +212,12 @@ class GoogleCloudOutputTest < Test::Unit::TestCase
|
|
211
212
|
def test_client_error
|
212
213
|
# The API Client should not retry this and the plugin should consume
|
213
214
|
# the exception.
|
214
|
-
# Note that the current release of the API client (0.7-1) does actually
|
215
|
-
# retry the request; this appears to be due to a bug which has since been
|
216
|
-
# fixed but not released (see below).
|
217
215
|
stub_request(:post, uri_for_log(COMPUTE_PARAMS)).to_return(
|
218
216
|
:status => 400, :body => "Bad Request")
|
219
217
|
d = create_driver(PRIVATE_KEY_CONFIG)
|
220
218
|
d.emit({'message' => log_entry(0)})
|
221
219
|
d.run
|
222
|
-
|
223
|
-
assert_requested(:post, uri_for_log(COMPUTE_PARAMS), :times => 2)
|
220
|
+
assert_requested(:post, uri_for_log(COMPUTE_PARAMS), :times => 1)
|
224
221
|
end
|
225
222
|
|
226
223
|
# helper for the ClientError retriable special cases below.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-google-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,14 +10,14 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-03-
|
13
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '0.10'
|
23
23
|
type: :runtime
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '0.10'
|
31
31
|
- !ruby/object:Gem::Dependency
|
@@ -33,33 +33,17 @@ dependencies:
|
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
none: false
|
35
35
|
requirements:
|
36
|
-
- -
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: '0.7'
|
39
|
-
type: :runtime
|
40
|
-
prerelease: false
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.7'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: signet
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
36
|
+
- - ! '>='
|
53
37
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
38
|
+
version: '0.8'
|
55
39
|
type: :runtime
|
56
40
|
prerelease: false
|
57
41
|
version_requirements: !ruby/object:Gem::Requirement
|
58
42
|
none: false
|
59
43
|
requirements:
|
60
|
-
- -
|
44
|
+
- - ! '>='
|
61
45
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.
|
46
|
+
version: '0.8'
|
63
47
|
- !ruby/object:Gem::Dependency
|
64
48
|
name: rake
|
65
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,22 +76,6 @@ dependencies:
|
|
92
76
|
- - ! '>='
|
93
77
|
- !ruby/object:Gem::Version
|
94
78
|
version: 1.17.0
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: minitest
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
|
-
requirements:
|
100
|
-
- - ~>
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '4.0'
|
103
|
-
type: :development
|
104
|
-
prerelease: false
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ~>
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '4.0'
|
111
79
|
description: Fluentd plugin to stream logs to the Google Cloud Platform's logging
|
112
80
|
API, which will make them viewable in the Developer Console's log viewer and can
|
113
81
|
optionally store them in Google Cloud Storage and/or BigQuery. This is an official
|
@@ -125,6 +93,7 @@ files:
|
|
125
93
|
- Rakefile
|
126
94
|
- fluent-plugin-google-cloud.gemspec
|
127
95
|
- lib/fluent/plugin/out_google_cloud.rb
|
96
|
+
- Gemfile.lock
|
128
97
|
- Gemfile
|
129
98
|
- README.rdoc
|
130
99
|
homepage: https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud
|
@@ -140,12 +109,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
109
|
- - ! '>='
|
141
110
|
- !ruby/object:Gem::Version
|
142
111
|
version: '0'
|
112
|
+
segments:
|
113
|
+
- 0
|
114
|
+
hash: 2434444153919230667
|
143
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
116
|
none: false
|
145
117
|
requirements:
|
146
118
|
- - ! '>='
|
147
119
|
- !ruby/object:Gem::Version
|
148
120
|
version: '0'
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
hash: 2434444153919230667
|
149
124
|
requirements: []
|
150
125
|
rubyforge_project:
|
151
126
|
rubygems_version: 1.8.23
|