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 fluentbit binaries and packages as per your system requirement mongodb installed and running on http //127 0 0 1 27017 step 2 install and configure mongodb exporter add user and group for exporter $sudo groupadd system \<mongodbuser> $sudo useradd s /sbin/nologin system g \<mongodbuser> \<mongodbuser> download and extract mongodb exporter $wget https //github com/percona/mongodb exporter/releases/download/v0 39 0/mongodb exporter 0 39 0 linux amd64 tar gz /$tar xvzf mongodb exporter \<latest> $sudo mv mongodb exporter /usr/local/bin/ enable mongodb authentication $mongosh \>use admin \>db createuser({ user "user", pwd "password", roles \[{ role "clustermonitor", db "admin" }] }) \>exit create a system file for the mongodb exporter and run it as a service $sudo nano /etc/systemd/system/mongodb exporter service \[unit] description=mongodb exporter \[service] user=\<mongodbuser> type=simple restart=always execstart=/usr/local/bin/mongodb exporter mongodb uri=mongodb //user\ password\@127 0 0 1 27017 collect all compatible mode \[install] wantedby=multi user target $sudo systemctl daemon reload $sudo systemctl start mongodb exporter service $sudo systemctl status mongodb exporter service step 3 test the available metrics $curl http //localhost 9216/metrics step 4 configure fluentbit to send telemetry data to kloudmate \[service] flush 1 daemon off log level debug parsers file parsers conf plugins file plugins conf http server off http listen 0 0 0 0 http port 2020 storage metrics on \[input] name tail path /var/log/mongodb/ log \[input] name prometheus scrape host 0 0 0 0 port 9216 \[output] name stdout match \[output] name opentelemetry match host otel kloudmate com port 4318 metrics uri /v1/metrics logs uri /v1/logs log response payload true header authorization \<auth token> tls on tls verify off \# add user defined labels add label db logs add label service name \<service name> after restarting the fluentbit service, the logs and metrics of mongodb will be successfully delivered to kloudmate