Skip to content

fluent-beats/fluent-bit-docker-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

Fluent Bit input plugin able to access Docker SystemInfo

Requirements

  • Docker
  • Docker image fluent-beats/fluent-bit-plugin-dev

Build

./build.sh

Test

./test.sh

Design

Required volumes

This plugin requires some volumes to collect metrics from Docker host node.

It maps the host unix socket /var/run/docker.sock, so it can send requests to the Docker Engine API.

This plugin WILL NOT WORK without the volume properly mounted on Fluentbit container

Collecting data

The plugin will access the Docker Engine endpoint /info.

Each response will include important information like:

  • Containers (running, paused, stoped)
  • Available Docker plugins
  • Available Docker registries
  • Swarm properties

Configurations

This input plugin can be configured using the following parameters:

Key Description Default
Collect_Interval Interval in seconds to collect data 10
Unix_Path Define target Unix socket path. /var/run/docker.sock
Containers_Path Define the folder that contains containers' ids. /var/lib/docker/containers
Buffer_Size The size of the buffer used to read data (in bytes or unit sized) 8192
Parser Specify the name of a parser to interpret the entry as a structured message. None
Key When a message is unstructured (no parser applied), it's appended as a string under the key name message. message