fluent-plugin-chef-api 0.5.0 → 0.5.1
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/fluent-plugin-chef-api.gemspec +1 -1
- data/lib/fluent/plugin/in_chef_api.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0ec63562f649c34c1192372ba89e946190dd94d
|
4
|
+
data.tar.gz: 1791e941960d83e262b538ef9a5b1db4cff9506a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b43e19595dd67509942094d1e52af0c39815c25d979921968748f5722014154b085592fd25266dcd99884a706f76400ebb7fff8e77023ce7a8319f768838f8
|
7
|
+
data.tar.gz: e88d95406f913a9f4541fa4f31468fcb071a7beda38f4cd92c250641ed95b4a5f67bd74dd1b9134ad801de3529463fbd2e5828350cb79f7e46a1836c34cd6dad
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-chef-api"
|
7
|
-
spec.version = "0.5.
|
7
|
+
spec.version = "0.5.1"
|
8
8
|
spec.authors = ["Yamashita Yuu"]
|
9
9
|
spec.email = ["peek824545201@gmail.com"]
|
10
10
|
spec.license = "Apache-2.0"
|
@@ -88,7 +88,7 @@ module Fluent
|
|
88
88
|
if @monitor_multi
|
89
89
|
run_once(connection)
|
90
90
|
else
|
91
|
-
run_once_single(
|
91
|
+
run_once_single(connection)
|
92
92
|
end
|
93
93
|
rescue => error
|
94
94
|
$log.warn("failed to fetch metrics: #{error.class}: #{error.message}")
|
@@ -102,8 +102,9 @@ module Fluent
|
|
102
102
|
|
103
103
|
def run_once_single(connection)
|
104
104
|
data = @default_values.dup
|
105
|
-
node = connection.nodes.fetch(
|
106
|
-
|
105
|
+
if node = connection.nodes.fetch(connection.client)
|
106
|
+
emit_node_metrics(node, data)
|
107
|
+
end
|
107
108
|
end
|
108
109
|
|
109
110
|
def run_once(connection)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-chef-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yamashita Yuu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|