Skip to content

Latest commit

 

History

History
 
 

fluentbit

Agent Check: Fluent Bit (Agent)

Overview

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

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

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

See metadata.csv for a list of metrics provided by this check.

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.