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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fluent/mixin/deis.rb +4 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d1cabe61da7f602a89d4a817ffc764e24440bec
4
- data.tar.gz: 15c427fb105d9cc188b6f15cad446f4d52d69fc3
3
+ metadata.gz: 961299bf515f2c5daf11d93066ad40edd41e9cee
4
+ data.tar.gz: 01ea7656210e8f8426f37c84e3aad7bcce87f089
5
5
  SHA512:
6
- metadata.gz: 75709daeaca14773c0813ac7a77eb936afe70924c8bce4b4de007962b646a31d2db4408aba71fb63a1e6b10fff024cc2c09052a11f4d54406fe105e7bb1ecf75
7
- data.tar.gz: 404a89d809fcc7b2351de81db23388f109a64b870dde0f190331e2e2f244388d73f5032fc89bd9286b5a03b39808ce0e5c9990372d56f4ee6a7243775dd7aad6
6
+ metadata.gz: 7ee59f02dd5f70aa68dcbd9f5bbb39863a2a3b188e7396c49df899471f9a3c9f8d678ae626accc53b9faabbfad85f78b052280d371bdb8ed7e6f4afeca2a3668
7
+ data.tar.gz: 9f22350a6748d1b70262d15fc810bbd9c6da46c7cf2884d16e13b9aec7f37190d827a141afc237b1627b948192b8c5cbf84eef213cec0d8e2d703d47ff650cec
@@ -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 = (metric['timestamp'].to_f * 1_000_000_000).to_i
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd