Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongodb_exporter is running but level=error msg="Cannot connect to server using url mongodb: #935

Open
suresha-h opened this issue Oct 16, 2024 · 1 comment

Comments

@suresha-h
Copy link

suresha-h commented Oct 16, 2024

● mongodb_exporter.service - MongoDB Exporter
Loaded: loaded (/usr/lib/systemd/system/mongodb_exporter.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2024-10-16 00:12:05 EDT; 4h 35min ago
Main PID: 504048 (mongodb_exporte)
Tasks: 11 (limit: 100315)
Memory: 15.0M
CGroup: /system.slice/mongodb_exporter.service
└─504048 /usr/local/bin/mongodb_exporter

Oct 16 04:46:18 mongodb_exporter[504048]: time="2024-10-16T04:46:18-04:00" level=error msg="Cannot connect to server using url mongodb://local>
Oct 16 04:46:181 mongodb_exporter[504048]: time="2024-10-16T04:46:18-04:00" level=error msg="Can't create mongo session to mongodb://localhost:>

@BupycHuk
Copy link
Member

Hi, as far as I see you are not providing additional flags to your service, please add --mongodb.uri and enable some collectors in your systemd service configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants