fluent-plugin-in_http_healthcheck 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/Gemfile +4 -0
- data/README.md +51 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/fluent-plugin-in_http_healthcheck.gemspec +28 -0
- data/lib/fluent/plugin/in_http_healthcheck.rb +10 -0
- metadata +93 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c5cbf61d34abd52dbc1ce390eb2288041fbc757a
|
4
|
+
data.tar.gz: 0a9b17910d37e482e78368aa27f0a2a2ea4c44d6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6ce4a801aa85aa26cc995fbbf4fa960e84a8e4e1b93821ac585697fce5563add8bc1c0274b19726ee9c9a45ea3c56aef4dc72ccf2fca49ea216c07b0f606d7cd
|
7
|
+
data.tar.gz: 19870a2088cf407411affae308608c755eab70f33fff05a3b6ba97d28b6858dc0390d6a7083c23b9d89930878a4b1928798ba29a42ce601fa0d2eaed3274fb2d
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# Fluent::Plugin::In::HTTP::HealthCheck
|
2
|
+
|
3
|
+
## 概要
|
4
|
+
|
5
|
+
* httpリクエストに対して、ステータスコード200を返すだけのプラグインです
|
6
|
+
* データとしては何も受け取らないし、送らないです
|
7
|
+
* TD-agent v0.10以降で動作します
|
8
|
+
|
9
|
+
## plugin詳細
|
10
|
+
|
11
|
+
* HTTPリクエストに対してステータスコード200を返答します
|
12
|
+
* ロードバランサーにヘルスチェックさせたいときに使うといいんじゃないかなと思います
|
13
|
+
* デフォルトでインストールされている、in_httpプラグインをサブクラス化してるだけです
|
14
|
+
* つまりin_httpで使えるオプションはそのまま使えます
|
15
|
+
|
16
|
+
## Install
|
17
|
+
td-agent 0.10.0 以上
|
18
|
+
|
19
|
+
```
|
20
|
+
$ gem install fluent-plugin-in_http_healthcheck
|
21
|
+
```
|
22
|
+
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
```
|
27
|
+
<match **>
|
28
|
+
type http_healthcheck
|
29
|
+
port 8888
|
30
|
+
bind 0.0.0.0
|
31
|
+
</match>
|
32
|
+
```
|
33
|
+
|
34
|
+
動作確認してみる
|
35
|
+
|
36
|
+
```
|
37
|
+
# curl http://localhost:8888
|
38
|
+
:) < Hello!
|
39
|
+
```
|
40
|
+
|
41
|
+
## ToDo
|
42
|
+
|
43
|
+
* 特になし
|
44
|
+
|
45
|
+
## Contributing
|
46
|
+
|
47
|
+
1. Fork it
|
48
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
49
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
50
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
51
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "fluent/plugin/in_http_healthcheck"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "fluent-plugin-in_http_healthcheck"
|
7
|
+
spec.version = "0.0.1"
|
8
|
+
spec.authors = ["Zaki_XL"]
|
9
|
+
spec.email = ["heavenzdrive@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = %q{fluentd plug-in for HTTP Health Check}
|
12
|
+
spec.description = %q{fluentd plug-in for HTTP Health Check}
|
13
|
+
spec.homepage = "http://need4answer.blogspot.jp/"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
+
spec.bindir = "exe"
|
17
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
# if spec.respond_to?(:metadata)
|
21
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
22
|
+
# end
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
|
27
|
+
spec.add_dependency "fluentd", ">= 0.10.00"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fluent-plugin-in_http_healthcheck
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Zaki_XL
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: fluentd
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.10.00
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.00
|
55
|
+
description: fluentd plug-in for HTTP Health Check
|
56
|
+
email:
|
57
|
+
- heavenzdrive@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- .gitignore
|
63
|
+
- Gemfile
|
64
|
+
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- bin/console
|
67
|
+
- bin/setup
|
68
|
+
- fluent-plugin-in_http_healthcheck.gemspec
|
69
|
+
- lib/fluent/plugin/in_http_healthcheck.rb
|
70
|
+
homepage: http://need4answer.blogspot.jp/
|
71
|
+
licenses: []
|
72
|
+
metadata: {}
|
73
|
+
post_install_message:
|
74
|
+
rdoc_options: []
|
75
|
+
require_paths:
|
76
|
+
- lib
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
requirements: []
|
88
|
+
rubyforge_project:
|
89
|
+
rubygems_version: 2.4.6
|
90
|
+
signing_key:
|
91
|
+
specification_version: 4
|
92
|
+
summary: fluentd plug-in for HTTP Health Check
|
93
|
+
test_files: []
|