fluent-plugin-deis-graphite 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5713cca2e12c31967f3b243ec51d2fc1f545a71f
4
- data.tar.gz: ab35b0fce1c07f943e823fbdcd0f347285ae8914
3
+ metadata.gz: dcbb636b2dd98a27982c71de5b5cba8defd274da
4
+ data.tar.gz: 0dd754d780d269180d09454249460f06492412de
5
5
  SHA512:
6
- metadata.gz: 732f382143cee6fbb804fc18d4901fd4976ee8e56bb1bc4adf0d292caba900a5c52aafa4500ce6a6460f55c134fdcb6675eec6ccd36e857cbe6c3875c0c3682c
7
- data.tar.gz: c9fb816de5803e53cc32778d9ceadf48461ee3d63562a7ba9cafe488bbbc8e20e47a549812fc34a2d404b339650732d5b5011cd72aed02b5ce2893649aeae09d
6
+ metadata.gz: 1138b4bfa46b39d2e7cd93412f5bacfff2b7490a81da4b68b51662e089e75cac484b8c761ac07b2c8f117c496c0e5b61eaa40f5f436579289057c7a5c7173319
7
+ data.tar.gz: f2c47b1776558d56ee4b268e4d87bab83a496c817666acbf08afacf62be213e85008ed2ace53e24830a9ed445855b06de811075950dc9a7426c2c4bba8b0536b
@@ -49,14 +49,18 @@ module Fluent
49
49
  es.each do |time,record|
50
50
  if record.key? "kubernetes"
51
51
  if record["kubernetes"]["container_name"] == "deis-router"
52
- split_message = record["log"].split(" - ")
53
- app = split_message[1].strip
54
- status_code = split_message[4].strip
55
- #bytes_sent = split_message[6].strip.to_f
56
- #response_time = split_message[12].strip.to_f
57
- #request_time = split_message[13].strip.to_f
52
+ begin
53
+ split_message = record["log"].split(" - ")
54
+ app = split_message[1].strip
55
+ status_code = split_message[4].strip
56
+ #bytes_sent = split_message[6].strip.to_f
57
+ #response_time = split_message[12].strip.to_f
58
+ #request_time = split_message[13].strip.to_f
58
59
 
59
- Metriks.meter("response_rates.#{@cluster_name}.#{record["kubernetes"]["pod_name"]}.#{app}.#{status_code}").mark
60
+ Metriks.meter("response_rates.#{@cluster_name}.#{record["kubernetes"]["pod_name"]}.#{app}.#{status_code}").mark
61
+ rescue Exception => e
62
+ puts "Failed to parse: \'#{record}\'. Got exception #{e}"
63
+ end
60
64
  end
61
65
  end
62
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-deis-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Knox
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -109,9 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.4.6
112
+ rubygems_version: 2.6.6
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: A Fluentd plugin that gathers response code metrics from the deis router.
116
116
  test_files: []
117
- has_rdoc: