Fluent Bit (Agent)

Supported OS Linux Mac OS Windows

통합 버전1.0.2
이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.

Overview

This check monitors Fluent Bit metrics through the Datadog Agent. To send logs to Datadog with Fluent Bit and to learn about the Datadog Fluent Bit output plugin, see the Fluent Bit documentation.

Fluent Bit configuration

Fluent Bit doesn’t expose its internal metrics by default. You need to enable the built-in HTTP server that exposes the metrics endpoint.

[SERVICE]
    http_server on

See the official documentation for more information.

Setup

Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the Autodiscovery Integration Templates for guidance on applying these instructions.

Installation

For Agent v7.21+ / v6.21+, follow the instructions below to install the Fluent Bit check on your host. See Use Community Integrations to install with the Docker Agent or earlier versions of the Agent.

  1. Run the following command to install the Agent integration:

    datadog-agent integration install -t datadog-fluentbit==<INTEGRATION_VERSION>
    
  2. Configure your integration similar to core integrations.

Configuration

  1. Edit the fluentbit.d/conf.yaml file, in the conf.d/ folder at the root of your Agent’s configuration directory to start collecting your fluentbit performance data.

    init_config:
    
    instances:
        ## @param metrics_endpoint - string - required
        ## The URL to Fluent Bit internal metrics per loaded plugin in Prometheus format.
        #
      - metrics_endpoint: http://127.0.0.1:2020/api/v1/metrics/prometheus
    

    See the sample fluentbit.d/conf.yaml file for all available configuration options.

  2. Restart the Agent.

Validation

Run the Agent’s status subcommand and look for fluentbit under the Checks section.

Data Collected

Metrics

fluentbit.input.records.count
(count)
Number of records processed by the input.
Shown as entry
fluentbit.input.bytes.count
(count)
Number of bytes processed by the input.
Shown as byte
fluentbit.filter.add_records.count
(count)
Number of records added by the filter.
Shown as entry
fluentbit.filter.drop_records.count
(count)
Number of records dropped by the filter.
Shown as entry
fluentbit.output.proc_records.count
(count)
Number of records processed by the output.
Shown as entry
fluentbit.output.proc_bytes.count
(count)
Number of bytes processed by the output.
Shown as byte
fluentbit.output.errors.count
(count)
Number of errors in the output.
Shown as error
fluentbit.output.retries.count
(count)
Number of retries in the output.
Shown as attempt
fluentbit.output.retries_failed.count
(count)
Number of abandoned batches because the maximum number of retries was reached.
Shown as error
fluentbit.output.retried_records.count
(count)
Number of records retried by the output.
Shown as entry
fluentbit.output.dropped_records.count
(count)
Number of records dropped by the output.
Shown as entry
fluentbit.build_info
(gauge)
Value is always 1. Release version and type are included as tags.

Events

The Fluent Bit integration does not include any events.

Service Checks

The Fluent Bit integration does not include any service checks.

Troubleshooting

Need help? Contact Datadog support.

Further Reading

Additional helpful documentation, links, and articles: