https://signoz.io logo
#general
Title
# general
h

Himanshu Sharma

05/31/2023, 8: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.
v

Vishal Sharma

05/31/2023, 9: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
For logs @nitya-signoz can help you out
n

nitya-signoz

05/31/2023, 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/
h

Himanshu Sharma

05/31/2023, 10:40 AM
Let me give it a try.