StatsD
The statsd input plugin allows you to receive metrics via StatsD protocol.
Content:
Configuration Parameters
The plugin supports the following configuration parameters:
Listen
Listener network interface.
0.0.0.0
Port
UDP port where listening for connections
8125
Metrics
Ingested record will be marked as a metric record rather than a log record.
off
Note: When enabling Metrics On
, we will also handle metrics from the DogStatsD protocol and the internal record in Fluent Bit will be handled as a metric type for downstream processing. The full format of DogStatsD of metrics is not supported. Including key-value format of tags as below is supported: <METRIC_NAME>:<VALUE>|<TYPE>|@<SAMPLE_RATE>|#<TAG_KEY_1>:<TAG_VALUE_1>
Events and ServiceChecks formats are not supported yet with Metrics On
.
Configuration Examples
Here is a configuration example.
Now you can input metrics through the UDP port as follows:
Fluent Bit will produce the following records:
Metrics Setup
Here is a configuration example for metrics setup.
Now you can input metrics as metrics type of events through the UDP port as follows:
Fluent Bit will procude the following metrics events:
Last updated