Fluent::Plugin::In::HTTP::HealthCheck
概要
- httpリクエストに対して、ステータスコード200を返すだけのプラグインです
- データとしては何も受け取らないし、送らないです
- TD-agent v0.10以降で動作します
plugin詳細
- HTTPリクエストに対してステータスコード200を返答します
- ロードバランサーにヘルスチェックさせたいときに使うといいんじゃないかなと思います
- デフォルトでインストールされている、in_httpプラグインをサブクラス化してるだけです
- つまりin_httpで使えるオプションはそのまま使えます
Install
td-agent 0.10.0 以上
$ gem install fluent-plugin-in_http_healthcheck
Usage
<match **>
type http_healthcheck
port 8888
bind 0.0.0.0
</match>
動作確認してみる
# curl http://localhost:8888
:) < Hello!
ToDo
- 特になし
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request