percona / mongodb_exporter

A Prometheus exporter for MongoDB including sharding, replication and storage engines
Apache License 2.0
1.18k stars 423 forks source link

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

Open suresha-h opened 1 week ago

suresha-h commented 1 week ago

● 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 commented 23 hours ago

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.