Health

Health input plugin allows you to check how healthy a TCP server is. It does the check by issuing a TCP connection every a certain interval of time.

Configuration Parameters

The plugin supports the following configuration parameters:

Getting Started

In order to start performing the checks, you can run the plugin from the command line or through the configuration file:

Command Line

From the command line you can let Calyptia Fluent Bit generate the checks with the following options:

$ calyptia-fluent-bit -i health -p host=127.0.0.1 -p port=80 -o stdout

Configuration File

In your main configuration file append the following Input & Output sections:

[INPUT]
    Name          health
    Host          127.0.0.1
    Port          80
    Interval_Sec  1
    Interval_NSec 0

[OUTPUT]
    Name   stdout
    Match  *

Testing

Once Calyptia Fluent Bit is running, you will see some random values in the output interface similar to this:

$ calyptia-fluent-bit -i health -p host=127.0.0.1 -p port=80 -o stdout
Calyptia Fluent Bit 20.10.03

[2021/06/20 08:39:47] [ info] [engine] started (pid=4621)
[2021/06/20 08:39:47] [ info] [storage] version=1.1.1, initializing...
[2021/06/20 08:39:47] [ info] [storage] in-memory
[2021/06/20 08:39:47] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2021/06/20 08:39:47] [ info] [sp] stream processor started
[0] health.0: [1624.4.1388.305640385, {"alive"=>true}]
[1] health.0: [1624.4.1389.305575360, {"alive"=>true}]
[2] health.0: [1624.4.1390.306498573, {"alive"=>true}]
[3] health.0: [1624.4.1391.305595498, {"alive"=>true}]

Last updated