fluent-plugin-docker-inspect 0.0.3 → 0.0.4

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: 594dfb450c0523dea0239c2e45a266990805f166
4
- data.tar.gz: a8c25679540b4d60b73524b0340dc2b7a0da4d24
3
+ metadata.gz: 649a225f78988a9f4bffdb73f750e69a974d01c3
4
+ data.tar.gz: 1f261f4eac6eb3e630e4b054e21287402cfb1431
5
5
  SHA512:
6
- metadata.gz: 3b8f897f41694ad4a0aef7a89871a7de736587bcf398b37a7cc812ecbf2d806d3d8f1af01f6666d67e560f9a40d4776ac05d49441c86f90b8816a14001fc5e95
7
- data.tar.gz: 77578301ea7b698b62fdf39f667b77684ba055856707247dbd852fb0727bf4f48dc7bb19dec97c9f765da726b07c3c49c355d53cdf03551d1eb3b38f5a537e46
6
+ metadata.gz: 8f1995a61e3b886cd7e05972fd5c424628f8f8ef7bdf8ce27f4cd4daebb2925becff3ef5f90fbf4a1f89a4e7f820f285878a2a5d74a280a017b2a796b901a3bf
7
+ data.tar.gz: c8a863bcae9618bb8e60bc94e227971b5e22d288d0fcb577da96f7735a7577df41738d38b865a1ff90a64ec9e6c44239baa7db67310d3970b786fb56e1ca5f06
data/README.rst CHANGED
@@ -26,6 +26,7 @@ Configuration
26
26
  add_addr_tag yes
27
27
  filter { "status": ["running"] } # see Docker remote API
28
28
  only_changed true
29
+ include_tag tag
29
30
  <keys>
30
31
  id Id
31
32
  created Created
@@ -51,7 +52,8 @@ only_changed
51
52
  If true, only emit when docker inspect is changed. (default is true)
52
53
  keys
53
54
  If set, output values containes only specified keys and path(period separated value). Default is output all values as one JSON.
54
-
55
+ include_tag
56
+ If set and keys are specified, add tags to specifed by include_tag
55
57
  License
56
58
  ----------
57
59
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -20,6 +20,7 @@ module Fluent
20
20
  config_param :add_addr_tag, :string, :default => nil
21
21
  config_param :filter, :string, :default => nil
22
22
  config_param :only_changed, :bool, :default => true
23
+ config_param :include_tag, :string, :default => nil
23
24
 
24
25
  unless method_defined?(:log)
25
26
  define_method(:log) { $log }
@@ -118,6 +119,9 @@ module Fluent
118
119
  k[key_name] = tmp
119
120
  changed = true # if nothing matched, not sent
120
121
  end
122
+ if @include_tag
123
+ k[@include_tag] = tag
124
+ end
121
125
  @es.add(time, k) if changed
122
126
  else
123
127
  @es.add(time, i)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-docker-inspect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - WAKAYAMA Shirou