Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-6877

`mongodb_exporter` doesn't recognize being on a mongos host and fills the syslog with replSetGetStatus errors

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • 2.12.0, 2.10.1, 2.11.1
    • 2.23.0
    • MongoDB_Exporter
    • 1
    • Yes
    • Yes
    • C/S Core

    Description

       

      Mongodb version: 4.0.9 and 4.0.17

      PMM versions tested: 2.10.1. and 2.11.1

      We noticed the syslog was filling up the root volumes on our mongodb mongos instances. When we tail f /var/log/mongodb/mongos.log there are no errors however the mongodb_exporter seems to be causing pmm-agent to fill up the syslog with an ongoing error at 2 entries per second. Seems to our team that pmm is identifying the instance as a mongod instead of a mongos. Please see screenshots.

       

      How to test:

      Connect the exporter to a mongos instance and there shouldn't be any error in the logs.

      Previously we had errors like these:

      Dec 23 12:59:19 lalit-ThinkPad-T480 pmm-agent[31274]: INFO[2020-12-23T12:59:19.592+05:30] time="2020-12-23T12:59:19+05:30" level=error msg="cannot get replSetGetStatus: replSetGetStatus is not supported through mongos" agentID=/agent_id/e260c83c-bfd9-4861-bb49-679d008ba929 component=agent-process type=mongodb_exporter
      Dec 23 12:59:19 lalit-ThinkPad-T480 pmm-agent[31274]: INFO[2020-12-23T12:59:19.596+05:30] time="2020-12-23T12:59:19+05:30" level=error msg="cannot get replSetGetStatus: replSetGetStatus is not supported through mongos" agentID=/agent_id/e260c83c-bfd9-4861-bb49-679d008ba929 component=agent-process type=mongodb_exporter 

      Attachments

        Issue Links

          Activity

            People

              carlos.salguero Carlos Salguero (Inactive)
              cshillingford Clyde Shillingford
              Votes:
              4 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Smart Checklist