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 +4 -4
- data/README.rst +3 -1
- data/VERSION +1 -1
- data/lib/fluent/plugin/in_docker_inspect.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 649a225f78988a9f4bffdb73f750e69a974d01c3
|
4
|
+
data.tar.gz: 1f261f4eac6eb3e630e4b054e21287402cfb1431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|