Docker-compose for MongoDB and KloudMate Backend Integration
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:
- MongoDB-container
- MongoDB exporter-container
- 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:
Please change the username and password of mongo db user.
otel-collector-config.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 Document image](https://images.archbee.com/dfeZmyJsGjUXyEH2hgHVe/_62Pu3U8LUbWfaGQc60ps_screenshot-2024-06-14-162906.png?format=webp)