Fluent-bit Docker Metrics Plugin

How to Integrate Fluent-bit Docker Metrics Plugin with Apica Ascent

1. Introduction

This guide explains how to send Docker Metrics to Apica Ascent with Fluent-bit, and how to view them.

2. Configure the Docker Metric Plugin in Fluent-bit

Update your Fluent-bit.conf with an input and filter for Docker Metric Plugin:

[INPUT]
    Name docker
    Include      9935eb87ac23
    Tag  docker_metrics
[FILTER]
    Name   modify
    Match  docker_metrics
    Add    namespace Fluent-bit
    Add    app_name Docker_Metrics
 

Restart Fluent-bit with systemctl restart fluent-bit and check the status with systemctl status fluent-bit to verify that it’s running correctly.

If you want to monitor multiple docker containers it needs to be in the following format (a space in between them): <DockerID> <DockerID>

Helpful links:

3. Verify Logs in Apica Ascent

1. Log in to Apica Ascent

2. Navigate to Explore → Logs & Insights

3. Look for the namespace and application name specified in the config file.

Example:

4. Example logs

message :

StructuredData :

5. Troubleshooting

  • Find running containers: docker ps

  • Find all containers: docker ps -a

  • Check docker.sock permissions: ls -l /var/run/docker.sock

  • Test docker API: sudo curl --unix-socket /var/run/docker.sock http://localhost/containers/json

  • Verify if there are any metrics to scrape: docker stats

Last updated

Was this helpful?