fluent-plugin-graphite 0.0.2 → 0.0.3

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: 566f9af4251ccc88ad85c9e3872eb59dae08ce98
4
- data.tar.gz: 508c80b8173612c93375c7e03bc423ce4904d07b
3
+ metadata.gz: cdc94d66155df2d2ee2073bc42447bb0066aca22
4
+ data.tar.gz: fe799ba1c48a1736605509db527ddec205772506
5
5
  SHA512:
6
- metadata.gz: 36f6036886b5a928c0f6a0a7152f6d9bd4a0b2bf174001029912a0700c694b11bd1963200c5af70cf1655656e7d4448546915af00f1ab6714d82335e438a2332
7
- data.tar.gz: ce78cac1d59cb888f7b28a944a7312bc5b0085a94d32cb9ed58ec9a24267b8c701b580b977434731927a24cd7cc7dd5a08391101c7f84fd6f552b6d426ddb770
6
+ metadata.gz: 584c35ff902b09b7e3c3082eefc4e97e54f4f0cafd959373d22c544f6ba39dd2fc60cfaadf6b292ccbd667010f41ed57b5b61cde8dd9d3cd1dcd8cf7adcc6171
7
+ data.tar.gz: 5ea918d40a394639cd2e1928e0e5a3a922e6a5862698e4f9b717feb3fbca3d0d9a1761a35a21896297eeabbf1f915b3151d5863f9448a6937acc855b047af2a8
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Fluent::Plugin::Graphite [![Build Status](https://travis-ci.org/studio3104/fluent-plugin-graphite.png)](https://travis-ci.org/studio3104/fluent-plugin-graphite) [![Code Climate](https://codeclimate.com/github/studio3104/fluent-plugin-graphite.png)](https://codeclimate.com/github/studio3104/fluent-plugin-graphite)
1
+ # fluent-plugin-graphite [![Build Status](https://travis-ci.org/studio3104/fluent-plugin-graphite.png)](https://travis-ci.org/studio3104/fluent-plugin-graphite) [![Code Climate](https://codeclimate.com/github/studio3104/fluent-plugin-graphite.png)](https://codeclimate.com/github/studio3104/fluent-plugin-graphite)
2
2
 
3
- TODO: Write a gem description
3
+ fluentd output plugin to send metrics to graphite
4
4
 
5
5
  ## Installation
6
6
 
@@ -16,9 +16,125 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install fluent-plugin-graphite
18
18
 
19
- ## Usage
19
+ ## Configuration
20
20
 
21
- TODO: Write usage instructions here
21
+ #### Example
22
+
23
+ message: `metrics { "f1":"100", "f2":"200", "f3":"300" }`
24
+
25
+ ###### Specify name_keys
26
+
27
+ - configuration
28
+
29
+ ```
30
+ <match metrics>
31
+ type graphite
32
+ host localhost
33
+ port 2003
34
+ tag_for prefix
35
+ name_keys f1,f3
36
+ </match>
37
+ ```
38
+
39
+ - output graph_name
40
+
41
+ ```
42
+ metrics.f1
43
+ metrics.f3
44
+ ```
45
+
46
+ ###### Specify name_key_pattern
47
+
48
+ - configuration
49
+
50
+ ```
51
+ <match metrics>
52
+ type graphite
53
+ host localhost
54
+ port 2003
55
+ tag_for prefix
56
+ name_key_pattern f\d
57
+ </match>
58
+ ```
59
+
60
+ - output graph_name
61
+
62
+ ```
63
+ metrics.f1
64
+ metrics.f2
65
+ metrics.f3
66
+ ```
67
+
68
+ ###### tag_for suffix
69
+
70
+ - configuration
71
+
72
+ ```
73
+ <match metrics>
74
+ type graphite
75
+ host localhost
76
+ port 2003
77
+ tag_for suffix
78
+ name_keys f1,f2
79
+ </match>
80
+ ```
81
+
82
+ - output graph_name
83
+
84
+ ```
85
+ f1.metrics
86
+ f2.metrics
87
+ ```
88
+
89
+ ###### tag_for ignore
90
+
91
+ - configuration
92
+
93
+ ```
94
+ <match metrics>
95
+ type graphite
96
+ host localhost
97
+ port 2003
98
+ tag_for suffix
99
+ name_keys f1,f2
100
+ </match>
101
+ ```
102
+
103
+ - output graph_name
104
+
105
+ ```
106
+ f1
107
+ f2
108
+ ```
109
+
110
+ #### Parameter
111
+
112
+ ###### host
113
+ - required.
114
+ - ip address or hostname of graphite server.
115
+
116
+ ###### port
117
+ - Default is `2003`.
118
+ - listening port of carbon-cache.
119
+
120
+ ###### tag_for
121
+ - Default is `prefix`.
122
+ - Either of `prefix`, `suffix` or `ignore`.
123
+ - `prefix` uses the tag name as graph_name prefix.
124
+ - `suffix` uses the tag name as graph_name suffix.
125
+ - `ignore` uses the tag name for nothing.
126
+
127
+ ###### name_keys
128
+ - Either of `name_keys` or `name_key_pattern` is required.
129
+ - Specify field names of the input record. Separate by , (comma). The values of these fields are posted as numbers, and names of thease fields are used as parts of grame_names.
130
+
131
+ ###### name_key_pattern
132
+ - Either of `name_keys` or `name_key_pattern` is required.
133
+ - Specify the field names of the input record by a regular expression. The values of these fields are posted as numbers, and names of thease fields are used as parts of grame_names.
134
+
135
+ ###### remove_tag_prefix, remove_tag_suffix, add_tag_prefix, add_tag_suffix
136
+ - Setting for rewriting the tag.
137
+ - For more information: https://github.com/y-ken/fluent-mixin-rewrite-tag-name
22
138
 
23
139
  ## Contributing
24
140
 
@@ -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-graphite'
6
- gem.version = '0.0.2'
6
+ gem.version = '0.0.3'
7
7
  gem.authors = ['Satoshi SUZUKI']
8
8
  gem.email = 'studio3104.com@gmail.com'
9
9
  gem.homepage = 'https://github.com/studio3104/fluent-plugin-graphite'
@@ -84,6 +84,6 @@ class Fluent::GraphiteOutput < Fluent::Output
84
84
  def post(metrics, time)
85
85
  @client.metrics(metrics, time)
86
86
  rescue Errno::ECONNREFUSED
87
- $log.warn "out_graphite: connection refused by #{@host}:#{@port}"
87
+ log.warn "out_graphite: connection refused by #{@host}:#{@port}"
88
88
  end
89
89
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi SUZUKI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-07 00:00:00.000000000 Z
11
+ date: 2014-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd