mongodb_exporter icon indicating copy to clipboard operation
mongodb_exporter copied to clipboard

Arbiter uptime absent

Open superset1 opened this issue 2 years ago • 1 comments

Hello In version 0.37.0, the MongoDB arbiter does not have mongodb_instance_uptime_seconds metrics or other similar metrics uptime I have to install the old version 0.11.2 for arbiter

To Reproduce Steps to reproduce the behavior:

  1. download release 0.37.0
  2. configure systemd unit
[Unit]
Description=Prometheus exporter for MongoDB (https://github.com/percona/mongodb_exporter)
After=network.target mongod.service

[Service]
Type=simple
RestartSec=5s
Restart=on-failure
User=mongodb-exporter
Group=mongodb-exporter
ExecStart=/usr/local/bin/mongodb-exporter --discovering-mode --mongodb.direct-connect --mongodb.uri=mongodb://mongodbexporter:[email protected]:27017/admin
ExecStop=/bin/kill -s SIGINT $MAINPID

[Install]
WantedBy=multi-user.target

Also I tried --compatible-mode --collector.diagnosticdata --collector.collstats

Expected behavior I expect that metrics uptime will be available.

Environment

  • debian 10,
  • MongoDB version
    • 4.4.18
    • 6.0.4

superset1 avatar Feb 25 '23 02:02 superset1

Thank you for the report! We appreciate your feedback. The issue you reported will be resolved with the upcoming release of the exporter. You can find more information about the fix at https://github.com/percona/mongodb_exporter/pull/655. Thank you for your patience while we work on this.

rnovikovP avatar May 24 '23 07:05 rnovikovP