OpenTelemetry Support
...
Service Integration Guides
MongoDB Telemetry Data to Klou...

MongoDB Telemetry Data to KloudMate Using Fluentbit

7min

This document provides a guide on how to send MongoDB telemetry data to KloudMate using Fluentbit.

In the described setup, the latest MongoDB instance is running on an EC2 server. An exporter is required to export metrics to a monitoring backend. In this process, the metrics will be exported by the MongoDB exporter and Fluentbit will be responsible for sending the metrics data to KloudMate backend.

Step 1: Prerequisites:

Step 2: Install and configure MongoDB exporter:

  • Add user and group for exporter
Text

  • Download and extract MongoDB Exporter
Text

  • Enable MongoDB authentication
Text

  • Create a system file for the MongoDB exporter and run it as a service.
Text

[Unit] Description=MongoDB Exporter [Service] User=<mongodbuser> Type=simple Restart=always ExecStart=/usr/local/bin/mongodb_exporter --mongodb.uri=mongodb://USER:[email protected]:27017 --collect-all --compatible-mode [Install] WantedBy=multi-user.target
Text


Step 3: Test the available metrics.

Text


Step 4: Configure fluentbit to send telemetry data to KloudMate.

Text


After restarting the fluentbit service, the logs and metrics of MongoDB will be successfully delivered to KloudMate.