fluent-plugin-nata2 0.0.1 → 0.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 +70 -3
- data/fluent-plugin-nata2.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f23576b7e9ad0788510265d5e64a65095b5e6125
|
4
|
+
data.tar.gz: 8491e621b9af8c4f1b891cdcafae3960de0f5e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a351631006bde9aa6e8b2f4d016ad3f321c58ddcfeddc3e04bcc3c8f948989c1e0e01c69a3daa1dfe0c8cd6f3f109c640dfc245a65ee833bc60c1405d1a94b
|
7
|
+
data.tar.gz: 06af05b27af1bae70ebb242c6e9bc147a4cdad94c6445035f1b012094109f4acdc027f27d2497139275b79da71bcf7b94ba4cd82deb4544d3bb3c6086b44c956
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# fluent-plugin-nata2 [![Build Status](https://travis-ci.org/studio3104/fluent-plugin-nata2.png)](https://travis-ci.org/studio3104/fluent-plugin-nata2) [![Code Climate](https://codeclimate.com/github/studio3104/fluent-plugin-nata2.png)](https://codeclimate.com/github/studio3104/fluent-plugin-nata2)
|
2
2
|
|
3
|
-
|
3
|
+
fluent plugin to register slow query logs to [`Nata2`](https://github.com/studio3104/nata2)
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -16,9 +16,76 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install fluent-plugin-nata2
|
18
18
|
|
19
|
-
##
|
19
|
+
## Plugins
|
20
|
+
|
21
|
+
`fluent-plugin-nata` bundles two plugins.
|
22
|
+
|
23
|
+
#### in_mysqlslowquery_ex
|
24
|
+
|
25
|
+
based `Fluent::NewTailInput`.
|
26
|
+
tail and parse slow query log.
|
27
|
+
|
28
|
+
###### config parameters
|
29
|
+
|
30
|
+
- last_dbname_file
|
31
|
+
- optional
|
32
|
+
- specify the file to keep track of what was something of which database is slow query log which was produced at the end (slow query log of MySQL is not recorded each time it is either the slow query that occurred in any database)
|
33
|
+
- must be specified a different path of `pos_file`
|
34
|
+
|
35
|
+
- dbname_if_missing_dbname_in_log
|
36
|
+
- optional
|
37
|
+
- value to be filled in case you did not know what was the slow query in any database
|
38
|
+
|
39
|
+
- format
|
40
|
+
- alwayls `none`
|
41
|
+
- impossible to specify virtually.
|
42
|
+
|
43
|
+
- read_from_head
|
44
|
+
- optional
|
45
|
+
- read from the beginning to slow query log
|
46
|
+
|
47
|
+
- path
|
48
|
+
- required
|
49
|
+
- path to slow query log
|
50
|
+
|
51
|
+
- tag
|
52
|
+
- required
|
53
|
+
- when used in combination with out_nata, it is necessary that the end is as shown in `servicename.hostname`.
|
54
|
+
|
55
|
+
#### out_nata2
|
56
|
+
|
57
|
+
post parsed slow query log to `Nata2 Server`.
|
58
|
+
|
59
|
+
###### config parameters
|
60
|
+
|
61
|
+
- server
|
62
|
+
- required
|
63
|
+
- server FQDN
|
64
|
+
|
65
|
+
- port
|
66
|
+
- required
|
67
|
+
- port of `Nata2 Server` bind
|
68
|
+
|
69
|
+
## Example configurations
|
70
|
+
|
71
|
+
```
|
72
|
+
<source>
|
73
|
+
type mysqlslowquery_ex
|
74
|
+
read_from_head
|
75
|
+
path /path/to/slowquery.log
|
76
|
+
tag slowquery.servicename.hostname
|
77
|
+
pos_file /tmp/slowquery.log.pos
|
78
|
+
last_dbname_file /tmp/slowquery.log.lastdb
|
79
|
+
</source>
|
80
|
+
|
81
|
+
<match slowquery.**>
|
82
|
+
type nata2
|
83
|
+
remove_tag_prefix slowquery.
|
84
|
+
server nata2.server
|
85
|
+
port 9292
|
86
|
+
</match>
|
87
|
+
```
|
20
88
|
|
21
|
-
TODO: Write usage instructions here
|
22
89
|
|
23
90
|
## Contributing
|
24
91
|
|
data/fluent-plugin-nata2.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'fluent-plugin-nata2'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.2'
|
8
8
|
spec.authors = ['studio3104']
|
9
9
|
spec.email = ['studio3104.com@gmail.com']
|
10
10
|
spec.summary = %q{fluent-plugin to post slow query logs to Nata2 server}
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_runtime_dependency 'fluentd', '~> 0.
|
20
|
+
spec.add_runtime_dependency 'fluentd', '~> 0.12.0'
|
21
21
|
spec.add_runtime_dependency 'fluent-mixin-rewrite-tag-name'
|
22
22
|
spec.add_runtime_dependency 'mysql-slowquery-parser'
|
23
23
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-nata2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- studio3104
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.12.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fluent-mixin-rewrite-tag-name
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.5.1
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: fluent-plugin to post slow query logs to Nata2 server
|