fluent-plugin-deis-kafka 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/mixin/deis.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 961299bf515f2c5daf11d93066ad40edd41e9cee
|
4
|
+
data.tar.gz: 01ea7656210e8f8426f37c84e3aad7bcce87f089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ee59f02dd5f70aa68dcbd9f5bbb39863a2a3b188e7396c49df899471f9a3c9f8d678ae626accc53b9faabbfad85f78b052280d371bdb8ed7e6f4afeca2a3668
|
7
|
+
data.tar.gz: 9f22350a6748d1b70262d15fc810bbd9c6da46c7cf2884d16e13b9aec7f37190d827a141afc237b1627b948192b8c5cbf84eef213cec0d8e2d703d47ff650cec
|
data/lib/fluent/mixin/deis.rb
CHANGED
@@ -21,7 +21,10 @@ module Fluent
|
|
21
21
|
def build_series(message)
|
22
22
|
metric = parse_router_log(message['log'], message['kubernetes']['host'])
|
23
23
|
if metric
|
24
|
-
metric_timestamp = (
|
24
|
+
metric_timestamp = (
|
25
|
+
metric['timestamp'].to_f * 1_000_000_000 + Time.now.nsec
|
26
|
+
).to_i # Using current nanosecond resolution to avoid replacing points
|
27
|
+
|
25
28
|
tags = { app: metric['app'], status_code: metric['status_code'], host: metric['host'] }
|
26
29
|
data = [
|
27
30
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-deis-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Souza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|