No commit activity in last 3 years
No release in over 3 years
This rubygem does not have a description or summary.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.9.2
>= 1.0.0
>= 0.5.4

Runtime

>= 0.10.33
 Project Readme

Docker inspect plugin for fluentd

Overview

docker-inspect plugin emits docker container inspections. If multiple containers running, emit events by each containers.

Installation

Simply use RubyGems:

gem install fluent-plugin-docker-inspect

Configuration

<source>
  type docker_inspect
  emit_interval 30
  tag docker.inspects
  add_addr_tag yes
  filter { "status": ["running"] }  # see Docker remote API
  only_changed true
  include_tag tag
  <keys>
    id Id
    created Created
    path Path
    status State.Status
    ports NetworkSettings.Ports
    ip_addr NetworkSettings.IPAddress
    mac_addr NetworkSettings.MacAddress
  </keys>
</source>
emit_interval
Emit interval by second. (default 60 sec)
tag
fluentd tag.
docker_url
Specify docker_url if remote. ex: tcp://example.com:5422. If docker runs local, no need to specify this param.
add_addr_tag
If specify some string such as 'yes', add local host ipv4 addr. (default: nil).
filter
Set fileter about container. See Docker remote API to specify params.
only_changed
If true, only emit when docker inspect is changed. (default is true)
keys
If set, output values containes only specified keys and path(period separated value). Default is output all values as one JSON.
include_tag
If set and keys are specified, add tags to specifed by include_tag

License

MIT

Authors