adp-fluent-plugin-graphite 0.1.1 → 0.1.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91a11f6d33ffb459b113d744d38951631f6f8a43203799e23163da7350e2c93d
|
4
|
+
data.tar.gz: cb51400a9d54217313775338329e73407e40868a0152e0f7452a22d7aa2c0334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2286a09376b57fe11e4f09e44d190f81213a3ed99f54b66c6756e70ebaf570424b1809020ccbf028240a770c5b16b3cc3a1c1287b7d14cf28907fea6b02085d
|
7
|
+
data.tar.gz: 71af86c21bf2ce619c21e70d64b599869de200a5164cced81db56d62e9898b8d0e5ace5ce9d44986f4bcbc48894f4e6e591e323369945d635269c777eb3ce4b8
|
@@ -14,7 +14,7 @@ module Fluent::Plugin
|
|
14
14
|
|
15
15
|
def start
|
16
16
|
super
|
17
|
-
|
17
|
+
init_client(@log_level, @host, @port)
|
18
18
|
end
|
19
19
|
|
20
20
|
def configure(conf)
|
@@ -22,8 +22,8 @@ module Fluent::Plugin
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def filter(tag, time, record)
|
25
|
-
metrics =
|
26
|
-
|
25
|
+
metrics = format_metrics(tag, record)
|
26
|
+
post(metrics, time)
|
27
27
|
record
|
28
28
|
end
|
29
29
|
end
|
@@ -15,7 +15,7 @@ module Fluent::Plugin
|
|
15
15
|
|
16
16
|
def start
|
17
17
|
super
|
18
|
-
|
18
|
+
init_client(@log_level, @host, @port)
|
19
19
|
end
|
20
20
|
|
21
21
|
def configure(conf)
|
@@ -25,10 +25,10 @@ module Fluent::Plugin
|
|
25
25
|
def process(tag, es)
|
26
26
|
es.each do |time, record|
|
27
27
|
emit_tag = tag.dup
|
28
|
-
metrics =
|
28
|
+
metrics = format_metrics(emit_tag, record)
|
29
29
|
|
30
30
|
# implemented to immediate call post method in this loop, because graphite-api.gem has the buffers.
|
31
|
-
|
31
|
+
post(metrics, time)
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|