Network I/O metrics
The Network I/O metrics (netif) input plugin gathers network traffic information of the running system at regular intervals, and reports them. This plugin is available only for Linux.
The Network I/O metrics plugin creates metrics that are log-based, such as JSON payload. For Prometheus-based metrics, see the Node Exporter metrics input plugin.
Metrics reported
The following table describes the metrics generated by the plugin. Metric names are prefixed with the interface name (for example, eth0):
{interface}.rx.bytes
Number of bytes received on the interface.
{interface}.rx.packets
Number of packets received on the interface.
{interface}.rx.errors
Number of receive errors on the interface.
{interface}.tx.bytes
Number of bytes transmitted on the interface.
{interface}.tx.packets
Number of packets transmitted on the interface.
{interface}.tx.errors
Number of transmit errors on the interface.
Configuration parameters
The plugin supports the following configuration parameters:
interface
Specify the network interface to monitor. For example, eth0.
none
interval_nsec
Polling interval in nanoseconds.
0
interval_sec
Polling interval in seconds.
1
test_at_init
If true, test if the network interface is valid at initialization.
false
verbose
If true, gather metrics precisely.
false
Get started
To monitor network traffic from your system, you can run the plugin from the command line or through the configuration file.
Command line
Run Fluent Bit using a command similar to the following:
Which returns output similar to the following:
Configuration file
In your main configuration file append the following:
Total interval (sec) = interval_sec + (interval_nsec / 1000000000)
For example: 1.5s = 1s + 500000000ns
Last updated
Was this helpful?