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

Docker-compose for MongoDB and KloudMate Backend Integration

3min

This document provides a guide on how to use docker-compose to set up MongoDB and KloudMate backend integration.

In the described setup, docker-compose will create the following three containers:

  1. MongoDB-container
  2. MongoDB exporter-container
  3. Otel collector-container

The exporter will export MongoDB metrics from MongoDB-container and send it to KloudMate backend via otel collector-container. The logs of MongoDB-container will be sent to KloudMate by otel collector-container.

docker-compose.yaml:

YAML


Please change the username and password of mongo db user.

otel-collector-config.yaml:

YAML


Please change the auth token to send the data to KloudMate.

After successfully instrumenting your MongoDB database with OpenTelemetry and integrating it with KloudMate, you can capture and monitor the various metrics within KloudMate as shown in the following screenshot:

Document image