fluent-plugin-specinfra_inventory 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 325affa217ecd8c5f86d51dd3f3f58f22109987f
|
4
|
+
data.tar.gz: 70ca87f72c046b39af42a84369e7bfba3d7643c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28c37fffa02f61402657823d1a2c9c1ee48a10182b186cb2aa1db190e3b8dcaf93cc73a9d5606a83de7903ee433593a14ced51c33a5fc2602b5ec35d72bb0946
|
7
|
+
data.tar.gz: 3f4113a574a90ba4eee593afe8a22714744318a215389b2e899d2d7513d7ee1d2fa52dbf8a41cd32dc62558477d4584fc34bf7e0c6c11e5dce55b624c1fc2e5d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# fluent-plugin-specinfra_inventory
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/fluent-plugin-specinfra_inventory.svg)](http://badge.fury.io/rb/fluent-plugin-specinfra_inventory)
|
3
3
|
|
4
|
-
Specinfra Host Inventory Plugin for [Fluentd](http://github.com/fluent/fluentd)
|
4
|
+
[Specinfra](https://github.com/serverspec/specinfra) Host Inventory Plugin for [Fluentd](http://github.com/fluent/fluentd)
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
@@ -46,6 +46,7 @@ defualt: `60`
|
|
46
46
|
### tag_prefix
|
47
47
|
Prefix of tags of events.
|
48
48
|
Event tags are added together inventory key at the end. like: `example.prefix.cpu`
|
49
|
+
If you set `true` to `combine` option, It does not added the key at the end.
|
49
50
|
default: `specinfra.inventory`
|
50
51
|
|
51
52
|
### backend
|
@@ -54,7 +55,8 @@ default: `exec`
|
|
54
55
|
|
55
56
|
### inventory_keys
|
56
57
|
Key of Host Inventory.
|
57
|
-
If you access the key on nested Hash, you should separated by `.`
|
58
|
+
If you access the key on nested Hash, you should separated by `.`
|
59
|
+
default: All available keys of `Specinfra::HostInventory`
|
58
60
|
|
59
61
|
### combine
|
60
62
|
Combining values of `inventory_keys` to one record.
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "fluentd"
|
22
|
-
spec.add_dependency "specinfra"
|
22
|
+
spec.add_dependency "specinfra", ">= 2.17.1"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -13,7 +13,7 @@ module Fluent
|
|
13
13
|
config_param :ssh_user, :string, default: nil
|
14
14
|
config_param :ssh_port, :integer, default: nil
|
15
15
|
config_param :env, :hash, default: {}
|
16
|
-
config_param :inventory_keys,
|
16
|
+
config_param :inventory_keys, :array, default: []
|
17
17
|
config_param :combine, :bool, default: true
|
18
18
|
|
19
19
|
KEY_DELIMITER = "."
|
@@ -46,6 +46,7 @@ module Fluent
|
|
46
46
|
Specinfra.configuration.send(:ssh_options, opt) if opt.length > 0
|
47
47
|
|
48
48
|
@inventory = Specinfra::HostInventory.instance
|
49
|
+
@inventory_keys = @inventory.keys if @inventory_keys.empty?
|
49
50
|
end
|
50
51
|
|
51
52
|
def start
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-specinfra_inventory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masashi Terui
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.17.1
|
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
|
-
version:
|
40
|
+
version: 2.17.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|