fluent-plugin-mesosphere-filter 0.1.7 → 0.1.8
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
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YTdmN2UyMGIwNTY0NjdmNjU1MDk5NjhmNTNlNTg2N2MxMGNkZjg0MQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
Y2QxM2MwNzY0NDIzMzEzYzEwNWQ0N2EyMGJkMWMzYzhkMmM1NGMxNQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZWQyNDZjMmYyMjkwMzcwN2Y4ZGJjODg3MzU1ZjMzNTNmOTgxODZhMGMxYTVm
|
|
10
|
+
YzU0ZDlmMzUyMDBkNDFiY2RjZTdlYTA5Nzc5MzBkYzY0YTYxZGM2NjAyNzZi
|
|
11
|
+
OTFmYTk2ZWQyN2Y0MDkxNWYxNDNjODJjMjM5ZTE5YjE2ZDUyN2I=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NTNmZWIyYzQxNzE0MDk2YTBkYTNkMDIzYzA3ZTJkMTlhN2U4YWNmZjM2ZDFj
|
|
14
|
+
MzE0NTg1MjJiZjFhYmUzZGZlZmI2NTBlNDExOGUyZGVkMTdkZGFjNWJkNzIx
|
|
15
|
+
ZmNiNzgyMzczZWFjZGVhMTdkYTkyNjJhZjhiNDc1M2M2ZjdlMmM=
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = 'fluent-plugin-mesosphere-filter'
|
|
7
|
-
gem.version = '0.1.
|
|
7
|
+
gem.version = '0.1.8'
|
|
8
8
|
gem.authors = ['Joseph Hughes']
|
|
9
9
|
gem.email = ['jjhughes57@gmail.com']
|
|
10
10
|
gem.description = 'Filter plugin to add Mesosphere metadata'
|
|
@@ -30,7 +30,7 @@ module Fluent
|
|
|
30
30
|
config_param :merge_json_log, :bool, default: true
|
|
31
31
|
config_param :cronos_task_regex,
|
|
32
32
|
:string,
|
|
33
|
-
default: '^(?<app>[a-z0-9]([-a-z0-9.]*[a-z0-9]))-(?<
|
|
33
|
+
default: '^(?<app>[a-z0-9]([-a-z0-9.]*[a-z0-9]))-(?<task_type>[^-]+)-(?<run>[^-]+)-(?<epoc>[^-]+)$'
|
|
34
34
|
|
|
35
35
|
# Get the configuration for the plugin
|
|
36
36
|
def configure(conf)
|
|
@@ -134,7 +134,7 @@ class AmplifierFilterTest < Test::Unit::TestCase
|
|
|
134
134
|
log_entry = filtered[0][2]
|
|
135
135
|
|
|
136
136
|
assert_equal 'chronos', log_entry['mesos_framework']
|
|
137
|
-
assert_equal 'some-task-app2', log_entry['app']
|
|
137
|
+
assert_equal 'some-task-app2-11182015-1718', log_entry['app']
|
|
138
138
|
assert_equal task_id, log_entry['mesos_task_id']
|
|
139
139
|
assert_equal 'deployTasks', log_entry['chronos_task_type']
|
|
140
140
|
end
|