#general

Integrating MongoDB Logs/Metrics to SigNoz

TLDR Himanshu seeks guidance on collecting MongoDB logs/metrics for SigNoz. vishal-signoz recommends adding MongoDB receiver to otel collector, while nitya-signoz suggests configuring MongoDB to output logs to a file and using otel collector for log collection.

Powered by Struct AI

2

May 31, 2023 (6 months ago)
Himanshu
Photo of md5-58a091860d8e68d41bd3d58e4364e058
Himanshu
08:25 AM
Can anyone refer me any updated document or approach to collect logs/metrics from mongodb to SigNoz. I am following multiple blogs/official documentation but somewhere something is missing i believe.

I have mongoDB running as a service on ec2 instance and SigNoz is running on EKS Cluster, now i want to see the logs and related data to mongoDB in SigNoz.
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
09:17 AM
To integrate mongoDB metrics you can add mongoDB receiver to otel collector:
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/mongodbreceiver/README.md

1

09:17
vishal-signoz
09:17 AM
For logs nitya-signoz can help you out

1

nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
10:34 AM
Configure you mongodb to output logs to a file https://www.mongodb.com/docs/manual/reference/log-messages/ .

Run otel collector to collect logs from the log file and push them to your eks cluster https://signoz.io/docs/userguide/collect_logs_from_file/
Himanshu
Photo of md5-58a091860d8e68d41bd3d58e4364e058
Himanshu
10:40 AM
Let me give it a try.