fluent-plugin-rancher 0.1.0

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.
@@ -0,0 +1,99 @@
1
+ #
2
+ # Fluentd Kubernetes Output Plugin - Enrich Fluentd events with Kubernetes
3
+ # metadata
4
+ #
5
+ # Copyright 2015 Red Hat, Inc.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ---
20
+ http_interactions:
21
+ - request:
22
+ method: get
23
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
24
+ body:
25
+ encoding: US-ASCII
26
+ string: ''
27
+ headers:
28
+ User-Agent:
29
+ - Swipely/Docker-API 1.20.0
30
+ Content-Type:
31
+ - text/plain
32
+ response:
33
+ status:
34
+ code: 200
35
+ message:
36
+ headers:
37
+ Content-Type:
38
+ - application/json
39
+ Date:
40
+ - Mon, 09 Mar 2015 11:43:55 GMT
41
+ body:
42
+ encoding: UTF-8
43
+ string: |
44
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"no-leading-slash"}
45
+ http_version:
46
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
47
+ - request:
48
+ method: get
49
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Swipely/Docker-API 1.20.0
56
+ Content-Type:
57
+ - text/plain
58
+ response:
59
+ status:
60
+ code: 200
61
+ message:
62
+ headers:
63
+ Content-Type:
64
+ - application/json
65
+ Date:
66
+ - Mon, 09 Mar 2015 11:43:55 GMT
67
+ body:
68
+ encoding: UTF-8
69
+ string: |
70
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"no-leading-slash"}
71
+ http_version:
72
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
73
+ - request:
74
+ method: get
75
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
76
+ body:
77
+ encoding: US-ASCII
78
+ string: ''
79
+ headers:
80
+ User-Agent:
81
+ - Swipely/Docker-API 1.20.0
82
+ Content-Type:
83
+ - text/plain
84
+ response:
85
+ status:
86
+ code: 200
87
+ message:
88
+ headers:
89
+ Content-Type:
90
+ - application/json
91
+ Date:
92
+ - Mon, 09 Mar 2015 11:43:55 GMT
93
+ body:
94
+ encoding: UTF-8
95
+ string: |
96
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"no-leading-slash"}
97
+ http_version:
98
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
99
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,99 @@
1
+ #
2
+ # Fluentd Kubernetes Output Plugin - Enrich Fluentd events with Kubernetes
3
+ # metadata
4
+ #
5
+ # Copyright 2015 Red Hat, Inc.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ---
20
+ http_interactions:
21
+ - request:
22
+ method: get
23
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
24
+ body:
25
+ encoding: US-ASCII
26
+ string: ''
27
+ headers:
28
+ User-Agent:
29
+ - Swipely/Docker-API 1.20.0
30
+ Content-Type:
31
+ - text/plain
32
+ response:
33
+ status:
34
+ code: 200
35
+ message:
36
+ headers:
37
+ Content-Type:
38
+ - application/json
39
+ Date:
40
+ - Mon, 09 Mar 2015 11:43:55 GMT
41
+ body:
42
+ encoding: UTF-8
43
+ string: |
44
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/non-kubernetes"}
45
+ http_version:
46
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
47
+ - request:
48
+ method: get
49
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Swipely/Docker-API 1.20.0
56
+ Content-Type:
57
+ - text/plain
58
+ response:
59
+ status:
60
+ code: 200
61
+ message:
62
+ headers:
63
+ Content-Type:
64
+ - application/json
65
+ Date:
66
+ - Mon, 09 Mar 2015 11:43:55 GMT
67
+ body:
68
+ encoding: UTF-8
69
+ string: |
70
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/non-kubernetes"}
71
+ http_version:
72
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
73
+ - request:
74
+ method: get
75
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
76
+ body:
77
+ encoding: US-ASCII
78
+ string: ''
79
+ headers:
80
+ User-Agent:
81
+ - Swipely/Docker-API 1.20.0
82
+ Content-Type:
83
+ - text/plain
84
+ response:
85
+ status:
86
+ code: 200
87
+ message:
88
+ headers:
89
+ Content-Type:
90
+ - application/json
91
+ Date:
92
+ - Mon, 09 Mar 2015 11:43:55 GMT
93
+ body:
94
+ encoding: UTF-8
95
+ string: |
96
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/non-kubernetes"}
97
+ http_version:
98
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
99
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,99 @@
1
+ #
2
+ # Fluentd Kubernetes Output Plugin - Enrich Fluentd events with Kubernetes
3
+ # metadata
4
+ #
5
+ # Copyright 2015 Red Hat, Inc.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ---
20
+ http_interactions:
21
+ - request:
22
+ method: get
23
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
24
+ body:
25
+ encoding: US-ASCII
26
+ string: ''
27
+ headers:
28
+ User-Agent:
29
+ - Swipely/Docker-API 1.20.0
30
+ Content-Type:
31
+ - text/plain
32
+ response:
33
+ status:
34
+ code: 200
35
+ message:
36
+ headers:
37
+ Content-Type:
38
+ - application/json
39
+ Date:
40
+ - Mon, 09 Mar 2015 11:43:55 GMT
41
+ body:
42
+ encoding: UTF-8
43
+ string: |
44
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/k8s_CONTAINER.ff8e9ce_POD.NAMESPACE.api_2b249189-c3e0-11e4-839d-54ee7527188d_c306d8a8", "Config":{"Labels":{"io.kubernetes.pod.namespace":"NAMESPACE", "io.kubernetes.container.name":"CONTAINER", "io.kubernetes.pod.name":"POD"}}}
45
+ http_version:
46
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
47
+ - request:
48
+ method: get
49
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Swipely/Docker-API 1.20.0
56
+ Content-Type:
57
+ - text/plain
58
+ response:
59
+ status:
60
+ code: 200
61
+ message:
62
+ headers:
63
+ Content-Type:
64
+ - application/json
65
+ Date:
66
+ - Mon, 09 Mar 2015 11:43:55 GMT
67
+ body:
68
+ encoding: UTF-8
69
+ string: |
70
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/k8s_CONTAINER.ff8e9ce_POD.NAMESPACE.api_2b249189-c3e0-11e4-839d-54ee7527188d_c306d8a8", "Config":{"Labels":{"io.kubernetes.pod.name":"NAMESPACE/POD", "io.kubernetes.container.name":"CONTAINER"}}}
71
+ http_version:
72
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
73
+ - request:
74
+ method: get
75
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
76
+ body:
77
+ encoding: US-ASCII
78
+ string: ''
79
+ headers:
80
+ User-Agent:
81
+ - Swipely/Docker-API 1.20.0
82
+ Content-Type:
83
+ - text/plain
84
+ response:
85
+ status:
86
+ code: 200
87
+ message:
88
+ headers:
89
+ Content-Type:
90
+ - application/json
91
+ Date:
92
+ - Mon, 09 Mar 2015 11:43:55 GMT
93
+ body:
94
+ encoding: UTF-8
95
+ string: |
96
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/k8s_CONTAINER.ff8e9ce_POD.NAMESPACE.api_2b249189-c3e0-11e4-839d-54ee7527188d_c306d8a8", "Config":{"Labels":{"io.kubernetes.pod.namespace":"NAMESPACE", "io.kubernetes.container.name":"CONTAINER", "io.kubernetes.pod.name":"POD"}}}
97
+ http_version:
98
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
99
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,99 @@
1
+ #
2
+ # Fluentd Kubernetes Output Plugin - Enrich Fluentd events with Kubernetes
3
+ # metadata
4
+ #
5
+ # Copyright 2015 Red Hat, Inc.
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+ ---
20
+ http_interactions:
21
+ - request:
22
+ method: get
23
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
24
+ body:
25
+ encoding: US-ASCII
26
+ string: ''
27
+ headers:
28
+ User-Agent:
29
+ - Swipely/Docker-API 1.20.0
30
+ Content-Type:
31
+ - text/plain
32
+ response:
33
+ status:
34
+ code: 200
35
+ message:
36
+ headers:
37
+ Content-Type:
38
+ - application/json
39
+ Date:
40
+ - Mon, 09 Mar 2015 11:43:55 GMT
41
+ body:
42
+ encoding: UTF-8
43
+ string: |
44
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/non-kubernetes"}
45
+ http_version:
46
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
47
+ - request:
48
+ method: get
49
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Swipely/Docker-API 1.20.0
56
+ Content-Type:
57
+ - text/plain
58
+ response:
59
+ status:
60
+ code: 200
61
+ message:
62
+ headers:
63
+ Content-Type:
64
+ - application/json
65
+ Date:
66
+ - Mon, 09 Mar 2015 11:43:55 GMT
67
+ body:
68
+ encoding: UTF-8
69
+ string: |
70
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/non-kubernetes"}
71
+ http_version:
72
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
73
+ - request:
74
+ method: get
75
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
76
+ body:
77
+ encoding: US-ASCII
78
+ string: ''
79
+ headers:
80
+ User-Agent:
81
+ - Swipely/Docker-API 1.20.0
82
+ Content-Type:
83
+ - text/plain
84
+ response:
85
+ status:
86
+ code: 200
87
+ message:
88
+ headers:
89
+ Content-Type:
90
+ - application/json
91
+ Date:
92
+ - Mon, 09 Mar 2015 11:43:55 GMT
93
+ body:
94
+ encoding: UTF-8
95
+ string: |
96
+ {"Id": "9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7","Name":"/non-kubernetes"}
97
+ http_version:
98
+ recorded_at: Mon, 09 Mar 2015 11:43:55 GMT
99
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,140 @@
1
+ #
2
+ # Fluentd Rancher Output Plugin - Enrich Fluentd events with Rancher metadata
3
+ #
4
+ # Copyright 2015 Red Hat, Inc.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ ---
19
+ http_interactions:
20
+ - request:
21
+ method: get
22
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
23
+ body:
24
+ encoding: US-ASCII
25
+ string: ''
26
+ headers:
27
+ User-Agent:
28
+ - Swipely/Docker-API 1.24.1
29
+ Content-Type:
30
+ - text/plain
31
+ response:
32
+ status:
33
+ code: 404
34
+ message:
35
+ headers:
36
+ Content-Type:
37
+ - text/plain; charset=utf-8
38
+ Server:
39
+ - Docker/1.9.0 (linux)
40
+ Date:
41
+ - Wed, 09 Dec 2015 11:13:46 GMT
42
+ Content-Length:
43
+ - '77'
44
+ body:
45
+ encoding: UTF-8
46
+ string: |
47
+ no such id: 9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7
48
+ http_version:
49
+ recorded_at: Wed, 09 Dec 2015 11:13:46 GMT
50
+ - request:
51
+ method: get
52
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Swipely/Docker-API 1.24.1
59
+ Content-Type:
60
+ - text/plain
61
+ response:
62
+ status:
63
+ code: 404
64
+ message:
65
+ headers:
66
+ Content-Type:
67
+ - text/plain; charset=utf-8
68
+ Server:
69
+ - Docker/1.9.0 (linux)
70
+ Date:
71
+ - Wed, 09 Dec 2015 11:13:46 GMT
72
+ Content-Length:
73
+ - '77'
74
+ body:
75
+ encoding: UTF-8
76
+ string: |
77
+ no such id: 9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7
78
+ http_version:
79
+ recorded_at: Wed, 09 Dec 2015 11:13:46 GMT
80
+ - request:
81
+ method: get
82
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
83
+ body:
84
+ encoding: US-ASCII
85
+ string: ''
86
+ headers:
87
+ User-Agent:
88
+ - Swipely/Docker-API 1.24.1
89
+ Content-Type:
90
+ - text/plain
91
+ response:
92
+ status:
93
+ code: 404
94
+ message:
95
+ headers:
96
+ Content-Type:
97
+ - text/plain; charset=utf-8
98
+ Server:
99
+ - Docker/1.9.0 (linux)
100
+ Date:
101
+ - Wed, 09 Dec 2015 11:13:46 GMT
102
+ Content-Length:
103
+ - '77'
104
+ body:
105
+ encoding: UTF-8
106
+ string: |
107
+ no such id: 9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7
108
+ http_version:
109
+ recorded_at: Wed, 09 Dec 2015 11:13:46 GMT
110
+ - request:
111
+ method: get
112
+ uri: "<DOCKER_HOST>/v1.16/containers/9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7/json"
113
+ body:
114
+ encoding: US-ASCII
115
+ string: ''
116
+ headers:
117
+ User-Agent:
118
+ - Swipely/Docker-API 1.24.1
119
+ Content-Type:
120
+ - text/plain
121
+ response:
122
+ status:
123
+ code: 404
124
+ message:
125
+ headers:
126
+ Content-Type:
127
+ - text/plain; charset=utf-8
128
+ Server:
129
+ - Docker/1.9.0 (linux)
130
+ Date:
131
+ - Wed, 09 Dec 2015 11:13:46 GMT
132
+ Content-Length:
133
+ - '77'
134
+ body:
135
+ encoding: UTF-8
136
+ string: |
137
+ no such id: 9b26b527e73550b1fb217d0d643b15aa2ec6607593a6b477cda82a9c72cb82a7
138
+ http_version:
139
+ recorded_at: Wed, 09 Dec 2015 11:13:46 GMT
140
+ recorded_with: VCR 3.0.0