fluent-plugin-google-cloud 0.7.14 → 0.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/fluent-plugin-google-cloud.gemspec +1 -1
- data/lib/fluent/plugin/out_google_cloud.rb +22 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7deed85b438bb17342217bdf9b4c849577217a70702005b8912f07e854e2b62f
|
4
|
+
data.tar.gz: 37f6366b74c5f59d1a5ded992cb16d79eeb16ed61e7f99d50b28d68527e488f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec2439d5df4db5196e11680d2d28da15a7602e234272536622bc24389c69c46361a07694b76dd77c2a7fb285c2bdfaf18153b9c0b692e99bc2c931d498042ba
|
7
|
+
data.tar.gz: 0be1859cd6518819843caf5ab391e3e406f13a60d7c91672bcad79ecbd9242f45875bd1199a47758a6bfed8a957687c9d977771a07e0afe389ec7533bac55672
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-google-cloud (0.7.
|
4
|
+
fluent-plugin-google-cloud (0.7.15)
|
5
5
|
fluentd (= 1.4.2)
|
6
6
|
google-api-client (= 0.28.4)
|
7
7
|
google-cloud-logging (= 1.6.0)
|
@@ -55,7 +55,7 @@ GEM
|
|
55
55
|
google-gax (~> 1.3)
|
56
56
|
googleapis-common-protos-types (>= 1.0.2)
|
57
57
|
stackdriver-core (~> 1.3)
|
58
|
-
google-gax (1.
|
58
|
+
google-gax (1.7.0)
|
59
59
|
google-protobuf (~> 3.2)
|
60
60
|
googleapis-common-protos (>= 1.3.5, < 2.0)
|
61
61
|
googleauth (>= 0.6.2, < 0.10.0)
|
@@ -100,7 +100,7 @@ GEM
|
|
100
100
|
powerpack (0.1.2)
|
101
101
|
prometheus-client (0.7.1)
|
102
102
|
quantile (~> 0.2.0)
|
103
|
-
public_suffix (3.1.
|
103
|
+
public_suffix (3.1.1)
|
104
104
|
quantile (0.2.1)
|
105
105
|
rainbow (2.2.2)
|
106
106
|
rake
|
@@ -135,7 +135,7 @@ GEM
|
|
135
135
|
thread_safe (0.3.6)
|
136
136
|
tzinfo (1.2.5)
|
137
137
|
thread_safe (~> 0.1)
|
138
|
-
tzinfo-data (1.2019.
|
138
|
+
tzinfo-data (1.2019.2)
|
139
139
|
tzinfo (>= 1.0.0)
|
140
140
|
uber (0.1.0)
|
141
141
|
unicode-display_width (1.6.0)
|
@@ -10,7 +10,7 @@ eos
|
|
10
10
|
gem.homepage =
|
11
11
|
'https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud'
|
12
12
|
gem.license = 'Apache-2.0'
|
13
|
-
gem.version = '0.7.
|
13
|
+
gem.version = '0.7.15'
|
14
14
|
gem.authors = ['Stackdriver Agents Team']
|
15
15
|
gem.email = ['stackdriver-agents@google.com']
|
16
16
|
gem.required_ruby_version = Gem::Requirement.new('>= 2.2')
|
@@ -40,12 +40,25 @@ module Google
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
# Patch the gcloud command used by googleauth to avoid spamming stderr.
|
44
43
|
module Google
|
45
44
|
module Auth
|
45
|
+
# Disable gcloud lookup in googleauth to avoid picking up its project id.
|
46
46
|
module CredentialsLoader
|
47
|
-
|
48
|
-
|
47
|
+
# Set $VERBOSE to nil to mute the "already initialized constant" warnings.
|
48
|
+
warn_level = $VERBOSE
|
49
|
+
begin
|
50
|
+
$VERBOSE = nil
|
51
|
+
# These constants are used to invoke gcloud on Linux and Windows,
|
52
|
+
# respectively. Ideally, we would have overridden
|
53
|
+
# CredentialsLoader.load_gcloud_project_id, but we cannot catch it
|
54
|
+
# before it's invoked via "require 'googleauth'". So we override the
|
55
|
+
# constants instead.
|
56
|
+
GCLOUD_POSIX_COMMAND = '/bin/true'.freeze
|
57
|
+
GCLOUD_WINDOWS_COMMAND = 'cd .'.freeze
|
58
|
+
GCLOUD_CONFIG_COMMAND = ''.freeze
|
59
|
+
ensure
|
60
|
+
$VERBOSE = warn_level
|
61
|
+
end
|
49
62
|
end
|
50
63
|
end
|
51
64
|
end
|
@@ -1236,8 +1249,10 @@ module Fluent
|
|
1236
1249
|
|
1237
1250
|
{}
|
1238
1251
|
rescue StandardError => e
|
1239
|
-
|
1240
|
-
|
1252
|
+
if [Platform::GCE, Platform::EC2].include?(@platform)
|
1253
|
+
@log.error "Failed to set monitored resource labels for #{type}: ",
|
1254
|
+
error: e
|
1255
|
+
end
|
1241
1256
|
{}
|
1242
1257
|
end
|
1243
1258
|
|
@@ -1411,12 +1426,12 @@ module Fluent
|
|
1411
1426
|
resource.type = 'container' if resource.type == 'gke_container'
|
1412
1427
|
return resource
|
1413
1428
|
end
|
1429
|
+
@log.debug('Failed to retrieve monitored resource from Metadata' \
|
1430
|
+
" Agent with local_resource_id #{local_resource_id}.")
|
1414
1431
|
end
|
1415
1432
|
# Fall back to constructing monitored resource locally.
|
1416
1433
|
# TODO(qingling128): This entire else clause is temporary until we
|
1417
1434
|
# implement buffering and caching.
|
1418
|
-
@log.debug('Failed to retrieve monitored resource from Metadata' \
|
1419
|
-
" Agent with local_resource_id #{local_resource_id}.")
|
1420
1435
|
construct_k8s_resource_locally(local_resource_id)
|
1421
1436
|
end
|
1422
1437
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-google-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stackdriver Agents Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|