fluent-plugin-statsd 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -0
- data/VERSION +1 -1
- data/fluent-plugin-statsd.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1157881d7197ed50580dfc90fe3e6b14ae8bb288
|
4
|
+
data.tar.gz: 06d85224e3f88a16f89c02b340f940f30949630d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d28db62e13f21fdcc9490e47169f68d0a7e0b93892de06d9a47ce1a9dbf572108cc8749f86f122ac9cc964606791121feb70e952bb9dc587eb7607cbc8ed3454
|
7
|
+
data.tar.gz: 277bcd02ea26f859df59aa2f74f6764781ea564f05e95195df6384a3faa4b2124b735b4f598246026bbbd40ddac58ca781a80eb609e36a09a7f8af48831c0dfc
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
$ fluent-gem install fluent-plugin-statsd
|
7
7
|
```
|
8
8
|
|
9
|
+
[![Gem Version](https://badge.fury.io/rb/fluent-plugin-statsd.png)](http://badge.fury.io/rb/fluent-plugin-statsd)
|
10
|
+
|
9
11
|
# Usage
|
10
12
|
|
11
13
|
```
|
@@ -53,6 +55,31 @@ fluent_logger.post('statsd',
|
|
53
55
|
)
|
54
56
|
```
|
55
57
|
|
58
|
+
# td-agent.conf demo
|
59
|
+
|
60
|
+
worked with record_reformer to transform access log request_time into statsd
|
61
|
+
|
62
|
+
```
|
63
|
+
<match accesslog.reformer>
|
64
|
+
type copy
|
65
|
+
<store>
|
66
|
+
type statsd
|
67
|
+
host 127.0.0.1
|
68
|
+
port 8125
|
69
|
+
flush_interval 1s
|
70
|
+
</store>
|
71
|
+
# other stores...
|
72
|
+
</match>
|
73
|
+
<match accesslog>
|
74
|
+
type record_reformer
|
75
|
+
output_tag ${tag}.reformer
|
76
|
+
# transform /url1/url2/url3 --> url.urlNN.urlNN
|
77
|
+
statsd_key ${"url"+request_uri.gsub(/((\/[^\/]+){2}).*/, '\1').gsub(/([^\?]*)\?.*/,'\1').gsub(/[0-9]+/, "NN").gsub(/\//, ".");}
|
78
|
+
statsd_timing ${request_time}
|
79
|
+
statsd_type ${"timing"}
|
80
|
+
</match>
|
81
|
+
```
|
82
|
+
|
56
83
|
|
57
84
|
# Copyright
|
58
85
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-statsd"
|
6
|
-
gem.description = "fluentd
|
6
|
+
gem.description = "fluentd output filter plugin to send metrics to Esty StatsD"
|
7
7
|
gem.homepage = "https://github.com/fakechris/fluent-plugin-statsd"
|
8
8
|
gem.summary = gem.description
|
9
9
|
gem.version = File.read("VERSION").strip
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-statsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Song
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.2.1
|
55
|
-
description: fluentd
|
55
|
+
description: fluentd output filter plugin to send metrics to Esty StatsD
|
56
56
|
email: fakechris@gmail.com
|
57
57
|
executables: []
|
58
58
|
extensions: []
|
@@ -88,6 +88,6 @@ rubyforge_project:
|
|
88
88
|
rubygems_version: 2.2.2
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
|
-
summary: fluentd
|
91
|
+
summary: fluentd output filter plugin to send metrics to Esty StatsD
|
92
92
|
test_files:
|
93
93
|
- test/plugin/out_statsd.rb
|