mongodb (4.4) port 27018 is installed in docker, and when installing mongoexporter, it does not start as a service, it returns the following:
[root@mongodb-keos-rack-1 system]# sudo systemctl status mongodb_exporter.service
× mongodb_exporter.service - MongoDB Exporter
Loaded: loaded (/usr/lib/systemd/system/mongodb_exporter.service; disabled; preset: disabled)
Active: failed (Result: exit-code) since Sun 2023-10-15 11:36:48 UTC; 3s ago
Duration: 1ms
Process: 236270 ExecStart=/usr/local/bin/mongodb_exporter (code=exited, status=203/EXEC)
Main PID: 236270 (code=exited, status=203/EXEC)
CPU: 1ms
Oct 15 11:36:48 mongodb-keos-rack-1.c.keos-blocks-prod.internal systemd[1]: mongodb_exporter.service: Scheduled restart job, restart counter is at 5.
Oct 15 11:36:48 mongodb-keos-rack-1.c.keos-blocks-prod.internal systemd[1]: Stopped MongoDB Exporter.
Oct 15 11:36:48 mongodb-keos-rack-1.c.keos-blocks-prod.internal systemd[1]: mongodb_exporter.service: Start request repeated too quickly.
Oct 15 11:36:48 mongodb-keos-rack-1.c.keos-blocks-prod.internal systemd[1]: mongodb_exporter.service: Failed with result ‘exit-code’.
Oct 15 11:36:48 mongodb-keos-rack-1.c.keos-blocks-prod.internal systemd[1]: Failed to start MongoDB Exporter.
mongo exportes no esta instalado en docker