Closed mkmpvtltd1 closed 2 months ago
Ran into this as well. It's the group getting set in '/etc/systemd/system/mongodb_exporter.service' It's currently getting set to 'nogroup' by the RPM, but it should be 'mongodb_exporter'. Change it to 'mongodb_exporter' and it will start. I.e. here's what your .service file should look like:
[Unit]
Description=Prometheus MongoDB Exporter
Documentation=https://github.com/percona/mongodb_exporter
After=network.target
[Service]
Type=simple
User=mongodb_exporter
Group=mongodb_exporter
EnvironmentFile=-/etc/default/mongodb_exporter
ExecStart=/usr/bin/mongodb_exporter $OPTIONS
SyslogIdentifier=mongodb_exporter
Restart=always
[Install]
WantedBy=multi-user.target