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

MongoDB exporter metrics collection was including system collections from collStats and indexStats, causing "log bloat".

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: MongoDB_Exporter
    • Labels:
      None
    • Story Points:
      0
    • Sprint:
      Platform Sprint 9, Platform Sprint 10, Platform Sprint 11, Platform Sprint 14
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Packaging:
      No
    • Needs Doc:
      No

      Description

      Hi,

      The suggested roles required to run the mongodb exporter dont seem to be elevated enough to run collstats on the local db.

      as per github readme:

      ```
      roles: [

      { role: "clusterMonitor", db: "admin" }

      ,

      { role: "read", db: "local" }

      ]
      ```

      gives the followig auth error for local collstats against system collections:

      ```
      2019-08-14T14:39:38.923+0000 I ACCESS   [*conn19771*] Successfully authenticated as principal metrics_exporter on admin from client x.x.x.x:51634
      2019-08-14T14:39:39.419+0000 I ACCESS   [*conn19771*] Unauthorized: not authorized on local to execute command { collStats: "system.rollback.id", scale: 1, $clusterTime: { clusterTime: Timestamp(1565793578, 1), signature:

      { hash: BinDat a(0, 47788A6862EACCA721E4DF627E29F80F6B6A3DBC), keyId: 6676391537665900547 }

      }, $db: "local", $readPreference: { mode: "primaryPreferred" } }
      2019-08-14T14:39:39.420+0000 I ACCESS   [*conn19771*] Unauthorized: not authorized on local to execute command { collStats: "system.replset", scale: 1, $clusterTime: { clusterTime: Timestamp(1565793578, 1), signature: { hash: BinData(0,
      2019-08-14T14:39:38.923+0000 I ACCESS   [*conn19771*] Successfully authenticated as principal metrics_exporter on admin from client x.x.x.x::51634
      2019-08-14T14:39:39.419+0000 I ACCESS   [*conn19771*] Unauthorized: not authorized on local to execute command { collStats: "system.rollback.id", scale: 1, $clusterTime: { clusterTime: Timestamp(1565793578, 1), signature:

      { hash: BinDat a(0, 47788A6862EACCA721E4DF627E29F80F6B6A3DBC), keyId: 6676391537665900547 }

      }, $db: "local", $readPreference: { mode: "primaryPreferred" } }
      2019-08-14T14:39:39.420+0000 I ACCESS   [*conn19771*] Unauthorized: not authorized on local to execute command { collStats: "system.replset", scale: 1, $clusterTime: { clusterTime: Timestamp(1565793578, 1), signature: { hash: BinData(0,
      ```

      v0.8.0 of the mongodb_exporter

      DOC: No PMM Update needed because of exporter changes, not PMM

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dbamohsin Mohsin Patel
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 30 minutes
                30m

                  Smart Checklist