Health
The Health input plugin lets you check how healthy a TCP server is. It checks by issuing a TCP connection at regular intervals.
Configuration parameters
The plugin supports the following configuration parameters:
| Key | Description | Default |
| :--- | :--- |
| Host
| Name of the target host or IP address. | none |
| Port
| TCP port where to perform the connection request. | none |
| Interval_Sec
| Interval in seconds between the service checks.| 1
|
| Internal_Nsec
| Specify a nanoseconds interval for service checks. Works in conjunction with the Interval_Sec
configuration key. | 0
|
| Alert
| If enabled, it generates messages if the target TCP service is down. | false
|
| Add_Host
| If enabled, hostname is appended to each records. | false
|
| Add_Port
| If enabled, port number is appended to each records. | false
|
| Threaded
| Indicates whether to run this input in its own thread. | false
|
Get started
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 Fluent Bit generate the checks with the following options:
Configuration file
In your main configuration file append the following Input
and Output
sections:
Testing
Once Fluent Bit is running, you will see some random values in the output interface similar to this:
Last updated
Was this helpful?