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 +4 -4
- data/lib/fluent/plugin/out_deis-graphite.rb +11 -7
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcbb636b2dd98a27982c71de5b5cba8defd274da
|
4
|
+
data.tar.gz: 0dd754d780d269180d09454249460f06492412de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
|
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.
|
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:
|
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.
|
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:
|